buildsys-macros-el8.spec 1.15 KB
Newer Older
Louis Abel's avatar
Louis Abel committed
1
2
%global _el_version_tag el8

Louis Abel's avatar
initial  
Louis Abel committed
3
4
Name:       buildsys-macros-el8
Summary:    Macros for the Buildsystem
Louis Abel's avatar
Louis Abel committed
5
6
Version:    3.3
Release:    1.%{_el_version_tag}.rocky
Louis Abel's avatar
initial  
Louis Abel committed
7
8
9
10
11
12
13
14
15
License:    GPL
Group:      Development/Buildsystem
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:  noarch
 
%description
This particular package contains the macros needed for the buildsys for Rocky 8.
 
%prep
Louis Abel's avatar
updates    
Louis Abel committed
16

Louis Abel's avatar
initial  
Louis Abel committed
17
%build
Louis Abel's avatar
updates    
Louis Abel committed
18

Louis Abel's avatar
initial  
Louis Abel committed
19
20
21
22
23
24
25
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/etc/rpm/
VERSION=%{version}
printf %s%b "%" "rhel 8\n" >> %{buildroot}/etc/rpm/macros.disttag
printf %s%b "%" "rocky 8\n" >> %{buildroot}/etc/rpm/macros.disttag
printf %s%b "%" "centos 8\n" >> %{buildroot}/etc/rpm/macros.disttag
Louis Abel's avatar
Louis Abel committed
26
printf %s%b "%" "dist .%{_el_version_tag}\n" >> %{buildroot}/etc/rpm/macros.disttag
Louis Abel's avatar
initial  
Louis Abel committed
27
28
29
30
31
32
33
34
35
36
37
38
printf %s%b "%" "el8 1\n" >> %{buildroot}/etc/rpm/macros.disttag
printf %s%b "%" "__arch_install_post /usr/lib/rpm/check-buildroot\n" >> %{buildroot}/etc/rpm/macros.checkbuild
 
%clean
rm -rf %{buildroot}
 
%files
%defattr(-,root,root)
/etc/rpm/macros.disttag
/etc/rpm/macros.checkbuild
 
%changelog
Louis Abel's avatar
Louis Abel committed
39
40
* Mon May 03 2021 Louis Abel <label@rockylinux.org> - 3.3-1.rocky
- Start at el8 for first iteration