From 31d39c813cc186fba023a449bcfa173a140fb630 Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: Mar 15 2017 15:21:01 +0000 Subject: Initial import (#1432122). --- diff --git a/.gitignore b/.gitignore index e69de29..7aabb26 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/BackupPC-XS-0.52.tar.gz diff --git a/BackupPC-XS.spec b/BackupPC-XS.spec new file mode 100644 index 0000000..6310e5d --- /dev/null +++ b/BackupPC-XS.spec @@ -0,0 +1,52 @@ +%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 - 0.52-1 +- Initial packaging. diff --git a/sources b/sources index e69de29..3a7dc59 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (BackupPC-XS-0.52.tar.gz) = df076890ac0d567f58bdeace1cd5cc7169dad285babee7edfda2cf8d71571721fc66fbc0d5bcbf6338de91a350e850ee271543272218f0ae3521731a11f1518c