]> git.pld-linux.org Git - packages/rpm-build-macros.git/blob - rpm-build-macros.spec
- use /etc/rpm/macros.pld due current macrofiles setting in rpmrc:
[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 # TODO
5 # - make rpm actually search for this rpm.macros file
6 %define rpm_macros_rev  1.223
7 Summary:        PLD Linux RPM Macros
8 Name:           rpm-macros
9 Version:        %{rpm_macros_rev}
10 Release:        0.4
11 License:        GPL
12 Group:          Base
13 Source0:        rpm.macros
14 Provides:       rpmbuild(macros) = %{rpm_macros_rev}
15 Requires:       rpm-build
16 Conflicts:      rpm < 4.4.1
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 This package contains rpm macros for PLD Linux.
22
23 Use this package to get newer rpm macros than rpm-build provides
24 (perhaps this package will be separated in the future).
25
26 %prep
27
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
31 sed -e '
32 # truncate until %%_topdir macro
33 1,/^%%_topdir/d
34 ' %{SOURCE0} > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.pld
35
36 %clean
37 rm -rf $RPM_BUILD_ROOT
38
39 %files
40 %defattr(644,root,root,755)
41 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/*
This page took 0.038239 seconds and 4 git commands to generate.