SPECS: hk_classes.spec - up to 0.8 (moved from `twittner' branch)

twittner twittner at pld-linux.org
Fri Nov 18 22:26:55 CET 2005


Author: twittner                     Date: Fri Nov 18 21:26:55 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 0.8 (moved from `twittner' branch)

---- Files affected:
SPECS:
   hk_classes.spec (1.48 -> 1.49) 

---- Diffs:

================================================================
Index: SPECS/hk_classes.spec
diff -u SPECS/hk_classes.spec:1.48 SPECS/hk_classes.spec:1.49
--- SPECS/hk_classes.spec:1.48	Thu Oct 27 19:41:44 2005
+++ SPECS/hk_classes.spec	Fri Nov 18 22:26:50 2005
@@ -1,36 +1,51 @@
 # $Revision$, $Date$
-# TODO: Make python build *.pyo also and include it instead of *.py
-# TODO: patch3 should be rewritten to search for .pyc and .py not only .pyc and sent back
+# TODO:	- make python build *.pyo also and include it instead of *.py
+#	- patch3 should be rewritten to search for .pyc and .py not only .pyc and sent back
 #
 # Conditional build:
+%bcond_without	firebird
+%bcond_with	mdb
+%bcond_without	mysql
+%bcond_without	odbc	
+%bcond_without	pgsql
+%bcond_without	paradox
+%bcond_without	sqlite2
+%bcond_without	sqlite3
+%bcond_without	xbase
 %bcond_without	static_libs # don't build static library
 #
 Summary:	Non-visual routines for database frontend applications
 Summary(pl):	Niegraficzne funkcje dla aplikacji będących frontendami do baz danych
 Name:		hk_classes
-Version:	0.7.4
-Release:	2
+Version:	0.8
+Release:	1	
 License:	GPL
 Group:		Libraries
-Source0:	http://dl.sourceforge.net/hk-classes/%{name}-%{version}.tar.bz2
-# Source0-md5:	5bab6d78343120478ec93bbd47e02f3a
+Source0:	http://dl.sourceforge.net/hk-classes/%{name}-%{version}.tar.gz
+# Source0-md5:	c5e3d5542037309127eddf532c91895b
 Patch0:		%{name}-dir.patch
 Patch1:		%{name}-link.patch
 Patch2:		%{name}-iconv-in-libc.patch
 Patch3:		%{name}-PLD-search-for-pyc-and-in-usr-share.patch
+Patch4:		%{name}-mdbtools_checking.patch
 URL:		http://hk-classes.sourceforge.net/
 BuildRequires:	autoconf >= 2.56
 BuildRequires:	automake >= 1:1.7.6
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool >= 2:1.4d
-BuildRequires:	Firebird-devel
-BuildRequires:	mysql-devel
-BuildRequires:	postgresql-backend-devel >= 7.1
-BuildRequires:	postgresql-devel >= 7.1
-BuildRequires:	sqlite-devel
-BuildRequires:	sqlite3-devel
-BuildRequires:	unixODBC-devel
+BuildRequires:	pkgconfig
+BuildRequires:	rpm-pythonprov
 BuildRequires:	python-devel
+%{?with_firebird:BuildRequires:	Firebird-devel}
+%{?with_mdb:BuildRequires:	mdbtools-devel >= 0.6}
+%{?with_mysql:BuildRequires:	mysql-devel}
+%{?with_pgsql:BuildRequires:	postgresql-backend-devel >= 7.1}
+%{?with_pgsql:BuildRequires:	postgresql-devel >= 7.1}
+%{?with_paradox:BuildRequires:	pxlib-devel}
+%{?with_sqlite2:BuildRequires:	sqlite-devel}
+%{?with_sqlite3:BuildRequires:	sqlite3-devel}
+%{?with_odbc:BuildRequires:	unixODBC-devel}
+%{?with_xbase:BuildRequires:	xbsql-devel}
 Conflicts:      knoda < 0.7.2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -90,6 +105,18 @@
 %description driver-mysql -l pl
 Sterownik MySQL dla hk_classes.
 
+%package driver-mdb
+Summary:	mdb driver for hk_classes
+Summary(pl):	Sterownik mdb dla hk_classes
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description driver-mdb
+mdb driver for hk_classes.
+
+%description driver-mdb -l pl
+Sterownik mdb dla hk_classes.
+
 %package driver-odbc
 Summary:	unixODBC driver for hk_classes
 Summary(pl):	Sterownik unixODBC dla hk_classes
@@ -102,6 +129,18 @@
 %description driver-odbc -l pl
 Sterownik unixODBC dla hk_classes.
 
+%package driver-paradox
+Summary:	paradox driver for hk_classes
+Summary(pl):	Sterownik paradox dla hk_classes
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description driver-paradox
+paradox driver for hk_classes.
+
+%description driver-paradox -l pl
+Sterownik paradox dla hk_classes.
+
 %package driver-postgresql
 Summary:	PostgreSQL driver for hk_classes
 Summary(pl):	Sterownik PostgreSQL dla hk_classes
@@ -138,6 +177,18 @@
 %description driver-sqlite3 -l pl
 Sterownik SQLite w wersji 3.x dla hk_classes.
 
+%package driver-xbase
+Summary:	xbase driver for hk_classes
+Summary(pl):	Sterownik xbase dla hk_classes
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description driver-xbase
+xbase driver for hk_classes.
+
+%description driver-xbase -l pl
+Sterownik xbase dla hk_classes.
+
 %package -n python-%{name}
 Summary:        Python interface to %{name}
 Summary(pl):    Interfejs do %{name} dla jezyka Python
@@ -180,6 +231,7 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 # supplied libtool is broken (C++)
@@ -193,6 +245,15 @@
 	--with-hk_classes-dir=%{_libdir} \
 	--with-hk_classes-incdir=%{_includedir}/%{name} \
 	--with-hk_classes-drvdir=%{_libdir}/%{name}/drivers \
+	--with%{!?with_firebird:out}-firebird \
+	--with%{!?with_mdb:out}-mdb \
+	--with%{!?with_mysql:out}-mysql \
+	--with%{!?with_odbc:out}-odbc \
+	--with%{!?with_paradox:out}-paradox \
+	--with%{!?with_pgsql:out}-postgres \
+	--with%{!?with_sqlite2:out}-sqlite \
+	--with%{!?with_sqlite3:out}-sqlite3 \
+	--with%{!?with_xbase:out}-xbase \
 	%{?with_static_libs:--enable-static=yes}
 %{__make}
 
@@ -234,29 +295,59 @@
 %{_libdir}/lib*.a
 %endif
 
+%if %{with firebird}
 %files driver-firebird
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/drivers/libhk_firebirddriver.so*
+%endif
+
+%if %{with mdb}
+%files driver-mdb
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/drivers/libhk_mdbdriver.so*
+%endif
 
+%if %{with mysql}
 %files driver-mysql
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/drivers/libhk_mysqldriver.so*
+%endif
 
+%if %{with odbc}
 %files driver-odbc
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/drivers/libhk_odbcdriver.so*
+%endif
 
+%if %{with paradox}
+%files driver-paradox
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/drivers/libhk_paradoxdriver.so*
+%endif
+
+%if %{with pgsql}
 %files driver-postgresql
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/drivers/libhk_postgresdriver.so*
+%endif
 
+%if %{with sqlite2}
 %files driver-sqlite2
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/drivers/libhk_sqlite2driver.so*
+%endif
 
+%if %{with sqlite3}
 %files driver-sqlite3
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/drivers/libhk_sqlite3driver.so*
+%endif
+
+%if %{with xbase}
+%files driver-xbase
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/drivers/libhk_xbasedriver.so*
+%endif
 
 %files -n python-%{name}
 %defattr(644,root,root,755)
@@ -279,8 +370,48 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.48  2005/10/27 17:41:44  arekm
-- rel 2
+Revision 1.49  2005/11/18 21:26:50  twittner
+- up to 0.8 (moved from `twittner' branch)
+
+Revision 1.47.2.8.2.2  2005/11/03 20:08:45  twittner
+- typo
+
+Revision 1.47.2.8.2.1  2005/11/03 20:02:25  twittner
+- added -mdbtools-checking.patch - fix for mdbtools detection
+- added paradox and mdb subpackages
+- added bconds for all database drivers
+- sorting BRs, %%packages, %%files
+- added more directory fixes to -dir.patch (Paradox and mdb drivers)
+- added support for HK_DRIVERSDIR (--with-hk_classes-drvdir) to code
+  (-dir.patch) - it fixes hk_drivermanager_path() issue, but it isn't
+  widely tested.
+- removed: sed -i 's,\$(HK_CLASSESDIR),%{_libdir}/%{name},' hk_classes/Makefile.am
+  I don't understand what's it for.
+
+Revision 1.47.2.8  2005/11/02 12:57:29  charles
+- BR: sed >= 4.0
+
+Revision 1.47.2.7  2005/11/02 12:55:50  charles
+- changelog typo
+
+Revision 1.47.2.6  2005/11/02 12:49:38  charles
+- fixed default driver dir (hk_drivermanager::path return %{_libdir}/hk_classes + /drivers)
+
+Revision 1.47.2.5  2005/11/01 12:05:24  charles
+- BR xbsql-devel instead of xbase-devel
+
+Revision 1.47.2.4  2005/11/01 00:03:28  charles
+- BR: pkgconfig, rpm-pythonprov
+
+Revision 1.47.2.3  2005/10/31 21:52:55  twittner
+- up to 0.8
+- added xbase-driver subpkg.
+
+Revision 1.47.2.2  2005/09/22 16:19:23  twittner
+- up to 0.8test2
+
+Revision 1.47.2.1  2005/09/04 01:08:03  twittner
+- ver. 0.8test1
 
 Revision 1.47  2005/07/19 21:19:02  twittner
 - rel.1
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/hk_classes.spec?r1=1.48&r2=1.49&f=u




More information about the pld-cvs-commit mailing list