]> git.pld-linux.org Git - packages/rpm-build-macros.git/blob - rpm-build-macros.spec
- r1.280: webapp macros use %service
[packages/rpm-build-macros.git] / rpm-build-macros.spec
1 %define rpm_macros_rev  1.280
2 Summary:        PLD Linux RPM build macros
3 Summary(pl):    Makra do budowania pakietów RPM dla Linuksa PLD
4 Name:           rpm-build-macros
5 Version:        %{rpm_macros_rev}
6 Release:        1
7 License:        GPL
8 Group:          Base
9 Source0:        rpm.macros
10 Source1:        service_generator.sh
11 Requires:       rpm-build
12 Provides:       rpmbuild(macros) = %{rpm_macros_rev}
13 Obsoletes:      rpm-macros
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _rpmlibdir %{_prefix}/lib/rpm
18
19 %description
20 This package contains rpm build macros for PLD Linux.
21
22 %description -l pl
23 Ten pakiet zawiera makra rpm-a do budowania pakietów dla Linuksa PLD.
24
25 %prep
26 rev=$(awk '/^#.*Revision:.*Date/{print $3}' %{SOURCE0})
27 if [ "$rev" != "%rpm_macros_rev" ]; then
28         : Update rpm_macros_rev define to $rev, and retry
29         exit 1
30 fi
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_rpmlibdir}
35 cp %{SOURCE0} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.build
36 install %{SOURCE1} $RPM_BUILD_ROOT%{_rpmlibdir}/service_generator.sh
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(644,root,root,755)
43 %{_rpmlibdir}/macros.build
44 %attr(755,root,root) %{_rpmlibdir}/service_generator.sh
This page took 0.029756 seconds and 4 git commands to generate.