SPECS (twittner): hk_classes.spec - _private branch_ for keeping a...
twittner
twittner at pld-linux.org
Thu Nov 3 21:02:30 CET 2005
Author: twittner Date: Thu Nov 3 20:02:30 2005 GMT
Module: SPECS Tag: twittner
---- Log message:
- _private branch_ for keeping away from other hackers
- 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.
$ python
Python 2.4.2 (#1, Sep 29 2005, 14:29:46)
[GCC 3.3.6 (PLD Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import hk_classes as hk
>>> hk.hk_drivermanager_path()
'/usr/lib/hk_classes/drivers'
- removed: sed -i 's,\$(HK_CLASSESDIR),%{_libdir}/%{name},' hk_classes/Makefile.am
I don't understand what's it for.
---- Files affected:
SPECS:
hk_classes.spec (1.47.2.8 -> 1.47.2.8.2.1)
---- Diffs:
================================================================
Index: SPECS/hk_classes.spec
diff -u SPECS/hk_classes.spec:1.47.2.8 SPECS/hk_classes.spec:1.47.2.8.2.1
--- SPECS/hk_classes.spec:1.47.2.8 Wed Nov 2 13:57:29 2005
+++ SPECS/hk_classes.spec Thu Nov 3 21:02:25 2005
@@ -1,15 +1,24 @@
# $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.8
-Release: 0.1
+Release: 0.3
License: GPL
Group: Libraries
Source0: http://dl.sourceforge.net/hk-classes/%{name}-%{version}.tar.gz
@@ -18,23 +27,26 @@
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: pkgconfig
-BuildRequires: postgresql-backend-devel >= 7.1
-BuildRequires: postgresql-devel >= 7.1
BuildRequires: rpm-pythonprov
BuildRequires: sed >= 4.0
-BuildRequires: sqlite-devel
-BuildRequires: sqlite3-devel
-BuildRequires: unixODBC-devel
BuildRequires: python-devel
-BuildRequires: xbsql-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)
@@ -94,6 +106,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
@@ -106,6 +130,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
@@ -196,9 +232,9 @@
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
-%{__sed} -i 's,\$(HK_CLASSESDIR),%{_libdir}/%{name},' hk_classes/Makefile.am
# supplied libtool is broken (C++)
%{__libtoolize}
%{__aclocal}
@@ -210,6 +246,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}
@@ -251,33 +296,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)
@@ -300,6 +371,27 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.47.2.8.2.1 2005/11/03 20:02:25 twittner
+- _private branch_ for keeping away from other hackers
+- 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.
+ $ python
+Python 2.4.2 (#1, Sep 29 2005, 14:29:46)
+[GCC 3.3.6 (PLD Linux)] on linux2
+Type "help", "copyright", "credits" or "license" for more information.
+>>> import hk_classes as hk
+>>> hk.hk_drivermanager_path()
+'/usr/lib/hk_classes/drivers'
+
+- 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
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/hk_classes.spec?r1=1.47.2.8&r2=1.47.2.8.2.1&f=u
More information about the pld-cvs-commit
mailing list