diff --git a/BackupPC-XS.spec b/BackupPC-XS.spec index 6310e5d..2519212 100644 --- a/BackupPC-XS.spec +++ b/BackupPC-XS.spec @@ -6,17 +6,26 @@ Version: %{ver_major}.%{ver_minor} Release: 1%{?dist} Summary: Implementation of various BackupPC functions in a perl-callable module -License: GPLv3+ +License: GPLv3+ and (GPL+ or Artistic) and zlib URL: https://github.com/backuppc/backuppc-xs Source0: https://github.com/backuppc/backuppc-xs/archive/v%{ver_major}_%{ver_minor}/%{name}-%{version}.tar.gz +BuildRequires: gcc BuildRequires: perl perl-devel BuildRequires: perl-generators +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: perl(XSLoader) # Testing requirement BuildRequires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Provides: bundled(zlib) = 1.2.3 + %description BackupPC::XS implements various BackupPC functions in a perl-callable module. This module is required for BackupPC V4+. @@ -27,12 +36,13 @@ module. This module is required for BackupPC V4+. %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 make %install make pure_install DESTDIR=%{buildroot} +%{_fixperms} %{buildroot} %check @@ -40,8 +50,7 @@ make test %files -%license README -%doc Changes +%doc Changes README %{perl_vendorarch}/* %exclude %dir %{perl_vendorarch}/auto/ %{_mandir}/man3/BackupPC::XS.3pm*