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