Blob Blame History Raw
%global ver_major 0
%global ver_minor 52

Name:           BackupPC-XS
Version:        %{ver_major}.%{ver_minor}
Release:        1%{?dist}
Summary:        Implementation of various BackupPC functions in a perl-callable module

License:        GPLv3+
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:  perl perl-devel
BuildRequires:  perl-generators
# Testing requirement
BuildRequires:  perl(Test::More)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
BackupPC::XS implements various BackupPC functions in a perl-callable
module.  This module is required for BackupPC V4+.


%prep
%autosetup -n backuppc-xs-%{ver_major}_%{ver_minor}


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make


%install
make pure_install DESTDIR=%{buildroot}


%check
make test


%files
%license README
%doc Changes
%{perl_vendorarch}/*
%exclude %dir %{perl_vendorarch}/auto/
%{_mandir}/man3/BackupPC::XS.3pm*


%changelog
* Mon Mar 13 2017 Richard Shaw <hobbes1069@gmail.com> - 0.52-1
- Initial packaging.