]> git.pld-linux.org Git - packages/perl-CDB-TinyCDB.git/commitdiff
new, version 0.05 auto/th/perl-CDB-TinyCDB-0.05-1
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 6 Nov 2018 12:29:34 +0000 (14:29 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 6 Nov 2018 12:29:34 +0000 (14:29 +0200)
perl-CDB-TinyCDB.spec [new file with mode: 0644]

diff --git a/perl-CDB-TinyCDB.spec b/perl-CDB-TinyCDB.spec
new file mode 100644 (file)
index 0000000..d3fc3a0
--- /dev/null
@@ -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*
This page took 0.128514 seconds and 4 git commands to generate.