Blame SPECS/perl-Encode-Detect.spec

2b75a2
Name: perl-Encode-Detect
2b75a2
Version: 1.01
2b75a2
Release: 28%{?dist}
2b75a2
Summary: Encode::Encoding subclass that detects the encoding of data
2b75a2
2b75a2
License: MPLv1.1 or GPLv2+ or LGPLv2+
2b75a2
URL: https://metacpan.org/release/Encode-Detect
2b75a2
Source0: https://cpan.metacpan.org/authors/id/J/JG/JGMYERS/Encode-Detect-%{version}.tar.gz
2b75a2
2b75a2
BuildRequires: perl-devel
2b75a2
BuildRequires: perl-generators
2b75a2
BuildRequires: perl(ExtUtils::CBuilder)
2b75a2
BuildRequires: perl(Module::Build)
2b75a2
BuildRequires: perl(Test::More)
2b75a2
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
2b75a2
Requires: perl(Encode::Encoding)
2b75a2
2b75a2
%description
2b75a2
This Perl module is an Encode::Encoding subclass that uses
2b75a2
Encode::Detect::Detector to determine the charset of the input data and then
2b75a2
decodes it using the encoder of the detected charset.
2b75a2
2b75a2
%prep
2b75a2
%setup -q -n Encode-Detect-%{version}
2b75a2
cat <<EOF >%{name}-req
2b75a2
#!/bin/sh
2b75a2
%{__perl_requires} $* |\
2b75a2
  sed -e '/perl(base)/d'
2b75a2
EOF
2b75a2
%define __perl_requires %{_builddir}/Encode-Detect-%{version}/%{name}-req
2b75a2
%{__chmod} +x %{__perl_requires}
2b75a2
2b75a2
%build
2b75a2
%{__perl} Build.PL installdirs=vendor optimize="${RPM_OPT_FLAGS}"
2b75a2
./Build
2b75a2
2b75a2
%check
2b75a2
./Build test
2b75a2
2b75a2
%install
2b75a2
./Build install destdir="${RPM_BUILD_ROOT}" create_packlist=0
2b75a2
find "${RPM_BUILD_ROOT}" -type f -name "*.bs" -size 0 -exec %{__rm} -f {} \;
2b75a2
find "${RPM_BUILD_ROOT}" -depth -type d -exec rmdir {} 2>/dev/null \;
2b75a2
%{_fixperms} "${RPM_BUILD_ROOT}"/*
2b75a2
2b75a2
%files
2b75a2
%doc Changes LICENSE
2b75a2
%{perl_vendorarch}/auto/Encode
2b75a2
%{perl_vendorarch}/Encode
2b75a2
%{_mandir}/man3/Encode::Detect.3*
2b75a2
%{_mandir}/man3/Encode::Detect::Detector.3*
2b75a2
2b75a2
%changelog
2b75a2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-28
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2b75a2
2b75a2
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.01-27
2b75a2
- Perl 5.28 rebuild
2b75a2
2b75a2
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-26
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2b75a2
2b75a2
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-25
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2b75a2
2b75a2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-24
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2b75a2
2b75a2
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.01-23
2b75a2
- Perl 5.26 rebuild
2b75a2
2b75a2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-22
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2b75a2
2b75a2
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.01-21
2b75a2
- Perl 5.24 rebuild
2b75a2
2b75a2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-20
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2b75a2
2b75a2
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-19
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2b75a2
2b75a2
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.01-18
2b75a2
- Perl 5.22 rebuild
2b75a2
2b75a2
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.01-17
2b75a2
- Rebuilt for GCC 5 C++11 ABI change
2b75a2
2b75a2
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.01-16
2b75a2
- Perl 5.20 rebuild
2b75a2
2b75a2
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-15
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2b75a2
2b75a2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-14
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2b75a2
2b75a2
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-13
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2b75a2
2b75a2
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.01-12
2b75a2
- Perl 5.18 rebuild
2b75a2
2b75a2
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-11
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2b75a2
2b75a2
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-10
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2b75a2
2b75a2
* Sun Jun 10 2012 Petr Pisar <ppisar@redhat.com> - 1.01-9
2b75a2
- Perl 5.16 rebuild
2b75a2
2b75a2
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-8
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2b75a2
2b75a2
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.01-7
2b75a2
- Perl mass rebuild
2b75a2
2b75a2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-6
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2b75a2
2b75a2
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.01-5
2b75a2
- 661697 rebuild for fixing problems with vendorach/lib
2b75a2
2b75a2
* Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.01-4
2b75a2
- Mass rebuild with perl-5.12.0
2b75a2
2b75a2
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.01-3
2b75a2
- Mass rebuild with perl-5.12.0
2b75a2
2b75a2
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.01-2
2b75a2
- rebuild against perl 5.10.1
2b75a2
2b75a2
* Thu Nov 12 2009 Warren Togami <wtogami@redhat.com> - 1.01-1
2b75a2
- 1.01 (no changes of consequence, only match latest upstream version)
2b75a2
2b75a2
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-6
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2b75a2
2b75a2
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-5
2b75a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2b75a2
2b75a2
* Sun Jan 20 2008 James Ralston <ralston@pobox.com> - 1.00-4
2b75a2
- remove test before rm -rf $RPM_BUILD_ROOT; rpm will prevent badness
2b75a2
2b75a2
* Wed Dec 19 2007 James Ralston <ralston@pobox.com> - 1.00-3
2b75a2
- the "Build test" step requires perl(Test::More) and perl(Data::Dump)
2b75a2
2b75a2
* Thu Oct 11 2007 James Ralston <ralston@pobox.com> - 1.00-2
2b75a2
- adjust static Requires
2b75a2
- filter erroneous auto-generated Requires in %%prep
2b75a2
2b75a2
* Wed Oct 10 2007 James Ralston <ralston@pobox.com> - 1.00-1
2b75a2
- specfile autogenerated by cpanspec 1.73.