]> git.pld-linux.org Git - packages/rpm-build-macros.git/blob - rpm-build-macros.spec
- R(rpm-build) to prevent broken builds?
[packages/rpm-build-macros.git] / rpm-build-macros.spec
1 # NOTE
2 # - AC-branch is TAG. please move the tag if rebuild needed:
3 #  $ cvs tag -F AC-branch rpm-macros.spec
4 %define rpm_macros_rev  1.223
5 Summary:        PLD Linux RPM Macros
6 Name:           rpm-macros
7 Version:        0.1
8 Release:        0.3
9 License:        GPL
10 Group:          Base
11 Source0:        rpm.macros
12 Provides:       rpmbuild(macros) = %{rpm_macros_rev}
13 Requires:       rpm-build
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 This package contains rpm macros for PLD Linux.
19
20 Use this package to get newer rpm macros than rpm-build provides
21 (perhaps this package will be separated in the future).
22
23 %prep
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
28 sed -e '
29 # truncate until %%_topdir macro
30 1,/^%%_topdir/d
31 ' %{SOURCE0} > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/rpm.macros
32
33 %clean
34 rm -rf $RPM_BUILD_ROOT
35
36 %files
37 %defattr(644,root,root,755)
38 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/rpm.macros
This page took 0.033242 seconds and 4 git commands to generate.