1 |
unnilennium |
1.2 |
# $Id: buildsys-macros.spec,v 1.1 2016/02/04 18:18:39 vip-ire Exp $ |
2 |
vip-ire |
1.1 |
|
3 |
|
|
Name: buildsys-macros |
4 |
|
|
Summary: Macros for the Fedora Buildsystem |
5 |
|
|
# The value for version should match the version of Fedora Core. |
6 |
unnilennium |
1.2 |
Version: 7 |
7 |
vip-ire |
1.1 |
Release: 1%{?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 |
|
|
* Thu Jan 24 2013 Shad L. Lords <slords@mail.com> 6-1.sme |
41 |
|
|
- Initial build. |