perl-Encode/perl-Encode.spec

283 lines
8.9 KiB
RPMSpec
Raw Normal View History

2015-06-25 06:24:17 +00:00
# Because encoding sub-package has independent version, version macro gets
# redefined.
2015-07-01 05:22:03 +00:00
%global cpan_version 2.75
2013-02-15 08:16:55 +00:00
Name: perl-Encode
Epoch: 3
Version: %{cpan_version}
2015-06-25 06:24:17 +00:00
Release: 1%{?dist}
2013-02-15 08:16:55 +00:00
Summary: Character encodings in Perl
# ucm: UCD
# other files: GPL+ or Artistic
License: (GPL+ or Artistic) and UCD
2013-02-15 08:16:55 +00:00
Group: Development/Libraries
URL: http://search.cpan.org/dist/Encode/
Source0: http://www.cpan.org/authors/id/D/DA/DANKOGAI/Encode-%{cpan_version}.tar.gz
2013-02-15 08:16:55 +00:00
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
2013-05-17 12:57:23 +00:00
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
2015-02-05 14:52:13 +00:00
# enc2xs is run at build-time
2013-02-15 08:16:55 +00:00
# Run-time:
2013-05-17 12:57:23 +00:00
BuildRequires: perl(bytes)
2013-02-15 08:16:55 +00:00
BuildRequires: perl(Carp)
2015-02-05 14:52:13 +00:00
BuildRequires: perl(Config)
2013-02-15 08:16:55 +00:00
BuildRequires: perl(constant)
2013-09-16 11:00:30 +00:00
BuildRequires: perl(Exporter) >= 5.57
2015-02-05 14:52:13 +00:00
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Find)
BuildRequires: perl(Filter::Util::Call)
2013-02-15 08:16:55 +00:00
BuildRequires: perl(Getopt::Long)
2015-02-05 14:52:13 +00:00
BuildRequires: perl(Getopt::Std)
2013-02-15 08:16:55 +00:00
# I18N::Langinfo is optional
BuildRequires: perl(MIME::Base64)
2013-07-26 06:57:38 +00:00
BuildRequires: perl(overload)
2013-09-16 11:00:30 +00:00
BuildRequires: perl(parent) >= 0.221
2013-02-15 08:16:55 +00:00
# PerlIO::encoding is optional
2015-04-20 10:53:20 +00:00
# POSIX is optional
2013-04-29 12:05:26 +00:00
BuildRequires: perl(re)
2013-02-15 08:16:55 +00:00
# Storable is optional
2013-05-17 12:57:23 +00:00
BuildRequires: perl(utf8)
2013-07-26 06:57:38 +00:00
BuildRequires: perl(vars)
2013-02-15 08:16:55 +00:00
BuildRequires: perl(XSLoader)
# Tests:
2013-09-02 08:43:40 +00:00
# Benchmark not used
2013-05-17 12:57:23 +00:00
BuildRequires: perl(charnames)
2013-07-26 06:57:38 +00:00
BuildRequires: perl(File::Compare)
BuildRequires: perl(File::Copy)
BuildRequires: perl(FileHandle)
BuildRequires: perl(FindBin)
2013-02-15 08:16:55 +00:00
BuildRequires: perl(IO::Select)
BuildRequires: perl(IPC::Open3)
2013-09-02 08:43:40 +00:00
# IPC::Run not used
2013-02-15 08:16:55 +00:00
BuildRequires: perl(lib)
2013-05-17 12:57:23 +00:00
BuildRequires: perl(Scalar::Util)
2013-09-02 08:43:40 +00:00
BuildRequires: perl(Symbol)
2013-07-26 06:57:38 +00:00
BuildRequires: perl(Test)
2013-02-15 08:16:55 +00:00
BuildRequires: perl(Test::More)
2013-07-26 06:57:38 +00:00
BuildRequires: perl(Tie::Scalar)
2013-02-15 08:16:55 +00:00
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
2013-09-16 11:00:30 +00:00
Requires: perl(parent) >= 0.221
2013-02-15 08:16:55 +00:00
%{?perl_default_filter}
2013-09-16 11:00:30 +00:00
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\((Encode::ConfigLocal|MY)\\)
# Filter under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Exporter|parent)\\)$
2013-02-15 08:16:55 +00:00
%description
The Encode module provides the interface between Perl strings and the rest
of the system. Perl strings are sequences of characters.
2014-11-18 16:42:57 +00:00
%package -n perl-encoding
Summary: Write your Perl script in non-ASCII or non-UTF-8
2015-07-01 05:22:03 +00:00
Version: 2.16
License: GPL+ or Artistic
2014-11-18 16:42:57 +00:00
Group: Development/Libraries
# Keeping this sub-package arch-specific because it installs files into
# arch-specific directories.
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Carp)
# Config not needed on perl ≥ 5.008
# Consider Filter::Util::Call as mandatory, bug #1165183, CPAN RT#100427
Requires: perl(Filter::Util::Call)
# I18N::Langinfo is optional
# PerlIO::encoding is optional
Requires: perl(utf8)
Conflicts: perl-Encode < 2:2.64-2
%description -n perl-encoding
With the encoding pragma, you can write your Perl script in any encoding you
like (so long as the Encode module supports it) and still enjoy Unicode
support.
However, this encoding module is deprecated under perl 5.18. It uses
a mechanism provided by perl that is deprecated under 5.18 and higher, and may
be removed in a future version.
The easiest and the best alternative is to write your script in UTF-8.
2013-02-15 08:16:55 +00:00
# To mirror files from perl-devel (bug #456534)
# Keep architecture specific because files go into vendorarch
2013-02-15 08:16:55 +00:00
%package devel
Summary: Perl Encode Module Generator
Version: %{cpan_version}
2013-02-15 08:16:55 +00:00
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{epoch}:%{cpan_version}-%{release}
2013-02-15 08:16:55 +00:00
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl-devel
Requires: perl(Encode)
%description devel
enc2xs builds a Perl extension for use by Encode from either Unicode Character
Mapping files (.ucm) or Tcl Encoding Files (.enc). You can use enc2xs to add
your own encoding to perl. No knowledge of XS is necessary.
%prep
%setup -q -n Encode-%{cpan_version}
2013-02-15 08:16:55 +00:00
%build
# Additional scripts can be installed by appending MORE_SCRIPTS, UCM files by
# INSTALL_UCM.
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc AUTHORS Changes README
2015-02-05 14:52:13 +00:00
%{_bindir}/encguess
2013-02-15 08:16:55 +00:00
%{_bindir}/piconv
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Encode*
%exclude %{perl_vendorarch}/Encode/*.e2x
%exclude %{perl_vendorarch}/Encode/encode.h
2015-02-05 14:52:13 +00:00
%{_mandir}/man1/encguess.*
2013-02-15 08:16:55 +00:00
%{_mandir}/man1/piconv.*
2014-11-18 16:42:57 +00:00
%{_mandir}/man3/Encode.*
%{_mandir}/man3/Encode::*
%files -n perl-encoding
%doc AUTHORS Changes README
%{perl_vendorarch}/encoding.pm
%{_mandir}/man3/encoding.*
2013-02-15 08:16:55 +00:00
%files devel
%{_bindir}/enc2xs
%{_mandir}/man1/enc2xs.*
%{perl_vendorarch}/Encode/*.e2x
%{perl_vendorarch}/Encode/encode.h
%changelog
2015-07-01 05:22:03 +00:00
* Wed Jul 01 2015 Petr Pisar <ppisar@redhat.com> - 3:2.75-1
- 2.75 bump
2015-06-25 06:24:17 +00:00
* Thu Jun 25 2015 Petr Pisar <ppisar@redhat.com> - 3:2.74-1
- 2.74 bump
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3:2.73-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:2.73-2
- Perl 5.22 rebuild
- Increase Epoch to favour standalone package
2015-04-20 10:53:20 +00:00
* Mon Apr 20 2015 Petr Pisar <ppisar@redhat.com> - 2:2.73-1
- 2.73 bump
2015-03-16 09:30:35 +00:00
* Mon Mar 16 2015 Petr Pisar <ppisar@redhat.com> - 2:2.72-1
- 2.72 bump
2015-03-12 12:51:40 +00:00
* Thu Mar 12 2015 Petr Pisar <ppisar@redhat.com> - 2:2.71-1
- 2.71 bump
* Wed Mar 04 2015 Petr Pisar <ppisar@redhat.com> - 2:2.70-2
- Correct license from (GPL+ or Artistic) to ((GPL+ or Artistic) and UCD)
2015-02-05 14:52:13 +00:00
* Thu Feb 05 2015 Petr Pisar <ppisar@redhat.com> - 2:2.70-1
- 2.70 bump
2015-01-23 14:38:52 +00:00
* Fri Jan 23 2015 Petr Pisar <ppisar@redhat.com> - 2:2.68-1
- 2.68 bump
2014-12-05 09:15:24 +00:00
* Fri Dec 05 2014 Petr Pisar <ppisar@redhat.com> - 2:2.67-1
- 2.67 bump
2014-12-03 08:09:06 +00:00
* Wed Dec 03 2014 Petr Pisar <ppisar@redhat.com> - 2:2.66-1
- 2.66 bump
* Tue Nov 18 2014 Petr Pisar <ppisar@redhat.com> - 2:2.64-2
- Consider Filter::Util::Call dependency as mandatory (bug #1165183)
2014-11-19 08:57:41 +00:00
- Sub-package encoding module
2014-11-03 12:17:06 +00:00
* Mon Nov 03 2014 Petr Pisar <ppisar@redhat.com> - 2:2.64-1
- 2.64 bump
2014-10-20 09:13:33 +00:00
* Mon Oct 20 2014 Petr Pisar <ppisar@redhat.com> - 2:2.63-1
- 2.63 bump
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:2.62-5
- Increase Epoch to favour standalone package
2014-08-26 12:06:58 +00:00
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.62-4
- Perl 5.20 rebuild
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.62-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.62-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-06-02 05:50:57 +00:00
* Mon Jun 02 2014 Petr Pisar <ppisar@redhat.com> - 1:2.62-1
- 2.62 bump
2014-04-30 06:56:22 +00:00
* Wed Apr 30 2014 Petr Pisar <ppisar@redhat.com> - 1:2.60-1
- 2.60 bump
2014-04-14 08:57:02 +00:00
* Mon Apr 14 2014 Petr Pisar <ppisar@redhat.com> - 1:2.59-1
- 2.59 bump
2014-03-31 08:39:55 +00:00
* Mon Mar 31 2014 Petr Pisar <ppisar@redhat.com> - 1:2.58-1
- 2.58 bump
2014-01-03 08:32:15 +00:00
* Fri Jan 03 2014 Petr Pisar <ppisar@redhat.com> - 1:2.57-1
- 2.57 bump
2013-09-16 11:00:30 +00:00
* Mon Sep 16 2013 Petr Pisar <ppisar@redhat.com> - 1:2.55-1
- 2.55 bump
2013-09-02 08:43:40 +00:00
* Mon Sep 02 2013 Petr Pisar <ppisar@redhat.com> - 1:2.54-1
- 2.54 bump
2013-08-21 15:33:05 +00:00
* Wed Aug 21 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.52-1
- 2.52 bump
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.51-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-07-26 06:57:38 +00:00
* Fri Jul 26 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-6
- Specify more dependencies
2013-07-18 11:37:30 +00:00
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-5
- Put epoch into dependecny declaration
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-4
- Link minimal build-root packages against libperl.so explicitly
2013-07-12 10:24:22 +00:00
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-3
- Perl 5.18 rebuild
2013-07-12 10:13:11 +00:00
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-2
- Perl 5.18 rebuild
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-1
- Increase epoch to compete with perl.spec
2013-05-17 12:57:23 +00:00
* Fri May 17 2013 Petr Pisar <ppisar@redhat.com> - 2.51-2
- Specify all dependencies
2013-05-02 11:18:11 +00:00
* Thu May 02 2013 Petr Pisar <ppisar@redhat.com> - 2.51-1
- 2.51 bump
2013-04-29 12:05:26 +00:00
* Mon Apr 29 2013 Petr Pisar <ppisar@redhat.com> - 2.50-1
- 2.50 bump (recoding does not launders taintedness)
2013-03-05 13:23:44 +00:00
* Tue Mar 05 2013 Petr Pisar <ppisar@redhat.com> - 2.49-1
- 2.49 bump
2013-02-18 12:10:53 +00:00
* Mon Feb 18 2013 Petr Pisar <ppisar@redhat.com> - 2.48-1
- 2.48 bump
2013-02-15 08:16:55 +00:00
* Thu Sep 20 2012 Petr Pisar <ppisar@redhat.com> 2.47-1
- Specfile autogenerated by cpanspec 1.78.
- Make devel sub-package architecture specific due to file location