stevej pushed to opendbx (el6). "Initial import (#739856)"

notifications at fedoraproject.org notifications at fedoraproject.org
Fri Apr 3 16:09:40 UTC 2015


>From d3ef231b1e5e63c54dd1cdbe72be3964ff08e0c0 Mon Sep 17 00:00:00 2001
From: Martin Preisler <mpreisle at redhat.com>
Date: Wed, 19 Oct 2011 15:38:34 +0200
Subject: Initial import (#739856)


diff --git a/.gitignore b/.gitignore
index e69de29..c29de5d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/opendbx-1.4.5.tar.gz
diff --git a/opendbx.spec b/opendbx.spec
new file mode 100644
index 0000000..cb5b393
--- /dev/null
+++ b/opendbx.spec
@@ -0,0 +1,175 @@
+Name:           opendbx
+Version:        1.4.5
+Release:        4%{?dist}
+Summary:        Lightweight but extensible database access library written in C
+
+#License:        LGPLv2+
+# (util/argmap.{cpp,hpp}) have a GPL license header rather than an LGPL one
+# until upstream decides about this I am leaving GPLv2+ here as the stricter license
+License:        GPLv2+
+URL:            http://www.linuxnetworks.de/doc/index.php/OpenDBX
+Source0:        http://linuxnetworks.de/opendbx/download/%{name}-%{version}.tar.gz
+
+BuildRequires:  mysql-devel, postgresql-devel, sqlite2-devel, sqlite-devel, firebird-devel, readline-devel
+BuildRequires:  freetds-devel
+BuildRequires:  doxygen, docbook2X, gettext
+%{?filter_setup:
+%filter_provides_in %{_libdir}/opendbx/lib.*backend\.so.*$
+%filter_setup
+}
+
+%description
+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:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for developing
+applications that use %{name}.
+
+%package        mysql
+Summary:        MySQL backend - provides mysql support in %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    mysql
+Allows odbx_init with "mysql" as the backend parameter.
+
+%package        postgresql
+Summary:        PostgreSQL backend - provides postgresql support in %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    postgresql
+Allows odbx_init with "pgsql" as the backend parameter.
+
+%package        sqlite2
+Summary:        SQLite 2 backend - provides sqlite2 support in %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    sqlite2
+Allows odbx_init with "sqlite" as the backend parameter.
+
+%package        sqlite
+Summary:        SQLite 3 backend - provides sqlite3 support in %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    sqlite
+Allows odbx_init with "sqlite3" as the backend parameter.
+
+%package        firebird
+Summary:        Firebird backend - provides firebird support in %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    firebird
+Allows odbx_init with "firebird" as the backend parameter.
+
+%package        mssql
+Summary:        MSSQL backend - provides mssql support in %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    mssql
+Allows odbx_init with "mssql" as the backend parameter.
+
+%package        sybase
+Summary:        Sybase backend - provides sybase support in %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    sybase
+Allows odbx_init with "sybase" as the backend parameter.
+
+%package        utils
+Summary:        Utility binaries for %{name}
+Group:          Applications/System
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    utils
+The %{name}-utils package provides the odbx-sql tool.
+
+%prep
+%setup -q
+
+
+%build
+%configure --with-backends="mysql pgsql sqlite sqlite3 firebird mssql sybase" CPPFLAGS="-I%{_includedir}/mysql" --disable-test --disable-static LDFLAGS="-L%{_libdir}/mysql"
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+%find_lang %{name}
+%find_lang %{name}-utils
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%doc AUTHORS COPYING ChangeLog NEWS README
+%dir %{_libdir}/opendbx
+%{_libdir}/*.so.*
+%{_datadir}/opendbx/keywords
+
+%files devel
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+%{_mandir}/man3/*.gz
+
+%files mysql
+%{_libdir}/opendbx/*mysql*.so
+%{_libdir}/opendbx/*mysql*.so.*
+
+%files postgresql
+%{_libdir}/opendbx/*pgsql*.so
+%{_libdir}/opendbx/*pgsql*.so.*
+
+%files sqlite2
+%{_libdir}/opendbx/*sqlitebackend.so
+%{_libdir}/opendbx/*sqlitebackend.so.*
+
+%files sqlite
+%{_libdir}/opendbx/*sqlite3backend.so
+%{_libdir}/opendbx/*sqlite3backend.so.*
+
+%files firebird
+%{_libdir}/opendbx/*firebird*.so
+%{_libdir}/opendbx/*firebird*.so.*
+
+%files mssql
+%{_libdir}/opendbx/*mssql*.so
+%{_libdir}/opendbx/*mssql*.so.*
+
+%files sybase
+%{_libdir}/opendbx/*sybase*.so
+%{_libdir}/opendbx/*sybase*.so.*
+
+%files utils -f %{name}-utils.lang
+%{_bindir}/odbx-sql
+%{_mandir}/man1/odbx-sql.1.gz
+
+%changelog
+
+* Mon Oct 17 2011 Martin Preisler <mpreisle at redhat.com> 1.4.5-4
+- only the base package owns {_libdir}/opendbx now
+
+* Wed Oct 12 2011 Martin Preisler <mpreisle at redhat.com> 1.4.5-3
+- the backends now explicity require opendbx of the same version
+- filter out provides of backend subpackages
+- use GPLv2+ as license for now because of the 2 GPLv2+ files
+
+* Tue Sep 20 2011 Martin Preisler <mpreisle at redhat.com> 1.4.5-2
+- added mysql, postgresql, sqlite2, sqlite3, firebird, mssql, sybase backends
+- moved readline dependency to utils subpackage
+
+* Mon Sep 19 2011 Martin Preisler <mpreisle at redhat.com> 1.4.5-1
+- initial package
+
diff --git a/sources b/sources
index e69de29..55b4587 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8347e9583d83c5186dea14f992c19dec  opendbx-1.4.5.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/opendbx.git/commit/?h=el6&id=d3ef231b1e5e63c54dd1cdbe72be3964ff08e0c0


More information about the scm-commits mailing list