Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Update
sqliteodbc
sqliteodbc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sqliteodbc.spec of Package sqliteodbc
# # spec file for package sqliteodbc # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: sqliteodbc Version: 0.9993 Release: 0 Summary: ODBC driver for SQLite License: BSD-2-Clause Group: Development/Libraries/C and C++ Url: http://www.ch-werner.de/sqliteodbc Source0: http://www.ch-werner.de/sqliteodbc/%{name}-%{version}.tar.gz # This is not typical shared library but plugin for unixODBC Source1: %{name}-rpmlintrc BuildRequires: dos2unix BuildRequires: doxygen BuildRequires: graphviz BuildRequires: libxml2-devel BuildRequires: sqlite3-devel BuildRequires: unixODBC-devel BuildRequires: zlib-devel Requires: unixODBC Requires(post): unixODBC Requires(preun): unixODBC BuildRoot: %{_tmppath}/%{name}-%{version}-build %description ODBC driver for SQLite interfacing SQLite 3.x using the unixODBC or iODBC driver managers. For more information refer to http://www.sqlite.org - SQLite engine http://www.unixodbc.org - unixODBC Driver Manager http://www.iodbc.org - iODBC Driver Manager %package doc Summary: Documentation for %{name} Group: Documentation %description doc ODBC driver for SQLite interfacing SQLite 3.x using the unixODBC or iODBC driver managers. This package contains generated documentation. %prep %setup -q # Fix bug https://bugzilla.novell.com/show_bug.cgi?id=969496 # No more changing time stamp for every time this builds echo "HTML_TIMESTAMP = NO" >> doxygen.conf %build %configure \ --enable-static=no make %{?_smp_mflags} all doxy dos2unix README %install mkdir -p %{buildroot}%{_libdir} make DESTDIR=%{buildroot} install %{?_smp_mflags} find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete -print %post if [ -x %{_bindir}/odbcinst ] ; then INST=/tmp/sqliteinst$$ if [ -r %{_libdir}/libsqlite3odbc.so ] ; then cat > $INST << 'EOD' [SQLITE3] Description=SQLite ODBC 3.X Driver=%{_libdir}/libsqlite3odbc.so Setup=%{_libdir}/libsqlite3odbc.so Threading=2 FileUsage=1 EOD %{_bindir}/odbcinst -q -d -n SQLITE3 | grep '^\[SQLITE3\]' >/dev/null || { %{_bindir}/odbcinst -i -d -n SQLITE3 -f $INST || true } cat > $INST << 'EOD' [SQLite3 Datasource] Driver=SQLITE3 EOD %{_bindir}/odbcinst -q -s -n "SQLite3 Datasource" | \ grep '^\[SQLite3 Datasource\]' >/dev/null || { %{_bindir}/odbcinst -i -l -s -n "SQLite3 Datasource" -f $INST || true } fi rm -f $INST || true fi %preun if [ "$1" = "0" ] ; then test -x %{_bindir}/odbcinst && { %{_bindir}/odbcinst -u -d -n SQLITE3 || true %{_bindir}/odbcinst -u -l -s -n "SQLite3 Datasource" || true } true fi %files %defattr(-, root, root) %doc README license.terms ChangeLog %{_libdir}/*.so* %files doc %defattr(-, root, root) %doc README license.terms ChangeLog %doc html %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor