Accepting request 103978 from devel:libraries:c_c++

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/103978
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdbi?expand=0&rev=7
This commit is contained in:
Stephan Kulow 2012-02-14 18:02:10 +00:00 committed by Git OBS Bridge
parent e188c11ecc
commit 8298a5f9a9
2 changed files with 9 additions and 11 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 15 20:54:59 UTC 2011 - jengelh@medozas.de
- Remove redundant/unwanted tags/section (cf. specfile guidelines)
- Use %_smp_mflags for parallel building
-------------------------------------------------------------------
Tue Dec 13 13:32:14 UTC 2011 - idonmez@suse.com

View File

@ -25,13 +25,11 @@ Version: 0.8.3
Release: 1
Group: Development/Libraries/C and C++
License: LGPL-2.1+
Url: http://libdbi.sourceforge.net/
URL: http://libdbi.sourceforge.net/
Source: %{name}-%{version}.tar.bz2
Source2: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires %{lname} = %{version}-%{release}
%description
libdbi implements a database-independent abstraction layer in C, similar to the
DBI/DBD layer in Perl. Writing one generic set of code, programmers can
@ -39,7 +37,6 @@ leverage the power of multiple databases and multiple simultaneous database
connections by using this framework.
%package -n %{lname}
Group: Development/Libraries/C and C++
Summary: Database Independent Abstraction Layer for C
@ -50,7 +47,6 @@ leverage the power of multiple databases and multiple simultaneous database
connections by using this framework.
%package devel
Summary: Development files for libdbi (Database Independent Abstraction Layer for C)
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
@ -65,11 +61,10 @@ sed -i s,\-O20,\-O3,g configure
%build
%configure --disable-docs --disable-static
make AM_CFLAGS="$RPM_OPT_FLAGS"
# this project fails to respect the rules for CFLAGS.
make %{?_smp_mflags} AM_CFLAGS="%optflags"
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir %buildroot
make DESTDIR=$RPM_BUILD_ROOT install
rm %buildroot/%{_libdir}/libdbi.la
rm README.win32
@ -88,9 +83,6 @@ rm README.win32
/usr/include/dbi/dbd.h
%{_libdir}/libdbi.so
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig