64 lines
1.5 KiB
RPMSpec
64 lines
1.5 KiB
RPMSpec
Name: BackupPC-XS
|
|
Version: 0.56
|
|
Release: 3%{?dist}
|
|
Summary: Implementation of various BackupPC functions in a perl-callable module
|
|
|
|
License: GPLv3+ and (GPL+ or Artistic) and zlib
|
|
URL: https://github.com/backuppc/backuppc-xs
|
|
Source0: https://github.com/backuppc/backuppc-xs/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: gcc
|
|
BuildRequires: perl-interpreter 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+.
|
|
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
make
|
|
|
|
|
|
%install
|
|
make pure_install DESTDIR=%{buildroot}
|
|
%{_fixperms} %{buildroot}
|
|
|
|
|
|
%check
|
|
make test
|
|
|
|
|
|
%clean
|
|
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
%doc Changes README
|
|
%{perl_vendorarch}/*
|
|
%exclude %dir %{perl_vendorarch}/auto/
|
|
%{_mandir}/man3/BackupPC::XS.3pm*
|
|
|
|
|
|
%changelog
|
|
* Sat Oct 7 2017 Daniel Steiner <daniel.steiner@greenmail.ch> - 4.1.3-2
|
|
- Iniital build.
|
|
|