[packages/perl-CDB-TinyCDB] new, version 0.05
glen
glen at pld-linux.org
Tue Nov 6 13:30:02 CET 2018
commit e501d8be6ae025efc9bee5b034243847028985e6
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Tue Nov 6 14:29:34 2018 +0200
new, version 0.05
perl-CDB-TinyCDB.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
---
diff --git a/perl-CDB-TinyCDB.spec b/perl-CDB-TinyCDB.spec
new file mode 100644
index 0000000..d3fc3a0
--- /dev/null
+++ b/perl-CDB-TinyCDB.spec
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%bcond_with tests # do not perform "make test"
+
+%define pdir CDB
+%define pnam TinyCDB
+%include /usr/lib/rpm/macros.perl
+Summary: CDB::TinyCDB - Perl extension for TinyCDB library to cdb databases
+Name: perl-CDB-TinyCDB
+Version: 0.05
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/A/AJ/AJGB/CDB-TinyCDB-%{version}.tar.gz
+# Source0-md5: e77702b031264c6686a6f617e92b9e24
+URL: https://metacpan.org/release/CDB-TinyCDB/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: tinycdb-devel
+%if %{with tests}
+BuildRequires: perl-Test-Exception
+BuildRequires: perl-Test-NoWarnings
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+CDB::TinyCDB is a Perl extension for TinyCDB library to query and
+create CDB files.
+
+%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}/CDB
+%{perl_vendorarch}/CDB/TinyCDB.pm
+%dir %{perl_vendorarch}/auto/CDB
+%dir %{perl_vendorarch}/auto/CDB/TinyCDB
+%attr(755,root,root) %{perl_vendorarch}/auto/CDB/TinyCDB/TinyCDB.so
+%{_mandir}/man3/CDB::TinyCDB.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-CDB-TinyCDB.git/commitdiff/e501d8be6ae025efc9bee5b034243847028985e6
More information about the pld-cvs-commit
mailing list