• R/O
  • SSH

contrib-spec-files: Commit

日本OpenSolaris Users Group有志による、レポジトリサーバ作成のためのspecファイル群です。


Commit MetaInfo

Revision603f7d3fa21cafe4341b73cd189b44a50031751b (tree)
Time2020-03-18 20:42:54
AuthorFumihisa TONAKA <fumi.ftnk@gmai...>
CommiterFumihisa TONAKA

Log Message

merge spec_SFEperl-io-compress to default

Change Summary

Incremental Difference

diff -r 3f78cc1af6e5 -r 603f7d3fa21c specs/SFEperl-io-compress.spec
--- a/specs/SFEperl-io-compress.spec Wed Mar 18 20:42:39 2020 +0900
+++ b/specs/SFEperl-io-compress.spec Wed Mar 18 20:42:54 2020 +0900
@@ -1,15 +1,10 @@
11 %include Solaris.inc
22
3-%define build584 0
4-%define build510 %( if [ -x /usr/perl5/5.10/bin/perl ]; then echo '1'; else echo '0'; fi)
5-%define build512 %( if [ -x /usr/perl5/5.12/bin/perl ]; then echo '1'; else echo '0'; fi)
6-%define build516 %( if [ -x /usr/perl5/5.16/bin/perl ]; then echo '1'; else echo '0'; fi)
7-%define build522 %( if [ -x /usr/perl5/5.22/bin/perl ]; then echo '1'; else echo '0'; fi)
8-%define build526 %( if [ -x /usr/perl5/5.26/bin/perl ]; then echo '1'; else echo '0'; fi)
9-%define build526jposug %( if [ -x /opt/jposug/perl5/5.26/bin/perl ]; then echo '1'; else echo '0'; fi)
3+%define build526 %( if [ -x /opt/jposug/perl5/5.26/bin/perl ]; then echo '1'; else echo '0'; fi)
4+%define build530 %( if [ -x /opt/jposug/perl5/5.30/bin/perl ]; then echo '1'; else echo '0'; fi)
105 %define enable_test %( if [ "x${PERL_DISABLE_TEST}" = 'xtrue' ]; then echo '0'; else echo '1'; fi )
116
12-%define include_executable 0
7+%define include_executable 1
138 %define install_to_site_dir 0
149
1510 %define cpan_name IO-Compress
@@ -18,9 +13,9 @@
1813
1914 Summary: IO Interface to compressed data files/buffers
2015 Name: SFEperl-%{sfe_cpan_name}
21-IPS_package_name: library/perl-5/%{ips_cpan_name}
22-Version: 2.081
23-IPS_component_version: 2.81
16+IPS_package_name: jposug/library/perl-5/%{ips_cpan_name}
17+Version: 2.093
18+IPS_component_version: 2.93
2419 License: perl_5
2520 URL: https://metacpan.org/pod/IO::Compress
2621 Source0: http://cpan.metacpan.org/authors/id/P/PM/PMQS/IO-Compress-%{version}.tar.gz
@@ -29,134 +24,7 @@
2924 %description
3025 IO Interface to compressed data files/buffers
3126
32-%if %{build584}
33-%package 584
34-IPS_package_name: library/perl-5/%{ips_cpan_name}-584
35-Summary: IO Interface to compressed data files/buffers
36-BuildRequires: runtime/perl-584 = *
37-BuildRequires: library/perl-5/extutils-makemaker-584
38-%if %{enable_test}
39-BuildRequires: library/perl-5/compress-raw-bzip2-584
40-BuildRequires: library/perl-5/compress-raw-zlib-584
41-BuildRequires: library/perl-5/scalar-list-utils-584
42-%endif
43-Requires: runtime/perl-584 = *
44-Requires: library/perl-5/%{ips_cpan_name}
45-Requires: library/perl-5/compress-raw-bzip2-584
46-Requires: library/perl-5/compress-raw-zlib-584
47-Requires: library/perl-5/scalar-list-utils-584
48-
49-%description 584
50-IO Interface to compressed data files/buffers
51-%endif
52-
53-%if %{build510}
54-%package 510
55-IPS_package_name: library/perl-5/%{ips_cpan_name}-510
56-Summary: IO Interface to compressed data files/buffers
57-BuildRequires: runtime/perl-510 = *
58-BuildRequires: library/perl-5/extutils-makemaker-510
59-%if %{enable_test}
60-BuildRequires: library/perl-5/compress-raw-bzip2-510
61-BuildRequires: library/perl-5/compress-raw-zlib-510
62-BuildRequires: library/perl-5/scalar-list-utils-510
63-%endif
64-Requires: runtime/perl-510 = *
65-Requires: library/perl-5/%{ips_cpan_name}
66-Requires: library/perl-5/compress-raw-bzip2-510
67-Requires: library/perl-5/compress-raw-zlib-510
68-Requires: library/perl-5/scalar-list-utils-510
69-
70-%description 510
71-IO Interface to compressed data files/buffers
72-%endif
73-
74-%if %{build512}
75-%package 512
76-IPS_package_name: library/perl-5/%{ips_cpan_name}-512
77-Summary: IO Interface to compressed data files/buffers
78-BuildRequires: runtime/perl-512 = *
79-BuildRequires: library/perl-5/extutils-makemaker-512
80-%if %{enable_test}
81-BuildRequires: library/perl-5/compress-raw-bzip2-512
82-BuildRequires: library/perl-5/compress-raw-zlib-512
83-BuildRequires: library/perl-5/scalar-list-utils-512
84-%endif
85-Requires: runtime/perl-512 = *
86-Requires: library/perl-5/%{ips_cpan_name}
87-Requires: library/perl-5/compress-raw-bzip2-512
88-Requires: library/perl-5/compress-raw-zlib-512
89-Requires: library/perl-5/scalar-list-utils-512
90-
91-%description 512
92-IO Interface to compressed data files/buffers
93-%endif
94-
95-%if %{build516}
96-%package 516
97-IPS_package_name: library/perl-5/%{ips_cpan_name}-516
98-Summary: IO Interface to compressed data files/buffers
99-BuildRequires: runtime/perl-516 = *
100-BuildRequires: library/perl-5/extutils-makemaker-516
101-Requires: library/perl-5/%{ips_cpan_name}
102-%if %{enable_test}
103-BuildRequires: library/perl-5/compress-raw-bzip2-516
104-BuildRequires: library/perl-5/compress-raw-zlib-516
105-BuildRequires: library/perl-5/scalar-list-utils-516
106-%endif
107-Requires: runtime/perl-516 = *
108-Requires: library/perl-5/%{ips_cpan_name}
109-Requires: library/perl-5/compress-raw-bzip2-516
110-Requires: library/perl-5/compress-raw-zlib-516
111-Requires: library/perl-5/scalar-list-utils-516
112-
113-%description 516
114-IO Interface to compressed data files/buffers
115-%endif
116-
117-%if %{build522}
118-%package 522
119-IPS_package_name: library/perl-5/%{ips_cpan_name}-522
120-Summary: IO Interface to compressed data files/buffers
121-BuildRequires: runtime/perl-522 = *
122-BuildRequires: library/perl-5/extutils-makemaker-522
123-%if %{enable_test}
124-BuildRequires: library/perl-5/compress-raw-bzip2-522
125-BuildRequires: library/perl-5/compress-raw-zlib-522
126-BuildRequires: library/perl-5/scalar-list-utils-522
127-%endif
128-Requires: runtime/perl-522 = *
129-Requires: library/perl-5/%{ips_cpan_name}
130-Requires: library/perl-5/compress-raw-bzip2-522
131-Requires: library/perl-5/compress-raw-zlib-522
132-Requires: library/perl-5/scalar-list-utils-522
133-
134-%description 522
135-IO Interface to compressed data files/buffers
136-%endif
137-
13827 %if %{build526}
139-%package 526
140-IPS_package_name: library/perl-5/%{ips_cpan_name}-526
141-Summary: IO Interface to compressed data files/buffers
142-BuildRequires: runtime/perl-526 = *
143-BuildRequires: library/perl-5/extutils-makemaker-526
144-%if %{enable_test}
145-BuildRequires: library/perl-5/compress-raw-bzip2-526
146-BuildRequires: library/perl-5/compress-raw-zlib-526
147-BuildRequires: library/perl-5/scalar-list-utils-526
148-%endif
149-Requires: runtime/perl-526 = *
150-Requires: library/perl-5/%{ips_cpan_name}
151-Requires: library/perl-5/compress-raw-bzip2-526
152-Requires: library/perl-5/compress-raw-zlib-526
153-Requires: library/perl-5/scalar-list-utils-526
154-
155-%description 526
156-IO Interface to compressed data files/buffers
157-%endif
158-
159-%if %{build526jposug}
16028 %package 526jposug
16129 IPS_package_name: library/perl-5/%{ips_cpan_name}-526jposug
16230 Summary: IO Interface to compressed data files/buffers
@@ -168,7 +36,7 @@
16836 BuildRequires: library/perl-5/scalar-list-utils-526jposug
16937 %endif
17038 Requires: runtime/perl-526jposug = *
171-Requires: library/perl-5/%{ips_cpan_name}
39+# Requires: library/perl-5/%{ips_cpan_name}
17240 Requires: library/perl-5/compress-raw-bzip2-526jposug
17341 Requires: library/perl-5/compress-raw-zlib-526jposug
17442 Requires: library/perl-5/scalar-list-utils-526jposug
@@ -177,21 +45,39 @@
17745 IO Interface to compressed data files/buffers
17846 %endif
17947
48+%if %{build530}
49+%package 530jposug
50+IPS_package_name: jposug/library/perl-5/%{ips_cpan_name}-530jposug
51+Summary: IO Interface to compressed data files/buffers
52+BuildRequires: runtime/perl-530jposug = *
53+BuildRequires: jposug/library/perl-5/extutils-makemaker-530jposug
54+%if %{enable_test}
55+BuildRequires: jposug/library/perl-5/compress-raw-bzip2-530jposug
56+BuildRequires: jposug/library/perl-5/compress-raw-zlib-530jposug
57+BuildRequires: jposug/library/perl-5/scalar-list-utils-530jposug
58+%endif
59+Requires: runtime/perl-530jposug = *
60+# Requires: jposug/library/perl-5/%{ips_cpan_name}
61+Requires: jposug/library/perl-5/compress-raw-bzip2-530jposug
62+Requires: jposug/library/perl-5/compress-raw-zlib-530jposug
63+Requires: jposug/library/perl-5/scalar-list-utils-530jposug
64+
65+%description 530jposug
66+IO Interface to compressed data files/buffers
67+%endif
68+
69+
18070 %prep
18171 %setup -q -n %{cpan_name}-%{version}
18272 [ -d %{buildroot} ] && rm -rf %{buildroot}
18373
18474 %build
18575 build_with_makefile.pl_for() {
76+ [ -f xdefine ] && rm -f xdefine
77+ [ -d blib ] && rm -rf blib
78+ perl_ver=$1
18679 test=$2
187- if [ "x${1}" = 'x5.26jposug' ]
188- then
189- perl_ver=$(echo $1 | sed -e 's/jposug//')
190- prefix=/opt/jposug
191- else
192- perl_ver=$1
193- prefix=/usr
194- fi
80+ prefix=/opt/jposug
19581
19682 perl_dir_prefix="${prefix}/perl5/${perl_ver}"
19783 bindir="${perl_dir_prefix}/bin"
@@ -209,15 +95,8 @@
20995 DESTDIR=$RPM_BUILD_ROOT \
21096 LIB=${perl_libdir}
21197
212- echo ${perl_ver} | egrep '5\.(84|12)' > /dev/null && bin64=0 || bin64=1
213- if [ ${bin64} -eq 0 ]
214- then
215- export CC='cc -m32'
216- export LD='cc -m32'
217- else
218- export CC='cc -m64'
219- export LD='cc -m64'
220- fi
98+ export CC='cc -m64'
99+ export LD='cc -m64'
221100 make CC="${CC}" LD="${LD}"
222101 [ "x${PERL_DISABLE_TEST}" = 'xtrue' ] || [ "x${test}" = 'xwithout_test' ] || make test CC="${CC}" "LD=${LD}"
223102 make pure_install
@@ -225,14 +104,8 @@
225104
226105 build_with_build.pl_for() {
227106 test=$2
228- if [ "x${1}" = 'x5.26jposug' ]
229- then
230- perl_ver=$(echo $1 | sed -e 's/jposug//')
231- prefix=/opt/jposug
232- else
233- perl_ver=$1
234- prefix=/usr
235- fi
107+ perl_ver=$1
108+ prefix=/opt/jposug
236109
237110 perl_dir_prefix="${prefix}/perl5/${perl_ver}"
238111 bindir="${perl_dir_prefix}/bin"
@@ -255,21 +128,15 @@
255128 }
256129
257130 modify_bin_dir() {
258- if [ "x${1}" = 'x5.26jposug' ]
259- then
260- perl_ver=$(echo $1 | sed -e 's/jposug//')
261- prefix=/opt/jposug
262- else
263- perl_ver=$1
264- prefix=/usr
265- fi
131+ perl_ver=$1
132+ prefix=/opt/jposug
266133
267134 if [ -d $RPM_BUILD_ROOT/${prefix}/bin ]
268135 then
269136 [ -d ${RPM_BUILD_ROOT}${prefix}/perl5/${perl_ver} ] || mkdir -p ${RPM_BUILD_ROOT}${prefix}/perl5/${perl_ver}
270137 mv $RPM_BUILD_ROOT${prefix}/bin $RPM_BUILD_ROOT/${prefix}/perl5/${perl_ver}/bin
271138 fi
272-
139+
273140 if [ -d ${RPM_BUILD_ROOT}${prefix}/perl5/${perl_ver}/bin ]
274141 then
275142 for i in ${RPM_BUILD_ROOT}${prefix}/perl5/${perl_ver}/bin/*
@@ -281,14 +148,8 @@
281148 }
282149
283150 modify_man_dir() {
284- if [ "x${1}" = 'x5.26jposug' ]
285- then
286- perl_ver=$(echo $1 | sed -e 's/jposug//')
287- prefix=/opt/jposug
288- else
289- perl_ver=$1
290- prefix=/usr
291- fi
151+ perl_ver=$1
152+ prefix=/opt/jposug
292153
293154 if [ -d $RPM_BUILD_ROOT${prefix}/perl5/${perl_ver}/man ]
294155 then
@@ -323,32 +184,12 @@
323184
324185 # To build without test, pass 'without_test' to build_for commaond.
325186 # like 'build_for version without_test'
326-%if %{build584}
327-build_for 5.8.4
328-%endif
329-
330-%if %{build510}
331-build_for 5.10
332-%endif
333-
334-%if %{build512}
335-build_for 5.12
336-%endif
337-
338-%if %{build516}
339-build_for 5.16
340-%endif
341-
342-%if %{build522}
343-build_for 5.22
344-%endif
345-
346187 %if %{build526}
347188 build_for 5.26
348189 %endif
349190
350-%if %{build526jposug}
351-build_for 5.26jposug
191+%if %{build530}
192+build_for 5.30
352193 %endif
353194
354195 %install
@@ -374,12 +215,6 @@
374215 mv $RPM_BUILD_ROOT%{_datadir}/man/man3 $RPM_BUILD_ROOT%{_datadir}/man/man3perl
375216 fi
376217
377-# to avoid conflict with executable files included in solaris/runtime/perl-5*
378-if [ $( expr %{build510} \| %{build512} \| %{build516} \| %{build522} \| %{build526} ) -ne 0 ]
379-then
380- rm -rf ${RPM_BUILD_ROOT}/usr/perl5/5.*
381-fi
382-
383218 %clean
384219 rm -rf %{buildroot}
385220
@@ -387,91 +222,7 @@
387222 %defattr(0755,root,bin,-)
388223 %{_datadir}/man
389224
390-%if %{build584}
391-%files 584
392-%defattr(0755,root,bin,-)
393-%dir %attr (0755, root, sys) /usr
394-%if %{install_to_site_dir}
395-/usr/perl5/site_perl/5.8.4
396-%else
397-/usr/perl5/vendor_perl/5.8.4
398-%endif
399-%if %{include_executable}
400-/usr/perl5/5.8.4
401-%endif
402-%endif
403-
404-%if %{build510}
405-%files 510
406-%defattr(0755,root,bin,-)
407-%dir %attr (0755, root, sys) /usr
408-%if %{install_to_site_dir}
409-/usr/perl5/site_perl/5.10
410-%else
411-/usr/perl5/vendor_perl/5.10
412-%endif
413-%if %{include_executable}
414-/usr/perl5/5.1.0
415-%endif
416-%endif
417-
418-%if %{build512}
419-%files 512
420-%defattr(0755,root,bin,-)
421-%dir %attr (0755, root, sys) /usr
422-%if %{install_to_site_dir}
423-/usr/perl5/site_perl/5.12
424-%else
425-/usr/perl5/vendor_perl/5.12
426-%endif
427-%if %{include_executable}
428-/usr/perl5/5.12
429-%endif
430-%endif
431-
432-%if %{build516}
433-%files 516
434-%defattr(0755,root,bin,-)
435-%dir %attr (0755, root, sys) /usr
436-%if %{install_to_site_dir}
437-/usr/perl5/site_perl/5.16
438-%else
439-/usr/perl5/vendor_perl/5.16
440-%endif
441-%if %{include_executable}
442-/usr/perl5/5.16
443-%endif
444-%endif
445-
446-%if %{build522}
447-%files 522
448-%defattr(0755,root,bin,-)
449-%dir %attr (0755, root, sys) /usr
450-%if %{install_to_site_dir}
451-/usr/perl5/site_perl/5.22
452-%else
453-/usr/perl5/vendor_perl/5.22
454-%endif
455-%if %{include_executable}
456-/usr/perl5/5.22
457-%endif
458-%endif
459-
460225 %if %{build526}
461-%files 526
462-%defattr(0755,root,bin,-)
463-%dir %attr (0755, root, sys) /usr
464-%if %{install_to_site_dir}
465-/usr/perl5/site_perl/5.26
466-%else
467-/usr/perl5/vendor_perl/5.26
468-%endif
469-%if %{include_executable}
470-/usr/perl5/5.26
471-%endif
472-%endif
473-
474-%if %{build526jposug}
475226 %files 526jposug
476227 %defattr(0755,root,bin,-)
477228 %dir %attr (0755, root, sys) /opt
@@ -480,12 +231,28 @@
480231 %else
481232 /opt/jposug/perl5/vendor_perl/5.26
482233 %endif
483-# %if %{include_executable}
234+%if %{include_executable}
484235 /opt/jposug/perl5/5.26
485-# %endif
236+%endif
237+%endif
238+
239+%if %{build530}
240+%files 530jposug
241+%defattr(0755,root,bin,-)
242+%dir %attr (0755, root, sys) /opt
243+%if %{install_to_site_dir}
244+/opt/jposug/perl5/site_perl/5.30
245+%else
246+/opt/jposug/perl5/vendor_perl/5.30
247+%endif
248+%if %{include_executable}
249+/opt/jposug/perl5/5.30
250+%endif
486251 %endif
487252
488253 %changelog
254+* Wed Mar 18 2020 - Fumihisa TONAKA <fumi.ftnk@gmail.com>
255+- bump to 2.093 and only build for JPOSUG perl packages
489256 * Wed Jun 06 2018 - Fumihisa TONAKA <fumi.ftnk@gmail.com>
490257 - bump to 2.081 and add packages for perl-5{22,26{,jposug}}
491258 * Sun Nov 08 2015 - Fumihisa TONAKA <fumi.ftnk@gmail.com>
Show on old repository browser