[packages/libsolv] - updated to 0.6.19 - updated python patch - added tcl binding

qboosh qboosh at pld-linux.org
Sat Feb 20 10:19:54 CET 2016


commit f3674f2db83828380e53c5a5fcfcdbc83864f7cb
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Feb 20 10:22:56 2016 +0100

    - updated to 0.6.19
    - updated python patch
    - added tcl binding

 libsolv-python.patch | 12 ++++--------
 libsolv.spec         | 33 +++++++++++++++++++++++++++++----
 2 files changed, 33 insertions(+), 12 deletions(-)
---
diff --git a/libsolv.spec b/libsolv.spec
index 1788bf6..b4b35b5 100644
--- a/libsolv.spec
+++ b/libsolv.spec
@@ -3,17 +3,18 @@
 %bcond_without	static_libs	# static libraries
 %bcond_without	python3		# Python 3.x bindings
 %bcond_without	ruby		# Ruby bindings
+%bcond_without	tcl		# Tcl bindings
 
 %include	/usr/lib/rpm/macros.perl
 Summary:	Package dependency solver
 Summary(pl.UTF-8):	Biblioteka do rozwiązywania zależności pakietów
 Name:		libsolv
-Version:	0.6.8
-Release:	7
+Version:	0.6.19
+Release:	1
 License:	BSD
 Group:		Libraries
 Source0:	https://github.com/openSUSE/libsolv/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	1c6f16b9019cd4904dfe9538d80a0d0d
+# Source0-md5:	b1fe10e51190a138767aedf010525032
 Patch0:		ruby.patch
 Patch1:		%{name}-python.patch
 URL:		https://github.com/openSUSE/libsolv
@@ -31,7 +32,9 @@ BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.219
 BuildRequires:	swig-perl
 BuildRequires:	swig-python
+%{?with_tcl:BuildRequires:	swig-tcl}
 BuildRequires:	tar >= 1:1.22
+%{?with_tcl:BuildRequires:	tcl-devel}
 BuildRequires:	xz
 BuildRequires:	xz-devel
 BuildRequires:	zlib-devel
@@ -153,6 +156,19 @@ Ruby bindings for the libsolv libraries.
 %description -n ruby-solv -l pl.UTF-8
 Wiązania języka Ruby do bibliotek libsolv.
 
+%package -n tcl-solv
+Summary:	Tcl bindings for the libsolv libraries
+Summary(pl.UTF-8):	Wiązania języka Tcl do bibliotek libsolv
+Group:		Development/Languages
+Requires:	%{name} = %{version}-%{release}
+Requires:	tcl
+
+%description -n tcl-solv
+Tcl bindings for the libsolv libraries.
+
+%description -n tcl-solv -l pl.UTF-8
+Wiązania języka Tcl do bibliotek libsolv.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -177,6 +193,7 @@ cd build
 	-DENABLE_RPMMD=ON \
 	%{?with_ruby:-DENABLE_RUBY=ON} \
 	%{?with_static_libs:-DENABLE_STATIC=ON} \
+	%{?with_tcl:-DENABLE_TCL=ON} \
 	-DPythonLibs_FIND_VERSION=2 \
 	-DPythonLibs_FIND_VERSION_MAJOR=2 \
 	-DRPM5=ON \
@@ -230,10 +247,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
-%doc examples/solv.c
 %attr(755,root,root) %{_libdir}/libsolv.so
 %attr(755,root,root) %{_libdir}/libsolvext.so
 %{_includedir}/solv
+%{_pkgconfigdir}/libsolv.pc
 %{_datadir}/cmake/Modules/FindLibSolv.cmake
 %{_mandir}/man3/libsolv*.3*
 
@@ -298,3 +315,11 @@ rm -rf $RPM_BUILD_ROOT
 %doc examples/rbsolv
 %attr(755,root,root) %{ruby_vendorarchdir}/solv.so
 %endif
+
+%if %{with tcl}
+%files -n tcl-solv
+%defattr(644,root,root,755)
+%doc examples/tclsolv
+%attr(755,root,root) %{_prefix}/lib/tcl8/8.*/solv-%{version}.so
+%{_prefix}/lib/tcl8/8.*/solv-%{version}.tm
+%endif
diff --git a/libsolv-python.patch b/libsolv-python.patch
index d293c66..1e44e03 100644
--- a/libsolv-python.patch
+++ b/libsolv-python.patch
@@ -1,14 +1,10 @@
---- libsolv-0.6.6/bindings/python/CMakeLists.txt.orig	2014-10-07 14:41:37.000000000 +0200
-+++ libsolv-0.6.6/bindings/python/CMakeLists.txt	2014-10-25 10:42:06.870708523 +0200
-@@ -1,9 +1,9 @@
- #SET (PythonLibs_FIND_VERSION 3)
+--- libsolv-0.6.19/bindings/python/CMakeLists.txt.orig	2016-02-19 22:55:50.640253346 +0100
++++ libsolv-0.6.19/bindings/python/CMakeLists.txt	2016-02-19 23:16:50.826867127 +0100
+@@ -2,7 +2,7 @@
  
  FIND_PACKAGE (PythonLibs)
--SET (PythonInterp_FIND_VERSION ${PYTHONLIBS_VERSION_STRING})
--FIND_PACKAGE (PythonInterp REQUIRED)
+ FIND_PACKAGE (PythonInterp ${PYTHONLIBS_VERSION_STRING} REQUIRED)
 -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(True))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
-+#SET (PythonInterp_FIND_VERSION ${PYTHONLIBS_VERSION_STRING})
-+FIND_PACKAGE (PythonInterp ${PYTHONLIBS_VERSION_STRING} REQUIRED)
 +EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(plat_specific=True, prefix='/usr'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
  
  IF (NOT DEFINED PYTHON_VERSION_MAJOR)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libsolv.git/commitdiff/f3674f2db83828380e53c5a5fcfcdbc83864f7cb



More information about the pld-cvs-commit mailing list