- v1.654: extend _noautoreq with language specific macros
[packages/rpm-build-macros.git] / rpm-build-macros.spec
CommitLineData
0a9bb974 1%define rpm_macros_rev 1.654
2a89e270 2%define find_lang_rev 1.35
6474ad3c 3Summary: PLD Linux RPM build macros
4334c3ac 4Summary(pl.UTF-8): Makra do budowania pakietów RPM dla Linuksa PLD
dd5e0ec8 5Name: rpm-build-macros
420843fe 6Version: %{rpm_macros_rev}
989d3552 7Release: 1
89506c89 8License: GPL
28fdd92e 9Group: Development/Building
89506c89 10Source0: rpm.macros
c4d2500d 11Source1: service_generator.sh
9260f9b0 12Source3: rpm-find-lang
1b4ec484 13Source4: dokuwiki-find-lang.sh
a1f59e15
ER
14Patch0: disable-systemd.patch
15#Patchx: %{name}-pydebuginfo.patch
3ae61815 16BuildRequires: rpm >= 4.4.9-56
84bc5ffe 17BuildRequires: sed >= 4.0
810d26bb 18Requires: findutils >= 1:4.2.26
3ae61815 19Provides: rpmbuild(find_lang) = %{find_lang_rev}
157e31d6 20Provides: rpmbuild(macros) = %{rpm_macros_rev}
dd5e0ec8 21Obsoletes: rpm-macros
733afce0
ER
22# rm: option `--interactive' doesn't allow an argument
23Conflicts: coreutils < 6.9
765e8b6e 24Conflicts: gettext-devel < 0.11
5dc44ed7
AM
25# tmpdir/_tmppath macros problems; optcppflags missing
26Conflicts: rpm < 4.4.9-72
07d9a61e 27# php-config --sysconfdir
608c111c
ER
28Conflicts: php-devel < 4:5.2.0-3
29Conflicts: php4-devel < 3:4.4.4-10
1509256b
JK
30# sysconfig module with proper 'purelib' path
31Conflicts: python3 < 1:3.2.1-3
3ae61815 32%if "%{pld_release}" != "ac"
e340772e 33# libtool --install
3ae61815
ER
34Conflicts: libtool < 2:2.2
35%endif
b6b717dd 36BuildArch: noarch
89506c89
ER
37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
5d9eb87f 39# redefine to bootstrap
e260b1e4 40%define _usrlibrpm %{_prefix}/lib/rpm
73cb1b0e 41
89506c89 42%description
1bbd28dc 43This package contains rpm build macros for PLD Linux.
89506c89 44
1d9c88b3
JR
45%description -l pl.UTF-8
46Ten pakiet zawiera makra rpm-a do budowania pakietów dla Linuksa PLD.
157e31d6 47
89506c89 48%prep
61727c59 49%setup -qcT
41a788ea
ER
50cp -p %{SOURCE0} .
51cp -p %{SOURCE1} .
0abe7695
ER
52
53%if "%{pld_release}" == "ac"
54%{__sed} -i -e '/libtoolize --copy --force --install/s/ --install//' rpm.macros
a1f59e15 55%patch0 -p1
0abe7695
ER
56%endif
57
58%build
84bc5ffe
ER
59%{__sed} -i -e 's,\$Revision\$,%{rpm_macros_rev},' rpm.macros
60
61rev=$(awk '/^%%rpm_build_macros/{print $2}' rpm.macros)
5c4b2cba
ER
62if [ "$rev" != "%rpm_macros_rev" ]; then
63 : Update rpm_macros_rev define to $rev, and retry
725c4130
ER
64 exit 1
65fi
84bc5ffe 66rev=$(awk -F= '/^VERSION/{print $2}' %{SOURCE3})
9260f9b0
ER
67if [ "$rev" != "%find_lang_rev" ]; then
68 : Update find_lang_rev define to $rev, and retry
69 exit 1
70fi
33e5e8c1 71
89506c89
ER
72%install
73rm -rf $RPM_BUILD_ROOT
dec1a0ae 74install -d $RPM_BUILD_ROOT%{_usrlibrpm}
ddeaa8de 75cp -a rpm.macros $RPM_BUILD_ROOT%{_usrlibrpm}/macros.build
41a788ea 76install -p service_generator.sh $RPM_BUILD_ROOT%{_usrlibrpm}
ddeaa8de
ER
77install -p %{SOURCE3} $RPM_BUILD_ROOT%{_usrlibrpm}/find-lang.sh
78install -p %{SOURCE4} $RPM_BUILD_ROOT%{_usrlibrpm}
89506c89
ER
79
80%clean
81rm -rf $RPM_BUILD_ROOT
82
83%files
84%defattr(644,root,root,755)
e260b1e4
ER
85%{_usrlibrpm}/macros.build
86%attr(755,root,root) %{_usrlibrpm}/service_generator.sh
87%attr(755,root,root) %{_usrlibrpm}/find-lang.sh
88%attr(755,root,root) %{_usrlibrpm}/dokuwiki-find-lang.sh
This page took 0.378263 seconds and 4 git commands to generate.