72c018
%global pkgname Net-LibIDN
72c018
72c018
Summary:    Perl bindings for GNU LibIDN
72c018
Name:       perl-Net-LibIDN
72c018
Version:    0.12
72c018
Release:    29%{?dist}
72c018
License:    GPL+ or Artistic
72c018
Group:      Development/Libraries
72c018
URL:        http://search.cpan.org/dist/%{pkgname}/
72c018
Source:     http://search.cpan.org/CPAN/authors/id/T/TH/THOR/%{pkgname}-%{version}.tar.gz
72c018
# Use distribution CFLAGS for tests, bug #1242794, CPAN RT#105853
72c018
Patch0:     Net-LibIDN-0.12-Respect-Config-s-cc-ccflags-and-ldflags.patch
72c018
Requires:   perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
72c018
BuildRequires:  libidn-devel >= 0.4.0
72c018
BuildRequires:  perl-interpreter >= 5.8.0
72c018
BuildRequires:  perl-devel
72c018
BuildRequires:  perl-generators
72c018
BuildRequires:  perl(ExtUtils::MakeMaker)
72c018
BuildRequires:  perl(Getopt::Long)
72c018
# Run-time:
72c018
BuildRequires:  perl(AutoLoader)
72c018
BuildRequires:  perl(Carp)
72c018
BuildRequires:  perl(Exporter)
72c018
# Tests:
72c018
BuildRequires:  perl(Test)
72c018
72c018
# Filter the Perl extension module
72c018
%{?perl_default_filter}
72c018
72c018
%description
72c018
Provides perl bindings for GNU Libidn, a C library for handling
72c018
Internationalized Domain Names according to IDNA (RFC 3490), in
72c018
a way very much inspired by Turbo Fredriksson's PHP-IDN.
72c018
72c018
%prep
72c018
%setup -q -n %{pkgname}-%{version}
72c018
%patch0 -p1
72c018
# Change man page encoding into UTF-8
72c018
for F in _LibIDN.pm; do
72c018
    iconv -f latin1 -t utf-8 < "$F" > "${F}.utf"
72c018
    sed -i -e '/^=encoding\s/ s/latin1/utf-8/' "${F}.utf"
72c018
    touch -r "$F" "${F}.utf"
72c018
    mv "${F}.utf" "$F"
72c018
done;
72c018
72c018
%build
72c018
perl Makefile.PL INSTALLDIRS=vendor
72c018
make %{?_smp_mflags}
72c018
72c018
%install
72c018
make pure_install DESTDIR=$RPM_BUILD_ROOT
72c018
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} +
72c018
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} +
72c018
%{_fixperms} $RPM_BUILD_ROOT/*
72c018
72c018
%check
72c018
make test
72c018
72c018
%files
72c018
%doc Artistic Changes README
72c018
%{_mandir}/man3/*.3pm*
72c018
%{perl_vendorarch}/Net
72c018
%{perl_vendorarch}/auto/Net
72c018
72c018
%changelog
72c018
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-29
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
72c018
72c018
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-28
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
72c018
72c018
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-27
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
72c018
72c018
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-26
72c018
- Perl 5.26 rebuild
72c018
72c018
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-25
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
72c018
72c018
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-24
72c018
- Perl 5.24 rebuild
72c018
72c018
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-23
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
72c018
72c018
* Tue Jul 14 2015 Petr Pisar <ppisar@redhat.com> - 0.12-22
72c018
- Use distribution CFLAGS for Makefile.PL's tests (bug #1242794)
72c018
72c018
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-21
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
72c018
72c018
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-20
72c018
- Perl 5.22 rebuild
72c018
72c018
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-19
72c018
- Perl 5.20 rebuild
72c018
72c018
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-18
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
72c018
72c018
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-17
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
72c018
72c018
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-16
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
72c018
72c018
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.12-15
72c018
- Perl 5.18 rebuild
72c018
72c018
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-14
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
72c018
72c018
* Tue Nov 27 2012 Petr Pisar <ppisar@redhat.com> - 0.12-13
72c018
- Modernize spec file
72c018
72c018
* Mon Aug 13 2012 Petr Pisar <ppisar@redhat.com> - 0.12-12
72c018
- Build-require Carp
72c018
72c018
* Mon Aug 13 2012 Petr Pisar <ppisar@redhat.com> - 0.12-11
72c018
- Specify all dependencies
72c018
72c018
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-10
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
72c018
72c018
* Sun Jun 10 2012 Petr Pisar <ppisar@redhat.com> - 0.12-9
72c018
- Perl 5.16 rebuild
72c018
72c018
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-8
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
72c018
72c018
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.12-7
72c018
- Perl mass rebuild
72c018
72c018
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-6
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
72c018
72c018
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.12-5
72c018
- 661697 rebuild for fixing problems with vendorach/lib
72c018
72c018
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.12-4
72c018
- Mass rebuild with perl-5.12.0
72c018
72c018
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.12-3
72c018
- rebuild against perl 5.10.1
72c018
72c018
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
72c018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
72c018
72c018
* Sun May 03 2009 Robert Scheck <robert@fedoraproject.org> 0.12-1
72c018
- Upgrade to 0.12
72c018
72c018
* Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 0.11-2
72c018
- Rebuilt against gcc 4.4 and rpm 4.6
72c018
72c018
* Sun Jan 25 2009 Robert Scheck <robert@fedoraproject.org> 0.11-1
72c018
- Upgrade to 0.11
72c018
72c018
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.10-2
72c018
- Rebuild for new perl
72c018
72c018
* Sun Feb 10 2008 Robert Scheck <robert@fedoraproject.org> 0.10-1
72c018
- Upgrade to 0.10
72c018
72c018
* Wed Aug 29 2007 Robert Scheck <robert@fedoraproject.org> 0.09-4
72c018
- Updated the license tag according to the guidelines
72c018
72c018
* Mon May 07 2007 Robert Scheck <robert@fedoraproject.org> 0.09-3
72c018
- Rebuild
72c018
72c018
* Thu Apr 26 2007 Robert Scheck <robert@fedoraproject.org> 0.09-2
72c018
- Added build requirement to perl(ExtUtils::MakeMaker)
72c018
72c018
* Sun Sep 03 2006 Robert Scheck <robert@fedoraproject.org> 0.09-1
72c018
- Upgrade to 0.0.9 and rebuild for Fedora Core 6
72c018
72c018
* Fri Jun 23 2006 Robert Scheck <robert@fedoraproject.org> 0.08-5
72c018
- Changes to match with Fedora Packaging Guidelines (#193960)
72c018
72c018
* Sun Dec 25 2005 Robert Scheck <robert@fedoraproject.org> 0.08-4
72c018
- Rebuilt against gcc 4.1 and libidn 0.6.0
72c018
72c018
* Fri Apr 01 2005 Robert Scheck <robert@fedoraproject.org> 0.08-3
72c018
- Some spec file cleanup
72c018
72c018
* Mon Mar 14 2005 Robert Scheck <robert@fedoraproject.org> 0.08-2
72c018
- Rebuilt against gcc 4.0
72c018
72c018
* Thu Jan 20 2005 Robert Scheck <robert@fedoraproject.org> 0.08-1
72c018
- Upgrade to 0.0.8
72c018
72c018
* Sun Oct 03 2004 Robert Scheck <robert@fedoraproject.org> 0.07-2
72c018
- Use perl(:MODULE_COMPAT_*) as requirement for perl
72c018
- Lots of spec file cleanups
72c018
72c018
* Mon May 24 2004 Robert Scheck <robert@fedoraproject.org> 0.07-1
72c018
- Upgrade to 0.0.7
72c018
72c018
* Mon Apr 05 2004 Robert Scheck <robert@fedoraproject.org> 0.06-1
72c018
- Upgrade to 0.0.6
72c018
- Initial spec file for Red Hat Linux and Fedora Core