perl-Encode/perl-Encode.spec

148 lines
4.6 KiB
RPMSpec
Raw Normal View History

2013-02-15 08:16:55 +00:00
Name: perl-Encode
Epoch: 1
2013-05-02 11:18:11 +00:00
Version: 2.51
Release: 7%{?dist}
2013-02-15 08:16:55 +00:00
Summary: Character encodings in Perl
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Encode/
Source0: http://www.cpan.org/authors/id/D/DA/DANKOGAI/Encode-%{version}.tar.gz
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)
2013-02-15 08:16:55 +00:00
# Run-time:
BuildRequires: perl(base)
2013-05-17 12:57:23 +00:00
BuildRequires: perl(bytes)
2013-02-15 08:16:55 +00:00
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Exporter)
# Filter::Util::Call is optional
BuildRequires: perl(Getopt::Long)
# I18N::Langinfo is optional
BuildRequires: perl(MIME::Base64)
2013-07-26 06:57:38 +00:00
BuildRequires: perl(overload)
2013-02-15 08:16:55 +00:00
# PerlIO::encoding 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-05-17 12:57:23 +00:00
BuildRequires: perl(charnames)
BuildRequires: perl(Config)
BuildRequires: perl(File::Basename)
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)
BuildRequires: perl(lib)
2013-05-17 12:57:23 +00:00
BuildRequires: perl(Scalar::Util)
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))
%{?perl_default_filter}
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Encode::ConfigLocal|MY\\)
%description
The Encode module provides the interface between Perl strings and the rest
of the system. Perl strings are sequences of characters.
# 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
Group: Development/Libraries
2013-07-18 11:37:30 +00:00
Requires: %{name}%{?_isa} = %{epoch}:%{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-%{version}
%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
%{_bindir}/piconv
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Encode*
%exclude %{perl_vendorarch}/Encode/*.e2x
%exclude %{perl_vendorarch}/Encode/encode.h
%{perl_vendorarch}/encoding.pm
%{_mandir}/man1/piconv.*
%{_mandir}/man3/*
%files devel
%{_bindir}/enc2xs
%{_mandir}/man1/enc2xs.*
%{perl_vendorarch}/Encode/*.e2x
%{perl_vendorarch}/Encode/encode.h
%changelog
* 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