From be2fb6a75ee2a53e81f5404f5d4d12627c99fe73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Sat, 22 Feb 2020 13:22:08 +0100 Subject: [PATCH] - new --- perl-BackupPC-XS.spec | 58 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 perl-BackupPC-XS.spec diff --git a/perl-BackupPC-XS.spec b/perl-BackupPC-XS.spec new file mode 100644 index 0000000..a66870e --- /dev/null +++ b/perl-BackupPC-XS.spec @@ -0,0 +1,58 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%define pdir BackupPC +%define pnam XS +Summary: BackupPC::XS - Perl extension for BackupPC libraries +Name: perl-BackupPC-XS +Version: 0.59 +Release: 1 +License: GPLv3+ and (GPL+ or Artistic) and zlib +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-authors/id/C/CB/CBARRATT/BackupPC-XS-%{version}.tar.gz +# Source0-md5: 1f64d8ced0095435849a7e771f025d84 +URL: https://metacpan.org/release/BackupPC-XS/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +BackupPC::XS provides various submodules that implement various +BackupPC library functions. The following sections describe each +submodule. + +This documentation is very terse. BackupPC::XS is not intended to be a +general-purpose module - it is closely tied to BackupPC. Look in the +BackupPC code to see examples of using this module. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} \ + CC="%{__cc}" \ + OPTIMIZE="%{rpmcflags}" + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} pure_install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%dir %{perl_vendorarch}/BackupPC +%dir %{perl_vendorarch}/auto/BackupPC +%dir %{perl_vendorarch}/auto/BackupPC/XS +%{perl_vendorarch}/BackupPC/*.pm +%attr(755,root,root) %{perl_vendorarch}/auto/BackupPC/XS/*.so +%{_mandir}/man3/* -- 2.44.0