Browse Source

libtdb-1.3.15-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11582 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 7 years ago
parent
commit
6473af719c
1 changed files with 26 additions and 9 deletions
  1. 26 9
      lib/libt/libtdb/libtdb-vl.spec

+ 26 - 9
lib/libt/libtdb/libtdb-vl.spec

@@ -3,7 +3,7 @@
 Name: libtdb
 Summary: The tdb library
 Summary(ja): TDB ライブラリ
-Version: 1.3.14
+Version: 1.3.15
 Release: 1%{?_dist_release}
 
 Group: System Environment/Libraries
@@ -15,15 +15,13 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildRequires: autoconf
 BuildRequires: libxslt
 BuildRequires: docbook-style-xsl
-BuildRequires: python-devel
+BuildRequires: python-devel python-rpm-macros
+BuildRequires: python3-devel python3-rpm-macros
 
 Vendor: Project Vine
 Distribution: Vine Linux
 Packager: tomop
 
-# Patches
-Patch0001: 0001-Install-python-bindings-in-the-arch-specific-location.patch
-
 %description
 A library that implements a trivial database.
 
@@ -54,7 +52,15 @@ Requires: libtdb = %{version}-%{release}
 %description -n python-tdb
 Python bindings for libtdb
 
-%if %build_compat32
+%package -n python3-tdb
+Summary: Python3 bindings for the Tdb library
+Requires: libtdb = %{version}-%{release}
+%{?python_provide:%python_provide python3-tdb}
+
+%description -n python3-tdb
+Python3 bindings for libtdb
+
+%if %{build_compat32}
 
 %package -n compat32-libtdb
 Summary: The TDB library
@@ -69,11 +75,14 @@ A library that implements a trivial database.
 
 %prep
 %setup -q -n tdb-%{version}
-%patch0001 -p1
 
 %build
 #./autogen.sh
-%configure --disable-rpath --bundled-libraries=NONE
+%configure --disable-rpath \
+	--bundled-libraries=NONE \
+	--builtin-libraries=replace \
+	--extra-python=%{__python3}
+
 make %{?_smp_mflags} V=1
 
 %install
@@ -115,7 +124,10 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %{python_sitearch}/*
 
-%if %build_compat32
+%files -n python3-tdb
+%{python3_sitearch}/*
+
+%if %{build_compat32}
 
 %files -n compat32-libtdb
 %attr(755,root,root) %{_libdir}/libtdb.so.*
@@ -138,6 +150,11 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Tue Feb 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.15-1
+- new upstream release.
+- dropped Patch1.
+- enabled python3 modules.
+
 * Sat Jul 15 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.14-1
 - new upstream release.