Feed specfile through spec-beautifier
OBS-URL: https://build.opensuse.org/package/show/server:database/libdbi-drivers?expand=0&rev=3
This commit is contained in:
parent
e6afd6adc3
commit
3380ff7307
@ -23,13 +23,13 @@ Release: 0
|
||||
Summary: Database drivers for libdbi
|
||||
License: LGPL-2.1+
|
||||
Group: System/Libraries
|
||||
Url: http://libdbi-drivers.sf.net/
|
||||
URL: http://libdbi-drivers.sf.net/
|
||||
|
||||
Source: http://downloads.sf.net/libdbi-drivers/%name-%version.tar.gz
|
||||
Patch1: sqlite3.diff
|
||||
Patch2: badcode.diff
|
||||
Patch3: libdl.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRoot: %_tmppath/%name-%version-build
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: gettext
|
||||
@ -48,7 +48,7 @@ separately from the library itself.
|
||||
%package dbd-mysql
|
||||
Summary: MySQL driver for libdbi
|
||||
Group: System/Libraries
|
||||
Requires: libdbi%{libdbi_sover} = %version
|
||||
Requires: libdbi%libdbi_sover = %version
|
||||
|
||||
%description dbd-mysql
|
||||
This driver provides connectivity to MySQL database servers through
|
||||
@ -59,7 +59,7 @@ code.
|
||||
%package dbd-pgsql
|
||||
Summary: PostgreSQL driver for libdbi
|
||||
Group: System/Libraries
|
||||
Requires: libdbi%{libdbi_sover} = %version
|
||||
Requires: libdbi%libdbi_sover = %version
|
||||
Requires: postgresql >= 7.0.3
|
||||
|
||||
%description dbd-pgsql
|
||||
@ -71,7 +71,7 @@ code.
|
||||
%package dbd-sqlite3
|
||||
Summary: SQLite3 driver for libdbi
|
||||
Group: System/Libraries
|
||||
Requires: libdbi%{libdbi_sover} = %version
|
||||
Requires: libdbi%libdbi_sover = %version
|
||||
Requires: sqlite
|
||||
|
||||
%description dbd-sqlite3
|
||||
@ -87,7 +87,7 @@ does not require recompilation or rewriting source code.
|
||||
chmod 644 COPYING
|
||||
|
||||
# Fake the __DATE__ so we do not needelessly rebuild
|
||||
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
||||
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %_sourcedir/%name.changes '+%%b %%e %%Y')
|
||||
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" drivers/*/*.c
|
||||
|
||||
%build
|
||||
@ -97,13 +97,13 @@ autoreconf -fi
|
||||
--with-pgsql \
|
||||
--with-sqlite3 \
|
||||
--with-dbi-incdir=%_includedir/dbi \
|
||||
--with-dbi-libdir=%{_libdir} \
|
||||
--with-dbi-libdir=%_libdir \
|
||||
--disable-static \
|
||||
--disable-docs
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
make DESTDIR=%buildroot install
|
||||
find "%buildroot" -type f -name "*.la" -delete
|
||||
|
||||
%check
|
||||
@ -112,19 +112,19 @@ make check || :
|
||||
%files dbd-mysql
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING
|
||||
%dir %{_libdir}/dbd
|
||||
%{_libdir}/dbd/libdbdmysql.so
|
||||
%dir %_libdir/dbd
|
||||
%_libdir/dbd/libdbdmysql.so
|
||||
|
||||
%files dbd-pgsql
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING
|
||||
%dir %{_libdir}/dbd
|
||||
%{_libdir}/dbd/libdbdpgsql.so
|
||||
%dir %_libdir/dbd
|
||||
%_libdir/dbd/libdbdpgsql.so
|
||||
|
||||
%files dbd-sqlite3
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING
|
||||
%dir %{_libdir}/dbd
|
||||
%{_libdir}/dbd/libdbdsqlite3.so
|
||||
%dir %_libdir/dbd
|
||||
%_libdir/dbd/libdbdsqlite3.so
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user