Browse Source

libtdb-1.3.18-1

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

+ 27 - 1
lib/libt/libtdb/libtdb-vl.spec

@@ -1,9 +1,11 @@
+%bcond_with python2
+
 %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
 
 Name: libtdb
 Summary: The tdb library
 Summary(ja): TDB ライブラリ
-Version: 1.3.16
+Version: 1.3.18
 Release: 1%{?_dist_release}
 
 Group: System Environment/Libraries
@@ -15,8 +17,11 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildRequires: autoconf
 BuildRequires: libxslt
 BuildRequires: docbook-style-xsl
+%if %{with python2}
 BuildRequires: python-devel python-rpm-macros
+%endif
 BuildRequires: python3-devel python3-rpm-macros
+BuildRequires: libtirpc-devel
 
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -43,6 +48,7 @@ Requires: libtdb = %{version}-%{release}
 %description -n tdb-tools
 Tools to manage Tdb files
 
+%if %{with python2}
 %package -n python-tdb
 Summary: Python bindings for the Tdb library
 Summary(ja): TDB ライブラリの python バインディング
@@ -52,10 +58,15 @@ Requires: libtdb = %{version}-%{release}
 %description -n python-tdb
 Python bindings for libtdb
 
+%endif
+
 %package -n python3-tdb
 Summary: Python3 bindings for the Tdb library
 Requires: libtdb = %{version}-%{release}
 %{?python_provide:%python_provide python3-tdb}
+%if %{without python2}
+Obsoletes: python-tdb < %{version}
+%endif
 
 %description -n python3-tdb
 Python3 bindings for libtdb
@@ -78,10 +89,15 @@ A library that implements a trivial database.
 
 %build
 #./autogen.sh
+%if %{without python2}
+export PYTHON=%{__python3}
+%endif
 %configure --disable-rpath \
 	--bundled-libraries=NONE \
 	--builtin-libraries=replace \
+%if %{with python2}
 	--extra-python=%{__python3}
+%endif
 
 make %{?_smp_mflags} V=1
 
@@ -120,9 +136,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man8/tdbtool.8*
 %{_mandir}/man8/tdbrestore.8*
 
+%if %{with python2}
 %files -n python-tdb
 %defattr(-,root,root,-)
 %{python_sitearch}/*
+%endif
 
 %files -n python3-tdb
 %{python3_sitearch}/*
@@ -138,10 +156,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %postun -p /sbin/ldconfig
 
+%if %{with python2}
 %post -n python-tdb -p /sbin/ldconfig
 
 %postun -n python-tdb -p /sbin/ldconfig
 
+%endif
+
 %post -n python3-tdb -p /sbin/ldconfig
 
 %postun -n python3-tdb -p /sbin/ldconfig
@@ -154,6 +175,11 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Sat May 11 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.18-1
+- new upstream release.
+- disabled python2.
+- added BR:libtirpc-devel.
+
 * Fri Nov 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.16-1
 - new upstream release.