日本OpenSolaris Users Group有志による、レポジトリサーバ作成のためのspecファイル群です。
Revision | 3f246eca39b735e8d33221cfb13b6aca0d5b544a (tree) |
---|---|
Time | 2020-03-18 19:27:37 |
Author | Fumihisa TONAKA <fumi.ftnk@gmai...> |
Commiter | Fumihisa TONAKA |
SFEperl-uri: bump to 1.76 and only build for JPOSUG perl packages
@@ -1,12 +1,7 @@ | ||
1 | 1 | %include Solaris.inc |
2 | 2 | |
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) | |
10 | 5 | %define enable_test %( if [ "x${PERL_DISABLE_TEST}" = 'xtrue' ]; then echo '0'; else echo '1'; fi ) |
11 | 6 | |
12 | 7 | %define include_executable 0 |
@@ -18,263 +13,18 @@ | ||
18 | 13 | |
19 | 14 | Summary: Uniform Resource Identifiers (absolute and relative) |
20 | 15 | Name: SFEperl-%{sfe_cpan_name} |
21 | -IPS_package_name: library/perl-5/%{ips_cpan_name} | |
22 | -Version: 1.74 | |
23 | -IPS_component_version: 1.74 | |
16 | +IPS_package_name: jposug/library/perl-5/%{ips_cpan_name} | |
17 | +Version: 1.76 | |
18 | +IPS_component_version: 1.76 | |
24 | 19 | License: perl_5 |
25 | 20 | URL: https://metacpan.org/pod/URI |
26 | -Source0: http://cpan.metacpan.org/authors/id/E/ET/ETHER/URI-%{version}.tar.gz | |
21 | +Source0: http://cpan.metacpan.org/authors/id/O/OA/OALDERS/URI-%{version}.tar.gz | |
27 | 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
28 | 23 | |
29 | 24 | %description |
30 | 25 | Uniform Resource Identifiers (absolute and relative) |
31 | 26 | |
32 | -%if %{build584} | |
33 | -%package 584 | |
34 | -IPS_package_name: library/perl-5/%{ips_cpan_name}-584 | |
35 | -Summary: Uniform Resource Identifiers (absolute and relative) | |
36 | -BuildRequires: runtime/perl-584 = * | |
37 | -BuildRequires: library/perl-5/cpan-meta-584 | |
38 | -BuildRequires: library/perl-5/extutils-makemaker-584 | |
39 | -BuildRequires: library/perl-5/file-temp-584 | |
40 | -BuildRequires: library/perl-5/json-pp-584 | |
41 | -BuildRequires: library/perl-5/pathtools-584 | |
42 | -%if %{enable_test} | |
43 | -BuildRequires: library/perl-5/test-needs-584 | |
44 | -BuildRequires: library/perl-5/test-simple-584 | |
45 | -BuildRequires: library/perl-5/carp-584 | |
46 | -BuildRequires: library/perl-5/constant-584 | |
47 | -BuildRequires: library/perl-5/data-dumper-584 | |
48 | -BuildRequires: library/perl-5/encode-584 | |
49 | -BuildRequires: library/perl-5/exporter-584 | |
50 | -BuildRequires: library/perl-5/mime-base64-584 | |
51 | -BuildRequires: library/perl-5/net-domain-584 | |
52 | -BuildRequires: library/perl-5/parent-584 | |
53 | -BuildRequires: library/perl-5/pathtools-584 | |
54 | -BuildRequires: library/perl-5/scalar-list-utils-584 | |
55 | -%endif | |
56 | -Requires: runtime/perl-584 = * | |
57 | -Requires: library/perl-5/%{ips_cpan_name} | |
58 | -Requires: library/perl-5/carp-584 | |
59 | -Requires: library/perl-5/constant-584 | |
60 | -Requires: library/perl-5/data-dumper-584 | |
61 | -Requires: library/perl-5/encode-584 | |
62 | -Requires: library/perl-5/exporter-584 | |
63 | -Requires: library/perl-5/mime-base64-584 | |
64 | -Requires: library/perl-5/net-domain-584 | |
65 | -Requires: library/perl-5/parent-584 | |
66 | -Requires: library/perl-5/pathtools-584 | |
67 | -Requires: library/perl-5/scalar-list-utils-584 | |
68 | - | |
69 | -%description 584 | |
70 | -Uniform Resource Identifiers (absolute and relative) | |
71 | -%endif | |
72 | - | |
73 | -%if %{build510} | |
74 | -%package 510 | |
75 | -IPS_package_name: library/perl-5/%{ips_cpan_name}-510 | |
76 | -Summary: Uniform Resource Identifiers (absolute and relative) | |
77 | -BuildRequires: runtime/perl-510 = * | |
78 | -BuildRequires: library/perl-5/cpan-meta-510 | |
79 | -BuildRequires: library/perl-5/extutils-makemaker-510 | |
80 | -BuildRequires: library/perl-5/file-temp-510 | |
81 | -BuildRequires: library/perl-5/json-pp-510 | |
82 | -BuildRequires: library/perl-5/pathtools-510 | |
83 | -BuildRequires: library/perl-5/test-needs-510 | |
84 | -BuildRequires: library/perl-5/test-simple-510 | |
85 | -BuildRequires: library/perl-5/carp-510 | |
86 | -BuildRequires: library/perl-5/constant-510 | |
87 | -BuildRequires: library/perl-5/data-dumper-510 | |
88 | -BuildRequires: library/perl-5/encode-510 | |
89 | -BuildRequires: library/perl-5/exporter-510 | |
90 | -BuildRequires: library/perl-5/mime-base64-510 | |
91 | -BuildRequires: library/perl-5/net-domain-510 | |
92 | -BuildRequires: library/perl-5/parent-510 | |
93 | -BuildRequires: library/perl-5/pathtools-510 | |
94 | -BuildRequires: library/perl-5/scalar-list-utils-510 | |
95 | -Requires: runtime/perl-510 = * | |
96 | -Requires: library/perl-5/%{ips_cpan_name} | |
97 | -Requires: library/perl-5/carp-510 | |
98 | -Requires: library/perl-5/constant-510 | |
99 | -Requires: library/perl-5/data-dumper-510 | |
100 | -Requires: library/perl-5/encode-510 | |
101 | -Requires: library/perl-5/exporter-510 | |
102 | -Requires: library/perl-5/mime-base64-510 | |
103 | -Requires: library/perl-5/net-domain-510 | |
104 | -Requires: library/perl-5/parent-510 | |
105 | -Requires: library/perl-5/pathtools-510 | |
106 | -Requires: library/perl-5/scalar-list-utils-510 | |
107 | - | |
108 | -%description 510 | |
109 | -Uniform Resource Identifiers (absolute and relative) | |
110 | -%endif | |
111 | - | |
112 | -%if %{build512} | |
113 | -%package 512 | |
114 | -IPS_package_name: library/perl-5/%{ips_cpan_name}-512 | |
115 | -Summary: Uniform Resource Identifiers (absolute and relative) | |
116 | -BuildRequires: runtime/perl-512 = * | |
117 | -BuildRequires: library/perl-5/cpan-meta-512 | |
118 | -BuildRequires: library/perl-5/extutils-makemaker-512 | |
119 | -BuildRequires: library/perl-5/file-temp-512 | |
120 | -BuildRequires: library/perl-5/json-pp-512 | |
121 | -BuildRequires: library/perl-5/pathtools-512 | |
122 | -%if %{enable_test} | |
123 | -BuildRequires: library/perl-5/test-needs-512 | |
124 | -BuildRequires: library/perl-5/test-simple-512 | |
125 | -BuildRequires: library/perl-5/carp-512 | |
126 | -BuildRequires: library/perl-5/constant-512 | |
127 | -BuildRequires: library/perl-5/data-dumper-512 | |
128 | -BuildRequires: library/perl-5/encode-512 | |
129 | -BuildRequires: library/perl-5/exporter-512 | |
130 | -BuildRequires: library/perl-5/mime-base64-512 | |
131 | -BuildRequires: library/perl-5/net-domain-512 | |
132 | -BuildRequires: library/perl-5/parent-512 | |
133 | -BuildRequires: library/perl-5/pathtools-512 | |
134 | -BuildRequires: library/perl-5/scalar-list-utils-512 | |
135 | -%endif | |
136 | -Requires: runtime/perl-512 = * | |
137 | -Requires: library/perl-5/%{ips_cpan_name} | |
138 | -Requires: library/perl-5/carp-512 | |
139 | -Requires: library/perl-5/constant-512 | |
140 | -Requires: library/perl-5/data-dumper-512 | |
141 | -Requires: library/perl-5/encode-512 | |
142 | -Requires: library/perl-5/exporter-512 | |
143 | -Requires: library/perl-5/mime-base64-512 | |
144 | -Requires: library/perl-5/net-domain-512 | |
145 | -Requires: library/perl-5/parent-512 | |
146 | -Requires: library/perl-5/pathtools-512 | |
147 | -Requires: library/perl-5/scalar-list-utils-512 | |
148 | - | |
149 | -%description 512 | |
150 | -Uniform Resource Identifiers (absolute and relative) | |
151 | -%endif | |
152 | - | |
153 | -%if %{build516} | |
154 | -%package 516 | |
155 | -IPS_package_name: library/perl-5/%{ips_cpan_name}-516 | |
156 | -Summary: Uniform Resource Identifiers (absolute and relative) | |
157 | -BuildRequires: runtime/perl-516 = * | |
158 | -BuildRequires: library/perl-5/cpan-meta-516 | |
159 | -BuildRequires: library/perl-5/extutils-makemaker-516 | |
160 | -BuildRequires: library/perl-5/file-temp-516 | |
161 | -BuildRequires: library/perl-5/json-pp-516 | |
162 | -BuildRequires: library/perl-5/pathtools-516 | |
163 | -Requires: library/perl-5/%{ips_cpan_name} | |
164 | -%if %{enable_test} | |
165 | -BuildRequires: library/perl-5/test-needs-516 | |
166 | -BuildRequires: library/perl-5/test-simple-516 | |
167 | -BuildRequires: library/perl-5/carp-516 | |
168 | -BuildRequires: library/perl-5/constant-516 | |
169 | -BuildRequires: library/perl-5/data-dumper-516 | |
170 | -BuildRequires: library/perl-5/encode-516 | |
171 | -BuildRequires: library/perl-5/exporter-516 | |
172 | -BuildRequires: library/perl-5/mime-base64-516 | |
173 | -BuildRequires: library/perl-5/net-domain-516 | |
174 | -BuildRequires: library/perl-5/parent-516 | |
175 | -BuildRequires: library/perl-5/pathtools-516 | |
176 | -BuildRequires: library/perl-5/scalar-list-utils-516 | |
177 | -%endif | |
178 | -Requires: runtime/perl-516 = * | |
179 | -Requires: library/perl-5/%{ips_cpan_name} | |
180 | -Requires: library/perl-5/carp-516 | |
181 | -Requires: library/perl-5/constant-516 | |
182 | -Requires: library/perl-5/data-dumper-516 | |
183 | -Requires: library/perl-5/encode-516 | |
184 | -Requires: library/perl-5/exporter-516 | |
185 | -Requires: library/perl-5/mime-base64-516 | |
186 | -Requires: library/perl-5/net-domain-516 | |
187 | -Requires: library/perl-5/parent-516 | |
188 | -Requires: library/perl-5/pathtools-516 | |
189 | -Requires: library/perl-5/scalar-list-utils-516 | |
190 | - | |
191 | -%description 516 | |
192 | -Uniform Resource Identifiers (absolute and relative) | |
193 | -%endif | |
194 | - | |
195 | -%if %{build522} | |
196 | -%package 522 | |
197 | -IPS_package_name: library/perl-5/%{ips_cpan_name}-522 | |
198 | -Summary: Uniform Resource Identifiers (absolute and relative) | |
199 | -BuildRequires: runtime/perl-522 = * | |
200 | -BuildRequires: library/perl-5/cpan-meta-522 | |
201 | -BuildRequires: library/perl-5/extutils-makemaker-522 | |
202 | -BuildRequires: library/perl-5/file-temp-522 | |
203 | -BuildRequires: library/perl-5/json-pp-522 | |
204 | -BuildRequires: library/perl-5/pathtools-522 | |
205 | -%if %{enable_test} | |
206 | -BuildRequires: library/perl-5/test-needs-522 | |
207 | -BuildRequires: library/perl-5/test-simple-522 | |
208 | -BuildRequires: library/perl-5/carp-522 | |
209 | -BuildRequires: library/perl-5/constant-522 | |
210 | -BuildRequires: library/perl-5/data-dumper-522 | |
211 | -BuildRequires: library/perl-5/encode-522 | |
212 | -BuildRequires: library/perl-5/exporter-522 | |
213 | -BuildRequires: library/perl-5/mime-base64-522 | |
214 | -BuildRequires: library/perl-5/net-domain-522 | |
215 | -BuildRequires: library/perl-5/parent-522 | |
216 | -BuildRequires: library/perl-5/pathtools-522 | |
217 | -BuildRequires: library/perl-5/scalar-list-utils-522 | |
218 | -%endif | |
219 | -Requires: runtime/perl-522 = * | |
220 | -Requires: library/perl-5/%{ips_cpan_name} | |
221 | -Requires: library/perl-5/carp-522 | |
222 | -Requires: library/perl-5/constant-522 | |
223 | -Requires: library/perl-5/data-dumper-522 | |
224 | -Requires: library/perl-5/encode-522 | |
225 | -Requires: library/perl-5/exporter-522 | |
226 | -Requires: library/perl-5/mime-base64-522 | |
227 | -Requires: library/perl-5/net-domain-522 | |
228 | -Requires: library/perl-5/parent-522 | |
229 | -Requires: library/perl-5/pathtools-522 | |
230 | -Requires: library/perl-5/scalar-list-utils-522 | |
231 | - | |
232 | -%description 522 | |
233 | -Uniform Resource Identifiers (absolute and relative) | |
234 | -%endif | |
235 | - | |
236 | 27 | %if %{build526} |
237 | -%package 526 | |
238 | -IPS_package_name: library/perl-5/%{ips_cpan_name}-526 | |
239 | -Summary: Uniform Resource Identifiers (absolute and relative) | |
240 | -BuildRequires: runtime/perl-526 = * | |
241 | -BuildRequires: library/perl-5/cpan-meta-526 | |
242 | -BuildRequires: library/perl-5/extutils-makemaker-526 | |
243 | -BuildRequires: library/perl-5/file-temp-526 | |
244 | -BuildRequires: library/perl-5/json-pp-526 | |
245 | -BuildRequires: library/perl-5/pathtools-526 | |
246 | -%if %{enable_test} | |
247 | -BuildRequires: library/perl-5/test-needs-526 | |
248 | -BuildRequires: library/perl-5/test-simple-526 | |
249 | -BuildRequires: library/perl-5/carp-526 | |
250 | -BuildRequires: library/perl-5/constant-526 | |
251 | -BuildRequires: library/perl-5/data-dumper-526 | |
252 | -BuildRequires: library/perl-5/encode-526 | |
253 | -BuildRequires: library/perl-5/exporter-526 | |
254 | -BuildRequires: library/perl-5/mime-base64-526 | |
255 | -BuildRequires: library/perl-5/net-domain-526 | |
256 | -BuildRequires: library/perl-5/parent-526 | |
257 | -BuildRequires: library/perl-5/pathtools-526 | |
258 | -BuildRequires: library/perl-5/scalar-list-utils-526 | |
259 | -%endif | |
260 | -Requires: runtime/perl-526 = * | |
261 | -Requires: library/perl-5/%{ips_cpan_name} | |
262 | -Requires: library/perl-5/carp-526 | |
263 | -Requires: library/perl-5/constant-526 | |
264 | -Requires: library/perl-5/data-dumper-526 | |
265 | -Requires: library/perl-5/encode-526 | |
266 | -Requires: library/perl-5/exporter-526 | |
267 | -Requires: library/perl-5/mime-base64-526 | |
268 | -Requires: library/perl-5/net-domain-526 | |
269 | -Requires: library/perl-5/parent-526 | |
270 | -Requires: library/perl-5/pathtools-526 | |
271 | -Requires: library/perl-5/scalar-list-utils-526 | |
272 | - | |
273 | -%description 526 | |
274 | -Uniform Resource Identifiers (absolute and relative) | |
275 | -%endif | |
276 | - | |
277 | -%if %{build526jposug} | |
278 | 28 | %package 526jposug |
279 | 29 | IPS_package_name: library/perl-5/%{ips_cpan_name}-526jposug |
280 | 30 | Summary: Uniform Resource Identifiers (absolute and relative) |
@@ -293,20 +43,18 @@ | ||
293 | 43 | BuildRequires: library/perl-5/encode-526jposug |
294 | 44 | BuildRequires: library/perl-5/exporter-526jposug |
295 | 45 | BuildRequires: library/perl-5/mime-base64-526jposug |
296 | -BuildRequires: library/perl-5/net-domain-526jposug | |
297 | 46 | BuildRequires: library/perl-5/parent-526jposug |
298 | 47 | BuildRequires: library/perl-5/pathtools-526jposug |
299 | 48 | BuildRequires: library/perl-5/scalar-list-utils-526jposug |
300 | 49 | %endif |
301 | 50 | Requires: runtime/perl-526jposug = * |
302 | -Requires: library/perl-5/%{ips_cpan_name} | |
51 | +# Requires: library/perl-5/%{ips_cpan_name} | |
303 | 52 | Requires: library/perl-5/carp-526jposug |
304 | 53 | Requires: library/perl-5/constant-526jposug |
305 | 54 | Requires: library/perl-5/data-dumper-526jposug |
306 | 55 | Requires: library/perl-5/encode-526jposug |
307 | 56 | Requires: library/perl-5/exporter-526jposug |
308 | 57 | Requires: library/perl-5/mime-base64-526jposug |
309 | -Requires: library/perl-5/net-domain-526jposug | |
310 | 58 | Requires: library/perl-5/parent-526jposug |
311 | 59 | Requires: library/perl-5/pathtools-526jposug |
312 | 60 | Requires: library/perl-5/scalar-list-utils-526jposug |
@@ -315,21 +63,57 @@ | ||
315 | 63 | Uniform Resource Identifiers (absolute and relative) |
316 | 64 | %endif |
317 | 65 | |
66 | +%if %{build530} | |
67 | +%package 530jposug | |
68 | +IPS_package_name: jposug/library/perl-5/%{ips_cpan_name}-530jposug | |
69 | +Summary: Uniform Resource Identifiers (absolute and relative) | |
70 | +BuildRequires: runtime/perl-530jposug = * | |
71 | +BuildRequires: jposug/library/perl-5/cpan-meta-530jposug | |
72 | +BuildRequires: jposug/library/perl-5/extutils-makemaker-530jposug | |
73 | +BuildRequires: jposug/library/perl-5/file-temp-530jposug | |
74 | +BuildRequires: jposug/library/perl-5/json-pp-530jposug | |
75 | +BuildRequires: jposug/library/perl-5/pathtools-530jposug | |
76 | +%if %{enable_test} | |
77 | +BuildRequires: library/perl-5/test-needs-530jposug | |
78 | +BuildRequires: library/perl-5/test-simple-530jposug | |
79 | +BuildRequires: jposug/library/perl-5/carp-530jposug | |
80 | +BuildRequires: jposug/library/perl-5/constant-530jposug | |
81 | +BuildRequires: jposug/library/perl-5/data-dumper-530jposug | |
82 | +BuildRequires: jposug/library/perl-5/encode-530jposug | |
83 | +BuildRequires: jposug/library/perl-5/exporter-530jposug | |
84 | +BuildRequires: jposug/library/perl-5/mime-base64-530jposug | |
85 | +BuildRequires: jposug/library/perl-5/parent-530jposug | |
86 | +BuildRequires: jposug/library/perl-5/pathtools-530jposug | |
87 | +BuildRequires: jposug/library/perl-5/scalar-list-utils-530jposug | |
88 | +%endif | |
89 | +Requires: runtime/perl-530jposug = * | |
90 | +# Requires: jposug/library/perl-5/%{ips_cpan_name} | |
91 | +Requires: jposug/library/perl-5/carp-530jposug | |
92 | +Requires: jposug/library/perl-5/constant-530jposug | |
93 | +Requires: jposug/library/perl-5/data-dumper-530jposug | |
94 | +Requires: jposug/library/perl-5/encode-530jposug | |
95 | +Requires: jposug/library/perl-5/exporter-530jposug | |
96 | +Requires: jposug/library/perl-5/mime-base64-530jposug | |
97 | +Requires: jposug/library/perl-5/parent-530jposug | |
98 | +Requires: jposug/library/perl-5/pathtools-530jposug | |
99 | +Requires: jposug/library/perl-5/scalar-list-utils-530jposug | |
100 | + | |
101 | +%description 530jposug | |
102 | +Uniform Resource Identifiers (absolute and relative) | |
103 | +%endif | |
104 | + | |
105 | + | |
318 | 106 | %prep |
319 | 107 | %setup -q -n %{cpan_name}-%{version} |
320 | 108 | [ -d %{buildroot} ] && rm -rf %{buildroot} |
321 | 109 | |
322 | 110 | %build |
323 | 111 | build_with_makefile.pl_for() { |
112 | + [ -f xdefine ] && rm -f xdefine | |
113 | + [ -d blib ] && rm -rf blib | |
114 | + perl_ver=$1 | |
324 | 115 | test=$2 |
325 | - if [ "x${1}" = 'x5.26jposug' ] | |
326 | - then | |
327 | - perl_ver=$(echo $1 | sed -e 's/jposug//') | |
328 | - prefix=/opt/jposug | |
329 | - else | |
330 | - perl_ver=$1 | |
331 | - prefix=/usr | |
332 | - fi | |
116 | + prefix=/opt/jposug | |
333 | 117 | |
334 | 118 | perl_dir_prefix="${prefix}/perl5/${perl_ver}" |
335 | 119 | bindir="${perl_dir_prefix}/bin" |
@@ -347,15 +131,8 @@ | ||
347 | 131 | DESTDIR=$RPM_BUILD_ROOT \ |
348 | 132 | LIB=${perl_libdir} |
349 | 133 | |
350 | - echo ${perl_ver} | egrep '5\.(84|12)' > /dev/null && bin64=0 || bin64=1 | |
351 | - if [ ${bin64} -eq 0 ] | |
352 | - then | |
353 | - export CC='cc -m32' | |
354 | - export LD='cc -m32' | |
355 | - else | |
356 | - export CC='cc -m64' | |
357 | - export LD='cc -m64' | |
358 | - fi | |
134 | + export CC='cc -m64' | |
135 | + export LD='cc -m64' | |
359 | 136 | make CC="${CC}" LD="${LD}" |
360 | 137 | [ "x${PERL_DISABLE_TEST}" = 'xtrue' ] || [ "x${test}" = 'xwithout_test' ] || make test CC="${CC}" "LD=${LD}" |
361 | 138 | make pure_install |
@@ -363,14 +140,8 @@ | ||
363 | 140 | |
364 | 141 | build_with_build.pl_for() { |
365 | 142 | test=$2 |
366 | - if [ "x${1}" = 'x5.26jposug' ] | |
367 | - then | |
368 | - perl_ver=$(echo $1 | sed -e 's/jposug//') | |
369 | - prefix=/opt/jposug | |
370 | - else | |
371 | - perl_ver=$1 | |
372 | - prefix=/usr | |
373 | - fi | |
143 | + perl_ver=$1 | |
144 | + prefix=/opt/jposug | |
374 | 145 | |
375 | 146 | perl_dir_prefix="${prefix}/perl5/${perl_ver}" |
376 | 147 | bindir="${perl_dir_prefix}/bin" |
@@ -393,21 +164,15 @@ | ||
393 | 164 | } |
394 | 165 | |
395 | 166 | modify_bin_dir() { |
396 | - if [ "x${1}" = 'x5.26jposug' ] | |
397 | - then | |
398 | - perl_ver=$(echo $1 | sed -e 's/jposug//') | |
399 | - prefix=/opt/jposug | |
400 | - else | |
401 | - perl_ver=$1 | |
402 | - prefix=/usr | |
403 | - fi | |
167 | + perl_ver=$1 | |
168 | + prefix=/opt/jposug | |
404 | 169 | |
405 | 170 | if [ -d $RPM_BUILD_ROOT/${prefix}/bin ] |
406 | 171 | then |
407 | 172 | [ -d ${RPM_BUILD_ROOT}${prefix}/perl5/${perl_ver} ] || mkdir -p ${RPM_BUILD_ROOT}${prefix}/perl5/${perl_ver} |
408 | 173 | mv $RPM_BUILD_ROOT${prefix}/bin $RPM_BUILD_ROOT/${prefix}/perl5/${perl_ver}/bin |
409 | 174 | fi |
410 | - | |
175 | + | |
411 | 176 | if [ -d ${RPM_BUILD_ROOT}${prefix}/perl5/${perl_ver}/bin ] |
412 | 177 | then |
413 | 178 | for i in ${RPM_BUILD_ROOT}${prefix}/perl5/${perl_ver}/bin/* |
@@ -419,14 +184,8 @@ | ||
419 | 184 | } |
420 | 185 | |
421 | 186 | modify_man_dir() { |
422 | - if [ "x${1}" = 'x5.26jposug' ] | |
423 | - then | |
424 | - perl_ver=$(echo $1 | sed -e 's/jposug//') | |
425 | - prefix=/opt/jposug | |
426 | - else | |
427 | - perl_ver=$1 | |
428 | - prefix=/usr | |
429 | - fi | |
187 | + perl_ver=$1 | |
188 | + prefix=/opt/jposug | |
430 | 189 | |
431 | 190 | if [ -d $RPM_BUILD_ROOT${prefix}/perl5/${perl_ver}/man ] |
432 | 191 | then |
@@ -461,32 +220,12 @@ | ||
461 | 220 | |
462 | 221 | # To build without test, pass 'without_test' to build_for commaond. |
463 | 222 | # like 'build_for version without_test' |
464 | -%if %{build584} | |
465 | -build_for 5.8.4 | |
466 | -%endif | |
467 | - | |
468 | -%if %{build510} | |
469 | -build_for 5.10 | |
470 | -%endif | |
471 | - | |
472 | -%if %{build512} | |
473 | -build_for 5.12 | |
474 | -%endif | |
475 | - | |
476 | -%if %{build516} | |
477 | -build_for 5.16 | |
478 | -%endif | |
479 | - | |
480 | -%if %{build522} | |
481 | -build_for 5.22 | |
482 | -%endif | |
483 | - | |
484 | 223 | %if %{build526} |
485 | 224 | build_for 5.26 |
486 | 225 | %endif |
487 | 226 | |
488 | -%if %{build526jposug} | |
489 | -build_for 5.26jposug | |
227 | +%if %{build530} | |
228 | +build_for 5.30 | |
490 | 229 | %endif |
491 | 230 | |
492 | 231 | %install |
@@ -519,91 +258,7 @@ | ||
519 | 258 | %defattr(0755,root,bin,-) |
520 | 259 | %{_datadir}/man |
521 | 260 | |
522 | -%if %{build584} | |
523 | -%files 584 | |
524 | -%defattr(0755,root,bin,-) | |
525 | -%dir %attr (0755, root, sys) /usr | |
526 | -%if %{install_to_site_dir} | |
527 | -/usr/perl5/site_perl/5.8.4 | |
528 | -%else | |
529 | -/usr/perl5/vendor_perl/5.8.4 | |
530 | -%endif | |
531 | -%if %{include_executable} | |
532 | -/usr/perl5/5.8.4 | |
533 | -%endif | |
534 | -%endif | |
535 | - | |
536 | -%if %{build510} | |
537 | -%files 510 | |
538 | -%defattr(0755,root,bin,-) | |
539 | -%dir %attr (0755, root, sys) /usr | |
540 | -%if %{install_to_site_dir} | |
541 | -/usr/perl5/site_perl/5.10 | |
542 | -%else | |
543 | -/usr/perl5/vendor_perl/5.10 | |
544 | -%endif | |
545 | -%if %{include_executable} | |
546 | -/usr/perl5/5.1.0 | |
547 | -%endif | |
548 | -%endif | |
549 | - | |
550 | -%if %{build512} | |
551 | -%files 512 | |
552 | -%defattr(0755,root,bin,-) | |
553 | -%dir %attr (0755, root, sys) /usr | |
554 | -%if %{install_to_site_dir} | |
555 | -/usr/perl5/site_perl/5.12 | |
556 | -%else | |
557 | -/usr/perl5/vendor_perl/5.12 | |
558 | -%endif | |
559 | -%if %{include_executable} | |
560 | -/usr/perl5/5.12 | |
561 | -%endif | |
562 | -%endif | |
563 | - | |
564 | -%if %{build516} | |
565 | -%files 516 | |
566 | -%defattr(0755,root,bin,-) | |
567 | -%dir %attr (0755, root, sys) /usr | |
568 | -%if %{install_to_site_dir} | |
569 | -/usr/perl5/site_perl/5.16 | |
570 | -%else | |
571 | -/usr/perl5/vendor_perl/5.16 | |
572 | -%endif | |
573 | -%if %{include_executable} | |
574 | -/usr/perl5/5.16 | |
575 | -%endif | |
576 | -%endif | |
577 | - | |
578 | -%if %{build522} | |
579 | -%files 522 | |
580 | -%defattr(0755,root,bin,-) | |
581 | -%dir %attr (0755, root, sys) /usr | |
582 | -%if %{install_to_site_dir} | |
583 | -/usr/perl5/site_perl/5.22 | |
584 | -%else | |
585 | -/usr/perl5/vendor_perl/5.22 | |
586 | -%endif | |
587 | -%if %{include_executable} | |
588 | -/usr/perl5/5.22 | |
589 | -%endif | |
590 | -%endif | |
591 | - | |
592 | 261 | %if %{build526} |
593 | -%files 526 | |
594 | -%defattr(0755,root,bin,-) | |
595 | -%dir %attr (0755, root, sys) /usr | |
596 | -%if %{install_to_site_dir} | |
597 | -/usr/perl5/site_perl/5.26 | |
598 | -%else | |
599 | -/usr/perl5/vendor_perl/5.26 | |
600 | -%endif | |
601 | -%if %{include_executable} | |
602 | -/usr/perl5/5.26 | |
603 | -%endif | |
604 | -%endif | |
605 | - | |
606 | -%if %{build526jposug} | |
607 | 262 | %files 526jposug |
608 | 263 | %defattr(0755,root,bin,-) |
609 | 264 | %dir %attr (0755, root, sys) /opt |
@@ -617,7 +272,23 @@ | ||
617 | 272 | %endif |
618 | 273 | %endif |
619 | 274 | |
275 | +%if %{build530} | |
276 | +%files 530jposug | |
277 | +%defattr(0755,root,bin,-) | |
278 | +%dir %attr (0755, root, sys) /opt | |
279 | +%if %{install_to_site_dir} | |
280 | +/opt/jposug/perl5/site_perl/5.30 | |
281 | +%else | |
282 | +/opt/jposug/perl5/vendor_perl/5.30 | |
283 | +%endif | |
284 | +%if %{include_executable} | |
285 | +/opt/jposug/perl5/5.30 | |
286 | +%endif | |
287 | +%endif | |
288 | + | |
620 | 289 | %changelog |
290 | +* Wed Mar 18 2020 - Fumihisa TONAKA <fumi.ftnk@gmail.com> | |
291 | +- bump to 1.76 and only build for JPOSUG perl packages | |
621 | 292 | * Fri May 25 2018 - Fumihisa TONAKA <fumi.ftnk@gmail.com> |
622 | 293 | - bump to 1.74 and add apcakges for perl-526{,jposug} |
623 | 294 | * Thu Apr 06 2017 - Fumihisa TONAKA <fumi.ftnk@gmail.com> |