1 | # Because encoding sub-package has independent version, version macro gets |
---|
2 | # redefined. |
---|
3 | %global cpan_version 2.98 |
---|
4 | %global encoding_version 2.22 |
---|
5 | |
---|
6 | Name: perl-Encode |
---|
7 | Version: %{cpan_version} |
---|
8 | # Keep increasing release number even when rebasing version because |
---|
9 | # perl-encoding sub-package has independent version which does not change |
---|
10 | # often and consecutive builds would clash on perl-encoding NEVRA. This is the |
---|
11 | # same case as in perl.spec. |
---|
12 | Release: 1%{?_dist_release} |
---|
13 | Summary: Character encodings in Perl |
---|
14 | # ucm: UCD |
---|
15 | # other files: GPL+ or Artistic |
---|
16 | License: (GPL+ or Artistic) and UCD |
---|
17 | Group: Development/Libraries |
---|
18 | |
---|
19 | Vendor: Project Vine |
---|
20 | Distribution: Vine Linux |
---|
21 | |
---|
22 | URL: https://metacpan.org/pod/Encode |
---|
23 | Source0: https://cpan.metacpan.org/authors/id/D/DA/DANKOGAI/Encode-%{cpan_version}.tar.gz |
---|
24 | BuildRequires: coreutils |
---|
25 | BuildRequires: findutils |
---|
26 | BuildRequires: make |
---|
27 | BuildRequires: perl |
---|
28 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
29 | BuildRequires: perl(File::Spec) |
---|
30 | BuildRequires: perl(File::Spec::Functions) |
---|
31 | BuildRequires: perl(strict) |
---|
32 | BuildRequires: perl(warnings) |
---|
33 | # enc2xs is run at build-time |
---|
34 | # Run-time: |
---|
35 | BuildRequires: perl(bytes) |
---|
36 | BuildRequires: perl(Carp) |
---|
37 | BuildRequires: perl(Config) |
---|
38 | BuildRequires: perl(constant) |
---|
39 | BuildRequires: perl(Exporter) >= 5.57 |
---|
40 | BuildRequires: perl(File::Basename) |
---|
41 | BuildRequires: perl(File::Find) |
---|
42 | BuildRequires: perl(Filter::Util::Call) |
---|
43 | BuildRequires: perl(Getopt::Long) |
---|
44 | BuildRequires: perl(Getopt::Std) |
---|
45 | # I18N::Langinfo is optional |
---|
46 | BuildRequires: perl(MIME::Base64) |
---|
47 | BuildRequires: perl(overload) |
---|
48 | BuildRequires: perl(parent) >= 0.221 |
---|
49 | # PerlIO::encoding is optional |
---|
50 | # POSIX is optional |
---|
51 | BuildRequires: perl(re) |
---|
52 | # Storable is optional |
---|
53 | BuildRequires: perl(utf8) |
---|
54 | BuildRequires: perl(vars) |
---|
55 | BuildRequires: perl(XSLoader) |
---|
56 | # Tests: |
---|
57 | # Benchmark not used |
---|
58 | BuildRequires: perl(charnames) |
---|
59 | BuildRequires: perl(File::Compare) |
---|
60 | BuildRequires: perl(File::Copy) |
---|
61 | BuildRequires: perl(FileHandle) |
---|
62 | BuildRequires: perl(FindBin) |
---|
63 | BuildRequires: perl(IO::Select) |
---|
64 | BuildRequires: perl(IPC::Open3) |
---|
65 | # IPC::Run not used |
---|
66 | BuildRequires: perl(lib) |
---|
67 | BuildRequires: perl(Scalar::Util) |
---|
68 | BuildRequires: perl(Symbol) |
---|
69 | BuildRequires: perl(Test) |
---|
70 | BuildRequires: perl(Test::More) |
---|
71 | BuildRequires: perl(Tie::Scalar) |
---|
72 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
73 | Requires: perl(parent) >= 0.221 |
---|
74 | |
---|
75 | %{?perl_default_filter} |
---|
76 | %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\((Encode::ConfigLocal|MY)\\) |
---|
77 | |
---|
78 | # Filter under-specified dependencies |
---|
79 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Exporter|parent)\\)$ |
---|
80 | |
---|
81 | %description |
---|
82 | The Encode module provides the interface between Perl strings and the rest |
---|
83 | of the system. Perl strings are sequences of characters. |
---|
84 | |
---|
85 | %package -n perl-encoding |
---|
86 | Summary: Write your Perl script in non-ASCII or non-UTF-8 |
---|
87 | Version: %{encoding_version} |
---|
88 | License: GPL+ or Artistic |
---|
89 | Group: Development/Libraries |
---|
90 | # Keeping this sub-package arch-specific because it installs files into |
---|
91 | # arch-specific directories. |
---|
92 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
93 | Requires: perl(Carp) |
---|
94 | # Config not needed on perl ≥ 5.008 |
---|
95 | # Consider Filter::Util::Call as mandatory, bug #1165183, CPAN RT#100427 |
---|
96 | Requires: perl(Filter::Util::Call) |
---|
97 | # I18N::Langinfo is optional |
---|
98 | # PerlIO::encoding is optional |
---|
99 | Requires: perl(utf8) |
---|
100 | Conflicts: perl-Encode < 2.64-2 |
---|
101 | |
---|
102 | %description -n perl-encoding |
---|
103 | With the encoding pragma, you can write your Perl script in any encoding you |
---|
104 | like (so long as the Encode module supports it) and still enjoy Unicode |
---|
105 | support. |
---|
106 | |
---|
107 | However, this encoding module is deprecated under perl 5.18. It uses |
---|
108 | a mechanism provided by perl that is deprecated under 5.18 and higher, and may |
---|
109 | be removed in a future version. |
---|
110 | |
---|
111 | The easiest and the best alternative is to write your script in UTF-8. |
---|
112 | |
---|
113 | # To mirror files from perl-devel (bug #456534) |
---|
114 | # Keep architecture specific because files go into vendorarch |
---|
115 | %package devel |
---|
116 | Summary: Perl Encode Module Generator |
---|
117 | Version: %{cpan_version} |
---|
118 | Group: Development/Libraries |
---|
119 | Requires: %{name}%{?_isa} = %{cpan_version}-%{release} |
---|
120 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
121 | Recommends: perl-devel%{?_isa} |
---|
122 | Requires: perl(Encode) |
---|
123 | |
---|
124 | %description devel |
---|
125 | enc2xs builds a Perl extension for use by Encode from either Unicode Character |
---|
126 | Mapping files (.ucm) or Tcl Encoding Files (.enc). You can use enc2xs to add |
---|
127 | your own encoding to perl. No knowledge of XS is necessary. |
---|
128 | |
---|
129 | |
---|
130 | %prep |
---|
131 | %setup -q -n Encode-%{cpan_version} |
---|
132 | |
---|
133 | %build |
---|
134 | # Additional scripts can be installed by appending MORE_SCRIPTS, UCM files by |
---|
135 | # INSTALL_UCM. |
---|
136 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" |
---|
137 | make %{?_smp_mflags} |
---|
138 | |
---|
139 | %install |
---|
140 | make pure_install DESTDIR=$RPM_BUILD_ROOT |
---|
141 | find $RPM_BUILD_ROOT -type f -name .packlist -delete |
---|
142 | find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete |
---|
143 | %{_fixperms} $RPM_BUILD_ROOT/* |
---|
144 | |
---|
145 | # remove files that conflict with perl's |
---|
146 | rm -f %{buildroot}%{_bindir}/piconv |
---|
147 | rm -f %{buildroot}%{_bindir}/enc2xs |
---|
148 | rm -rf %{buildroot}%{_mandir} |
---|
149 | |
---|
150 | %check |
---|
151 | make test |
---|
152 | |
---|
153 | %files |
---|
154 | %doc AUTHORS Changes README |
---|
155 | %{_bindir}/encguess |
---|
156 | #%{_bindir}/piconv |
---|
157 | %{perl_vendorarch}/auto/* |
---|
158 | %{perl_vendorarch}/Encode* |
---|
159 | %exclude %{perl_vendorarch}/Encode/*.e2x |
---|
160 | %exclude %{perl_vendorarch}/Encode/encode.h |
---|
161 | #%{_mandir}/man1/encguess.* |
---|
162 | #%{_mandir}/man1/piconv.* |
---|
163 | #%{_mandir}/man3/Encode.* |
---|
164 | #%{_mandir}/man3/Encode::* |
---|
165 | |
---|
166 | %files -n perl-encoding |
---|
167 | %doc AUTHORS Changes README |
---|
168 | %{perl_vendorarch}/encoding.pm |
---|
169 | #%{_mandir}/man3/encoding.* |
---|
170 | |
---|
171 | %files devel |
---|
172 | #%{_bindir}/enc2xs |
---|
173 | #%{_mandir}/man1/enc2xs.* |
---|
174 | %{perl_vendorarch}/Encode/*.e2x |
---|
175 | %{perl_vendorarch}/Encode/encode.h |
---|
176 | |
---|
177 | %changelog |
---|
178 | * Sat Jan 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.98-1 |
---|
179 | - new upstream release. |
---|
180 | |
---|
181 | * Mon May 23 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.84-11 |
---|
182 | - initial build for Vine Linux. |
---|
183 | |
---|
184 | * Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 4:2.84-10 |
---|
185 | - Increase epoch to favour standalone package |
---|
186 | |
---|
187 | * Mon Apr 18 2016 Petr Pisar <ppisar@redhat.com> - 3:2.84-9 |
---|
188 | - Weak perl-Encode-devel dependency on perl-devel to Recommends level |
---|
189 | (bug #1129443) |
---|
190 | |
---|
191 | * Mon Apr 11 2016 Petr Pisar <ppisar@redhat.com> - 3:2.84-8 |
---|
192 | - 2.84 bump |
---|
193 | |
---|
194 | * Thu Mar 24 2016 Petr Pisar <ppisar@redhat.com> - 3:2.83-7 |
---|
195 | - 2.83 bump |
---|
196 | |
---|
197 | * Tue Feb 09 2016 Petr Pisar <ppisar@redhat.com> - 3:2.82-6 |
---|
198 | - 2.82 bump |
---|
199 | |
---|
200 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3:2.80-5 |
---|
201 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
202 | |
---|
203 | * Mon Jan 25 2016 Petr Pisar <ppisar@redhat.com> - 3:2.80-4 |
---|
204 | - 2.80 bump |
---|
205 | |
---|
206 | * Fri Jan 22 2016 Petr Pisar <ppisar@redhat.com> - 3:2.79-3 |
---|
207 | - 2.79 bump |
---|
208 | |
---|
209 | * Thu Sep 24 2015 Petr Pisar <ppisar@redhat.com> - 3:2.78-2 |
---|
210 | - 2.78 bump |
---|
211 | |
---|
212 | * Wed Sep 16 2015 Petr Pisar <ppisar@redhat.com> - 3:2.77-1 |
---|
213 | - 2.77 bump |
---|
214 | |
---|
215 | * Fri Jul 31 2015 Petr Pisar <ppisar@redhat.com> - 3:2.76-2 |
---|
216 | - Increase release number to have unique perl-encoding NEVRA |
---|
217 | |
---|
218 | * Fri Jul 31 2015 Petr Pisar <ppisar@redhat.com> - 3:2.76-1 |
---|
219 | - 2.76 bump |
---|
220 | |
---|
221 | * Wed Jul 01 2015 Petr Pisar <ppisar@redhat.com> - 3:2.75-1 |
---|
222 | - 2.75 bump |
---|
223 | |
---|
224 | * Thu Jun 25 2015 Petr Pisar <ppisar@redhat.com> - 3:2.74-1 |
---|
225 | - 2.74 bump |
---|
226 | |
---|
227 | * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3:2.73-3 |
---|
228 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
---|
229 | |
---|
230 | * Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:2.73-2 |
---|
231 | - Perl 5.22 rebuild |
---|
232 | - Increase Epoch to favour standalone package |
---|
233 | |
---|
234 | * Mon Apr 20 2015 Petr Pisar <ppisar@redhat.com> - 2:2.73-1 |
---|
235 | - 2.73 bump |
---|
236 | |
---|
237 | * Mon Mar 16 2015 Petr Pisar <ppisar@redhat.com> - 2:2.72-1 |
---|
238 | - 2.72 bump |
---|
239 | |
---|
240 | * Thu Mar 12 2015 Petr Pisar <ppisar@redhat.com> - 2:2.71-1 |
---|
241 | - 2.71 bump |
---|
242 | |
---|
243 | * Wed Mar 04 2015 Petr Pisar <ppisar@redhat.com> - 2:2.70-2 |
---|
244 | - Correct license from (GPL+ or Artistic) to ((GPL+ or Artistic) and UCD) |
---|
245 | |
---|
246 | * Thu Feb 05 2015 Petr Pisar <ppisar@redhat.com> - 2:2.70-1 |
---|
247 | - 2.70 bump |
---|
248 | |
---|
249 | * Fri Jan 23 2015 Petr Pisar <ppisar@redhat.com> - 2:2.68-1 |
---|
250 | - 2.68 bump |
---|
251 | |
---|
252 | * Fri Dec 05 2014 Petr Pisar <ppisar@redhat.com> - 2:2.67-1 |
---|
253 | - 2.67 bump |
---|
254 | |
---|
255 | * Wed Dec 03 2014 Petr Pisar <ppisar@redhat.com> - 2:2.66-1 |
---|
256 | - 2.66 bump |
---|
257 | |
---|
258 | * Tue Nov 18 2014 Petr Pisar <ppisar@redhat.com> - 2:2.64-2 |
---|
259 | - Consider Filter::Util::Call dependency as mandatory (bug #1165183) |
---|
260 | - Sub-package encoding module |
---|
261 | |
---|
262 | * Mon Nov 03 2014 Petr Pisar <ppisar@redhat.com> - 2:2.64-1 |
---|
263 | - 2.64 bump |
---|
264 | |
---|
265 | * Mon Oct 20 2014 Petr Pisar <ppisar@redhat.com> - 2:2.63-1 |
---|
266 | - 2.63 bump |
---|
267 | |
---|
268 | * Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:2.62-5 |
---|
269 | - Increase Epoch to favour standalone package |
---|
270 | |
---|
271 | * Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.62-4 |
---|
272 | - Perl 5.20 rebuild |
---|
273 | |
---|
274 | * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.62-3 |
---|
275 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
276 | |
---|
277 | * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.62-2 |
---|
278 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
279 | |
---|
280 | * Mon Jun 02 2014 Petr Pisar <ppisar@redhat.com> - 1:2.62-1 |
---|
281 | - 2.62 bump |
---|
282 | |
---|
283 | * Wed Apr 30 2014 Petr Pisar <ppisar@redhat.com> - 1:2.60-1 |
---|
284 | - 2.60 bump |
---|
285 | |
---|
286 | * Mon Apr 14 2014 Petr Pisar <ppisar@redhat.com> - 1:2.59-1 |
---|
287 | - 2.59 bump |
---|
288 | |
---|
289 | * Mon Mar 31 2014 Petr Pisar <ppisar@redhat.com> - 1:2.58-1 |
---|
290 | - 2.58 bump |
---|
291 | |
---|
292 | * Fri Jan 03 2014 Petr Pisar <ppisar@redhat.com> - 1:2.57-1 |
---|
293 | - 2.57 bump |
---|
294 | |
---|
295 | * Mon Sep 16 2013 Petr Pisar <ppisar@redhat.com> - 1:2.55-1 |
---|
296 | - 2.55 bump |
---|
297 | |
---|
298 | * Mon Sep 02 2013 Petr Pisar <ppisar@redhat.com> - 1:2.54-1 |
---|
299 | - 2.54 bump |
---|
300 | |
---|
301 | * Wed Aug 21 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.52-1 |
---|
302 | - 2.52 bump |
---|
303 | |
---|
304 | * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.51-7 |
---|
305 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
306 | |
---|
307 | * Fri Jul 26 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-6 |
---|
308 | - Specify more dependencies |
---|
309 | |
---|
310 | * Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-5 |
---|
311 | - Put epoch into dependecny declaration |
---|
312 | |
---|
313 | * Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-4 |
---|
314 | - Link minimal build-root packages against libperl.so explicitly |
---|
315 | |
---|
316 | * Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-3 |
---|
317 | - Perl 5.18 rebuild |
---|
318 | |
---|
319 | * Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-2 |
---|
320 | - Perl 5.18 rebuild |
---|
321 | |
---|
322 | * Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-1 |
---|
323 | - Increase epoch to compete with perl.spec |
---|
324 | |
---|
325 | * Fri May 17 2013 Petr Pisar <ppisar@redhat.com> - 2.51-2 |
---|
326 | - Specify all dependencies |
---|
327 | |
---|
328 | * Thu May 02 2013 Petr Pisar <ppisar@redhat.com> - 2.51-1 |
---|
329 | - 2.51 bump |
---|
330 | |
---|
331 | * Mon Apr 29 2013 Petr Pisar <ppisar@redhat.com> - 2.50-1 |
---|
332 | - 2.50 bump (recoding does not launders taintedness) |
---|
333 | |
---|
334 | * Tue Mar 05 2013 Petr Pisar <ppisar@redhat.com> - 2.49-1 |
---|
335 | - 2.49 bump |
---|
336 | |
---|
337 | * Mon Feb 18 2013 Petr Pisar <ppisar@redhat.com> - 2.48-1 |
---|
338 | - 2.48 bump |
---|
339 | |
---|
340 | * Thu Sep 20 2012 Petr Pisar <ppisar@redhat.com> 2.47-1 |
---|
341 | - Specfile autogenerated by cpanspec 1.78. |
---|
342 | - Make devel sub-package architecture specific due to file location |
---|