1 |
slords |
1.1 |
Name: buildsys-macros |
2 |
|
|
Summary: Macros for the Fedora Buildsystem |
3 |
|
|
# The value for version should match the version of Fedora Core. |
4 |
|
|
Version: 5 |
5 |
slords |
1.2 |
Release: 4%{?dist} |
6 |
slords |
1.1 |
License: GPL |
7 |
|
|
Group: Development/Buildsystem |
8 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
9 |
|
|
Buildarch: noarch |
10 |
|
|
Requires: rpmdevtools |
11 |
|
|
|
12 |
|
|
%description |
13 |
|
|
Macros for the Fedora Buildsystem |
14 |
|
|
|
15 |
|
|
%prep |
16 |
|
|
|
17 |
|
|
%build |
18 |
|
|
|
19 |
|
|
%install |
20 |
|
|
rm -rf $RPM_BUILD_ROOT |
21 |
|
|
mkdir -p $RPM_BUILD_ROOT/etc/rpm/ |
22 |
|
|
VERSION=%{version} |
23 |
|
|
printf %s%b "%" "rhel $VERSION\n" >> $RPM_BUILD_ROOT/etc/rpm/macros.disttag |
24 |
|
|
printf %s%b "%" "dist .el$VERSION.sme\n" >> $RPM_BUILD_ROOT/etc/rpm/macros.disttag |
25 |
slords |
1.2 |
printf %s%b "%" "el$VERSION 1\n" >> $RPM_BUILD_ROOT/etc/rpm/macros.disttag |
26 |
slords |
1.1 |
printf %s%b "%" "__arch_install_post /usr/lib/rpm/check-buildroot\n" >> $RPM_BUILD_ROOT/etc/rpm/macros.checkbuild |
27 |
|
|
|
28 |
|
|
|
29 |
|
|
%clean |
30 |
|
|
rm -rf $RPM_BUILD_ROOT |
31 |
|
|
|
32 |
|
|
%files |
33 |
|
|
%defattr(-,root,root) |
34 |
|
|
/etc/rpm/macros.disttag |
35 |
|
|
/etc/rpm/macros.checkbuild |
36 |
|
|
|
37 |
|
|
%changelog |
38 |
slords |
1.2 |
* Tue Oct 2 2007 Shad L. Lords <slords@mail.com> |
39 |
slords |
1.1 |
- Add sme to end of dist |
40 |
|
|
|
41 |
slords |
1.2 |
* Mon May 21 2007 Dennis Gilmore <dennis@ausil.us> |
42 |
|
|
- add el<ver> 1 fro new disttag guidelines |
43 |
|
|
|
44 |
|
|
* Wed Sep 27 2006 Dennis Gilmore <dennis@ausil.us> |
45 |
|
|
- add macro to run check-buildroot |
46 |
|
|
|
47 |
|
|
* Mon Jul 07 2006 Dennis Gilmore <dennis@ausil.us> |
48 |
|
|
- rhel version |
49 |
|
|
|
50 |
|
|
* Tue May 10 2005 Tom "spot" Callaway <tcallawa@redhat.com> |
51 |
slords |
1.1 |
- Initial build. |