SPECS: opendbx.spec (NEW) - initial in pld
arekm
arekm at pld-linux.org
Thu Apr 26 08:45:35 CEST 2007
Author: arekm Date: Thu Apr 26 06:45:35 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial in pld
---- Files affected:
SPECS:
opendbx.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/opendbx.spec
diff -u /dev/null SPECS/opendbx.spec:1.1
--- /dev/null Thu Apr 26 08:45:35 2007
+++ SPECS/opendbx.spec Thu Apr 26 08:45:29 2007
@@ -0,0 +1,185 @@
+# $Revision$, $Date$
+Summary: Extensible database access library
+Name: opendbx
+Version: 1.2.2
+Release: 1
+License: GPL
+Group: Libraries
+Source0: http://linuxnetworks.de/opendbx/download/%{name}-%{version}.tar.gz
+# Source0-md5: 4a420ff46c3eca6fac63d1066d83e4ad
+URL: http://www.linuxnetworks.de/doc/index.php/OpenDBX
+BuildRequires: Firebird-devel
+BuildRequires: freetds-devel
+BuildRequires: mysql-devel
+BuildRequires: postgresql-devel
+BuildRequires: sqlite-devel
+BuildRequires: sqlite3-devel
+BuildRequires: zlib-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+OpenDBX is an extremely lightweight but extensible database access
+library written in C. It provides an abstraction layer to all
+supported databases with a single, clean and simple interface that
+leads to an elegant code design automatically. If you want your
+application to support different databases with little effort, this is
+definitively the right thing for you!
+
+%package devel
+Summary: Header files and develpment documentation for opendbx
+Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description devel
+Header files and develpment documentation for opendbx.
+
+%package static
+Summary: Static opendbx library
+Group: Development/Libraries
+Requires: %{name}-devel = %{epoch}:%{version}-%{release}
+
+%description static
+Static opendbx library.
+
+%package backend-firebird
+Summary: Firebird backend for opendbx
+Group: Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description backend-firebird
+Firebird backend for opendbx.
+
+%package backend-mssql
+Summary: mssql backend for opendbx
+Group: Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description backend-mssql
+mssql backend for opendbx.
+
+%package backend-mysql
+Summary: mysql backend for opendbx
+Group: Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description backend-mysql
+mysql backend for opendbx.
+
+%package backend-postgres
+Summary: PostgreSQL backend for opendbx
+Group: Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description backend-postgres
+PostgreSQL backend for opendbx.
+
+%package backend-sqlite3
+Summary: sqlite3 backend for opendbx
+Group: Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description backend-sqlite3
+sqlite3 backend for opendbx.
+
+%package backend-sqlite
+Summary: sqlite backend for opendbx
+Group: Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description backend-sqlite
+sqlite backend for opendbx.
+
+%package backend-sybase
+Summary: sybase backend for opendbx
+Group: Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description backend-sybase
+sybase backend for opendbx.
+
+%prep
+%setup -q
+
+%build
+CPPFLAGS="-I/usr/include/mysql"; export CPPFLAGS
+%configure \
+ --with-backends="firebird mssql mysql pgsql sqlite sqlite3 sybase"
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name}
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.a
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc doc/* AUTHORS ChangeLog README TODO
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%dir %{_libdir}/%{name}
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_includedir}/*.h
+%{_libdir}/*.la
+%{_pkgconfigdir}/*.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
+
+%files backend-firebird
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/libfirebird*.so.*
+%{_libdir}/%{name}/libfirebird*.la
+
+%files backend-mssql
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/libmssql*.so.*
+%{_libdir}/%{name}/libmssql*.la
+
+%files backend-mysql
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/libmysql*.so.*
+%{_libdir}/%{name}/libmysql*.la
+
+%files backend-postgres
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/libpgsql*.so.*
+%{_libdir}/%{name}/libpgsql*.la
+
+%files backend-sqlite3
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/libsqlite3*.so.*
+%{_libdir}/%{name}/libsqlite3*.la
+
+%files backend-sqlite
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/libsqlite*.so.*
+%{_libdir}/%{name}/libsqlite*.la
+
+%files backend-sybase
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/libsybase*.so.*
+%{_libdir}/%{name}/libsybase*.la
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2007/04/26 06:45:29 arekm
+- initial in pld
+
================================================================
More information about the pld-cvs-commit
mailing list