restore consistency of styling

OBS-URL: https://build.opensuse.org/package/show/server:database/libdbi?expand=0&rev=17
This commit is contained in:
Jan Engelhardt 2019-10-04 11:11:21 +00:00 committed by Git OBS Bridge
parent 2c51dc225d
commit 348a9b9245

View File

@ -15,10 +15,10 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%nil
%global sname libdbi %global sname libdbi
%if "%{flavor}" == "devel-doc" %if "%flavor" == "devel-doc"
%global psuffix -devel-doc %global psuffix -devel-doc
%endif %endif
@ -27,7 +27,7 @@ Name: libdbi%{?psuffix}
Version: 0.9.0.g33 Version: 0.9.0.g33
#Snapshot: libdbi-0.9.0-33-gcdc4479 #Snapshot: libdbi-0.9.0-33-gcdc4479
Release: 0 Release: 0
%if "%{flavor}" == "" %if "%flavor" == ""
Summary: Database Independent Abstraction Layer for C Summary: Database Independent Abstraction Layer for C
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
%endif %endif
@ -36,14 +36,14 @@ URL: http://libdbi.sourceforge.net/
#Git-Clone: git://git.code.sf.net/p/libdbi/libdbi #Git-Clone: git://git.code.sf.net/p/libdbi/libdbi
#Source: http://downloads.sf.net/libdbi/%%name-%%version.tar.gz #Source: http://downloads.sf.net/libdbi/%%name-%%version.tar.gz
Source: %{sname}-%{version}.tar.xz Source: %sname-%version.tar.xz
Source2: baselibs.conf Source2: baselibs.conf
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: xz BuildRequires: xz
%if "%{flavor}" == "devel-doc" %if "%flavor" == "devel-doc"
# Only needed when doc is not already prebuilt # Only needed when doc is not already prebuilt
BuildRequires: docbook-dsssl-stylesheets BuildRequires: docbook-dsssl-stylesheets
BuildRequires: openjade BuildRequires: openjade
@ -55,10 +55,10 @@ BuildRequires: tex(wasy10.tfm)
BuildRequires: texlive-jadetex BuildRequires: texlive-jadetex
BuildRequires: texlive-pdftex-bin BuildRequires: texlive-pdftex-bin
Recommends: libdbi-devel = %version Recommends: libdbi-devel = %version
Provides: libdbi-devel:%{_docdir}/libdbi/driver-guide.pdf Provides: libdbi-devel:%_docdir/libdbi/driver-guide.pdf
%endif %endif
%if "%{flavor}" == "" %if "%flavor" == ""
%description %description
libdbi implements a database-independent abstraction layer in C, libdbi implements a database-independent abstraction layer in C,
similar to the DBI/DBD layer in Perl. Writing one generic set of similar to the DBI/DBD layer in Perl. Writing one generic set of
@ -96,37 +96,37 @@ applications with libdbi.
%prep %prep
%setup -qn %{sname} %setup -qn %sname
%build %build
autoreconf -fi autoreconf -fi
sed -i s,\-O20,\-O2,g configure sed -i s,\-O20,\-O2,g configure
%configure \ %configure \
%if "%{flavor}" == "" %if "%flavor" == ""
--disable-docs \ --disable-docs \
%else %else
--enable-docs \ --enable-docs \
%endif %endif
--docdir="%{_docdir}/libdbi" \ --docdir="%_docdir/libdbi" \
--disable-static --disable-static
%if "%{flavor}" == "" %if "%flavor" == ""
%make_build %make_build
%else %else
%make_build -C doc %make_build -C doc
%endif %endif
%install %install
%if "%{flavor}" == "" %if "%flavor" == ""
%make_install %make_install
rm "%{buildroot}/%{_libdir}/libdbi.la" rm "%buildroot/%_libdir/libdbi.la"
%else %else
%make_install -C doc %make_install -C doc
%endif %endif
%if "%{flavor}" == "" %if "%flavor" == ""
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
@ -142,9 +142,9 @@ rm "%{buildroot}/%{_libdir}/libdbi.la"
%else %else
%files -n %{sname}-devel-doc %files -n %sname-devel-doc
%dir %{_docdir}/libdbi %dir %_docdir/libdbi
%{_docdir}/libdbi/*-guide* %_docdir/libdbi/*-guide*
%endif %endif