David Dick 16cb2fd
Name:           perl-Compress-LZF
963a63b
Version:        3.8
5579eaf
Release:        2%{?dist}
David Dick 16cb2fd
Summary:        Extremely light-weight Lempel-Ziv-Free compression
963a63b
# TODO: Unbundle perlmulticore.h
963a63b
# perlmulticore.h:  Public Domain or CC0
963a63b
# Other files:      GPL+ or Artistic
963a63b
## Not in the binary packages
963a63b
# liblzf files:     BSD or GPLv2+
963a63b
License:        (GPL+ or Artistic) and (Public Domain or CC0)
David Dick 16cb2fd
# patch to address https://fedoraproject.org/wiki/Common_Rpmlint_issues#incorrect-fsf-address has been sent upstream at https://rt.cpan.org/Ticket/Display.html?id=93643
David Dick 16cb2fd
Group:          Development/Libraries
David Dick 16cb2fd
URL:            http://search.cpan.org/dist/Compress-LZF/
David Dick 16cb2fd
Source0:        http://www.cpan.org/modules/by-module/Compress/Compress-LZF-%{version}.tar.gz
963a63b
Patch0:         Compress-LZF-3.8-Unbundle-liblzf.patch
963a63b
# Unbundle perlmulticore.h
963a63b
Patch1:         Compress-LZF-3.8-Unbundle-perlmulticore.patch
963a63b
BuildRequires:  coreutils
963a63b
BuildRequires:  findutils
David Dick 16cb2fd
BuildRequires:  liblzf-devel
963a63b
BuildRequires:  make
David Dick 16cb2fd
BuildRequires:  perl
963a63b
BuildRequires:  perlmulticore-static
David Dick 16cb2fd
BuildRequires:  perl(DynaLoader)
David Dick 16cb2fd
BuildRequires:  perl(Exporter)
David Dick 16cb2fd
BuildRequires:  perl(ExtUtils::MakeMaker)
David Dick 16cb2fd
BuildRequires:  perl(Storable)
963a63b
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
David Dick 16cb2fd
David Dick 16cb2fd
%description
David Dick 16cb2fd
This is Perl binding to the LZF compression library.
David Dick 16cb2fd
David Dick 16cb2fd
%prep
David Dick 16cb2fd
%setup -q -n Compress-LZF-%{version}
963a63b
%patch0 -p1
David Dick 16cb2fd
%patch1 -p1
David Dick 16cb2fd
David Dick 16cb2fd
%build
963a63b
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
David Dick 16cb2fd
make %{?_smp_mflags}
David Dick 16cb2fd
David Dick 16cb2fd
%install
963a63b
make pure_install DESTDIR=$RPM_BUILD_ROOT
David Dick 16cb2fd
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
David Dick 16cb2fd
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
David Dick 16cb2fd
%{_fixperms} $RPM_BUILD_ROOT/*
David Dick 16cb2fd
David Dick 16cb2fd
%check
David Dick 16cb2fd
make test
David Dick 16cb2fd
David Dick 16cb2fd
%files
963a63b
%license COPYING COPYING.Artistic COPYING.GNU
963a63b
%doc Changes README
David Dick 16cb2fd
%{perl_vendorarch}/auto/*
David Dick 16cb2fd
%{perl_vendorarch}/Compress*
David Dick 16cb2fd
%{_mandir}/man3/*
David Dick 16cb2fd
David Dick 16cb2fd
%changelog
5579eaf
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.8-2
5579eaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5579eaf
963a63b
* Fri Oct 02 2015 Petr Pisar <ppisar@redhat.com> - 3.8-1
963a63b
- 3.8 bump
963a63b
f936a9a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7-6
f936a9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f936a9a
2c7f4bd
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.7-5
2c7f4bd
- Perl 5.22 rebuild
2c7f4bd
972f9db
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.7-4
972f9db
- Perl 5.20 rebuild
972f9db
b99d791
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7-3
b99d791
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b99d791
77180a7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7-2
77180a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
77180a7
David Dick 16cb2fd
* Sat Mar 8 2014 David Dick <ddick@cpan.org> - 3.7-1
David Dick 16cb2fd
- Initial release