]> git.pld-linux.org Git - packages/rpm-pld-macros.git/blame - rpm-pld-macros.spec
reduce fpu requirement to vfpv3 on armv7hnl
[packages/rpm-pld-macros.git] / rpm-pld-macros.spec
CommitLineData
a44af8b5 1%define rpm_macros_rev 2.008
1378be66 2%define find_lang_rev 1.40
0c6b13d6
JB
3# split into individual X_prov_ver if there is a reason to desync
4%define prov_ver 4.15
7f348d08
JR
5Summary: PLD Linux RPM macros
6Summary(pl.UTF-8): Makra RPM dla Linuksa PLD
7Name: rpm-pld-macros
420843fe 8Version: %{rpm_macros_rev}
a44af8b5 9Release: 1
0c6b13d6 10License: GPL v2+
28fdd92e 11Group: Development/Building
8446d636 12Source0: macros.pld
c4d2500d 13Source1: service_generator.sh
91511b26 14Source3: find-lang.sh
1b4ec484 15Source4: dokuwiki-find-lang.sh
8446d636 16Source5: macros.kernel
cdc9189e 17Source6: attr.kernel
81bb55eb 18Source7: rpmrc
d5b72096
JR
19Source8: rpm-compress-doc
20Source9: rpm-find-spec-bcond
603fd8a1 21
7f348d08
JR
22Source10: macros.ruby
23Source11: attr.ruby
603fd8a1
JR
24Source12: rubygems.rb
25Source13: gem_helper.rb
26
7f348d08
JR
27Source20: macros.java
28Source21: attr.java
2e434209
JR
29Source22: rpm-java-requires
30Source23: eclipse-feature.xslt
31
7f348d08
JR
32Source30: macros.php
33Source31: attr.php
5fe5c49b
JR
34Source32: rpm-php-provides
35Source33: rpm-php-requires
36Source34: rpm-php-requires.php
37
cdc9189e
JR
38Source40: macros.browser-plugins
39Source41: macros.cacti
40Source42: macros.emacs
41Source43: macros.ghc
42Source44: macros.nagios
43Source45: macros.openldap
44Source46: macros.perl
45Source47: macros.python
46Source48: macros.systemd
47Source49: macros.tcl
48Source50: macros.upstart
49Source51: macros.webapp
50Source52: macros.xmms
51Source53: macros.xorg
54401b3c 52Source54: macros.selinux
2e9c5710 53Source55: macros.rust
f1abb055 54Source56: macros.arch
cdc9189e 55
54401b3c
JR
56Source60: macros.gstreamer
57Source61: attr.gstreamer
d5b72096 58
74f36968 59Source62: kmod-deps.sh
a1f59e15 60Patch0: disable-systemd.patch
3ae61815 61BuildRequires: rpm >= 4.4.9-56
84bc5ffe 62BuildRequires: sed >= 4.0
dd5e0ec8 63Obsoletes: rpm-macros
733afce0
ER
64# rm: option `--interactive' doesn't allow an argument
65Conflicts: coreutils < 6.9
a6a5566e
JR
66# tmpdir/_tmppath macros problems; optcppflags missing
67Conflicts: rpm < 4.4.9-72
7f348d08
JR
68BuildArch: noarch
69BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70
71# redefine to bootstrap
72%define _usrlibrpm %{_prefix}/lib/rpm
73
74%description
75This package contains rpm macros for PLD Linux.
76
77%description -l pl.UTF-8
78Ten pakiet zawiera makra rpm-a dla Linuksa PLD.
79
80%package build
81Summary: PLD Linux RPM build macros
82Summary(pl.UTF-8): Makra do budowania pakietów RPM dla Linuksa PLD
83Requires: %{name} = %{version}-%{release}
84Requires: findutils >= 1:4.2.26
85Provides: rpmbuild(find_lang) = %{find_lang_rev}
86Provides: rpmbuild(macros) = %{rpm_macros_rev}
87Obsoletes: rpm-build-macros
765e8b6e 88Conflicts: gettext-devel < 0.11
50f647af 89# macros.d/*
603fd8a1 90Conflicts: rpm-build < 5.4.15-52
07d9a61e 91# php-config --sysconfdir
608c111c
ER
92Conflicts: php-devel < 4:5.2.0-3
93Conflicts: php4-devel < 3:4.4.4-10
1509256b
JK
94# sysconfig module with proper 'purelib' path
95Conflicts: python3 < 1:3.2.1-3
3ae61815 96%if "%{pld_release}" != "ac"
e340772e 97# libtool --install
3ae61815
ER
98Conflicts: libtool < 2:2.2
99%endif
89506c89 100
7f348d08 101%description build
1bbd28dc 102This package contains rpm build macros for PLD Linux.
89506c89 103
7f348d08 104%description build -l pl.UTF-8
1d9c88b3 105Ten pakiet zawiera makra rpm-a do budowania pakietów dla Linuksa PLD.
157e31d6 106
68435a2a 107%package rubyprov
603fd8a1
JR
108Summary: Ruby tools, which simplify creation of RPM packages with Ruby software
109Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Ruby
110Group: Applications/File
a6a5566e 111Requires: %{name}-build = %{version}-%{release}
603fd8a1
JR
112Requires: ruby
113Requires: ruby-modules
114Requires: ruby-rubygems
0c6b13d6 115Provides: rpm-rubyprov = %{prov_ver}
2e434209 116Obsoletes: rpm-rubyprov
603fd8a1 117
68435a2a 118%description rubyprov
603fd8a1
JR
119Ruby tools, which simplifies creation of RPM packages with Ruby
120software.
121
68435a2a 122%description rubyprov -l pl.UTF-8
603fd8a1
JR
123Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
124Ruby.
125
2e434209
JR
126%package javaprov
127Summary: Additional utilities for checking Java provides/requires in RPM packages
128Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
129Group: Applications/File
a6a5566e 130Requires: %{name}-build = %{version}-%{release}
2e434209 131Requires: jar
9e47e4f5 132Requires: jre
2e434209
JR
133Requires: file
134Requires: findutils >= 1:4.2.26
135Requires: mktemp
136Requires: unzip
0c6b13d6 137Provides: rpm-javaprov = %{prov_ver}
2e434209
JR
138Obsoletes: rpm-javaprov
139
140%description javaprov
141Additional utilities for checking Java provides/requires in RPM
142packages.
143
144%description javaprov -l pl.UTF-8
145Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
146RPM.
147
5fe5c49b
JR
148%package php-pearprov
149Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
150Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
151Group: Applications/File
a6a5566e 152Requires: %{name}-build = %{version}-%{release}
5fe5c49b
JR
153Requires: sed >= 4.0
154Suggests: php-pear-PHP_CompatInfo
0c6b13d6 155Provides: rpm-php-pearprov = %{prov_ver}
69aa1d42 156Obsoletes: rpm-php-pearprov
5fe5c49b
JR
157
158%description php-pearprov
159Additional utilities for checking PHP PEAR provides/requires in RPM
160packages.
161
162%description php-pearprov -l pl.UTF-8
163Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
164pakietach RPM.
165
89506c89 166%prep
61727c59 167%setup -qcT
41a788ea
ER
168cp -p %{SOURCE0} .
169cp -p %{SOURCE1} .
0abe7695
ER
170
171%if "%{pld_release}" == "ac"
8446d636 172%{__sed} -i -e '/libtoolize --copy --force --install/s/ --install//' macros.pld
a1f59e15 173%patch0 -p1
0abe7695
ER
174%endif
175
176%build
8446d636 177%{__sed} -i -e 's,{Revision},%{rpm_macros_rev},' macros.pld
84bc5ffe 178
8446d636 179rev=$(awk '/^%%rpm_build_macros/{print $2}' macros.pld)
5c4b2cba
ER
180if [ "$rev" != "%rpm_macros_rev" ]; then
181 : Update rpm_macros_rev define to $rev, and retry
725c4130
ER
182 exit 1
183fi
84bc5ffe 184rev=$(awk -F= '/^VERSION/{print $2}' %{SOURCE3})
9260f9b0
ER
185if [ "$rev" != "%find_lang_rev" ]; then
186 : Update find_lang_rev define to $rev, and retry
187 exit 1
188fi
33e5e8c1 189
89506c89
ER
190%install
191rm -rf $RPM_BUILD_ROOT
7f348d08 192install -d $RPM_BUILD_ROOT%{_usrlibrpm}/{fileattrs,macros.d,pld}
1c834f14 193
7f348d08 194cp -p macros.pld $RPM_BUILD_ROOT%{_usrlibrpm}/pld/macros
81bb55eb 195cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_usrlibrpm}/pld/rpmrc
7f348d08 196
d5b72096
JR
197cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_usrlibrpm}/compress-doc
198cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_usrlibrpm}/find-spec-bcond
cdc9189e 199
79828fe2 200cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.kernel
7f348d08 201cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_usrlibrpm}/fileattrs/kernel.attr
74f36968 202cp -p %{SOURCE62} $RPM_BUILD_ROOT%{_usrlibrpm}/kmod-deps.sh
1c834f14 203
7f348d08
JR
204cp -p service_generator.sh $RPM_BUILD_ROOT%{_usrlibrpm}
205cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_usrlibrpm}/find-lang.sh
206cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_usrlibrpm}/dokuwiki-find-lang.sh
89506c89 207
79828fe2 208cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.ruby
7f348d08
JR
209cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_usrlibrpm}/fileattrs/ruby.attr
210cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_usrlibrpm}/rubygems.rb
211cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_usrlibrpm}/gem_helper.rb
603fd8a1 212
79828fe2 213cp -p %{SOURCE20} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.java
7f348d08
JR
214cp -p %{SOURCE21} $RPM_BUILD_ROOT%{_usrlibrpm}/fileattrs/java.attr
215cp -p %{SOURCE22} $RPM_BUILD_ROOT%{_usrlibrpm}/java-find-requires
216cp -p %{SOURCE23} $RPM_BUILD_ROOT%{_usrlibrpm}/eclipse-feature.xslt
2e434209 217
79828fe2 218cp -p %{SOURCE30} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.php
7f348d08 219cp -p %{SOURCE31} $RPM_BUILD_ROOT%{_usrlibrpm}/fileattrs/php.attr
5fe5c49b
JR
220cp -p %{SOURCE32} $RPM_BUILD_ROOT%{_usrlibrpm}/php.prov
221cp -p %{SOURCE33} $RPM_BUILD_ROOT%{_usrlibrpm}/php.req
222cp -p %{SOURCE34} $RPM_BUILD_ROOT%{_usrlibrpm}/php.req.php
223
79828fe2
JR
224cp -p %{SOURCE40} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.browser-plugins
225cp -p %{SOURCE41} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.cacti
226cp -p %{SOURCE42} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.emacs
227cp -p %{SOURCE43} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.ghc
228cp -p %{SOURCE44} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.nagios
229cp -p %{SOURCE45} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.openldap
230cp -p %{SOURCE46} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.perl
231cp -p %{SOURCE47} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.python
232cp -p %{SOURCE48} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.systemd
233cp -p %{SOURCE49} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.tcl
234cp -p %{SOURCE50} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.upstart
235cp -p %{SOURCE51} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.webapp
236cp -p %{SOURCE52} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.xmms
237cp -p %{SOURCE53} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.xorg
238cp -p %{SOURCE54} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.selinux
2e9c5710 239cp -p %{SOURCE55} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.rust
f1abb055 240cp -p %{SOURCE56} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.arch
79828fe2
JR
241
242cp -p %{SOURCE60} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.gstreamer
54401b3c 243cp -p %{SOURCE61} $RPM_BUILD_ROOT%{_usrlibrpm}/fileattrs/gstreamer.attr
d5b72096 244
89506c89
ER
245%clean
246rm -rf $RPM_BUILD_ROOT
247
248%files
249%defattr(644,root,root,755)
7f348d08
JR
250%{_usrlibrpm}/pld/macros
251%{_usrlibrpm}/pld/rpmrc
252
253%files build
254%defattr(644,root,root,755)
255%{_usrlibrpm}/fileattrs/java.attr
54401b3c 256%{_usrlibrpm}/fileattrs/gstreamer.attr
7f348d08
JR
257%{_usrlibrpm}/fileattrs/kernel.attr
258%{_usrlibrpm}/fileattrs/php.attr
259%{_usrlibrpm}/fileattrs/ruby.attr
260
f1abb055 261%{_usrlibrpm}/macros.d/macros.arch
79828fe2
JR
262%{_usrlibrpm}/macros.d/macros.browser-plugins
263%{_usrlibrpm}/macros.d/macros.cacti
264%{_usrlibrpm}/macros.d/macros.emacs
265%{_usrlibrpm}/macros.d/macros.ghc
266%{_usrlibrpm}/macros.d/macros.gstreamer
267%{_usrlibrpm}/macros.d/macros.java
268%{_usrlibrpm}/macros.d/macros.kernel
269%{_usrlibrpm}/macros.d/macros.nagios
270%{_usrlibrpm}/macros.d/macros.openldap
271%{_usrlibrpm}/macros.d/macros.perl
272%{_usrlibrpm}/macros.d/macros.php
273%{_usrlibrpm}/macros.d/macros.python
274%{_usrlibrpm}/macros.d/macros.ruby
2e9c5710 275%{_usrlibrpm}/macros.d/macros.rust
79828fe2
JR
276%{_usrlibrpm}/macros.d/macros.selinux
277%{_usrlibrpm}/macros.d/macros.systemd
278%{_usrlibrpm}/macros.d/macros.tcl
279%{_usrlibrpm}/macros.d/macros.upstart
280%{_usrlibrpm}/macros.d/macros.webapp
281%{_usrlibrpm}/macros.d/macros.xmms
282%{_usrlibrpm}/macros.d/macros.xorg
7f348d08 283
d5b72096 284%attr(755,root,root) %{_usrlibrpm}/compress-doc
7f348d08
JR
285%attr(755,root,root) %{_usrlibrpm}/dokuwiki-find-lang.sh
286%attr(755,root,root) %{_usrlibrpm}/find-lang.sh
d5b72096 287%attr(755,root,root) %{_usrlibrpm}/find-spec-bcond
74f36968 288%attr(755,root,root) %{_usrlibrpm}/kmod-deps.sh
7f348d08 289%attr(755,root,root) %{_usrlibrpm}/service_generator.sh
603fd8a1 290
68435a2a 291%files rubyprov
603fd8a1
JR
292%defattr(644,root,root,755)
293%attr(755,root,root) %{_usrlibrpm}/gem_helper.rb
294%attr(755,root,root) %{_usrlibrpm}/rubygems.rb
2e434209
JR
295
296%files javaprov
297%defattr(644,root,root,755)
298%attr(755,root,root) %{_usrlibrpm}/java-find-requires
299%{_usrlibrpm}/eclipse-feature.xslt
5fe5c49b
JR
300
301%files php-pearprov
302%defattr(644,root,root,755)
303%attr(755,root,root) %{_usrlibrpm}/php.prov
304%attr(755,root,root) %{_usrlibrpm}/php.req
305%attr(755,root,root) %{_usrlibrpm}/php.req.php
This page took 0.180496 seconds and 4 git commands to generate.