Hello community,

here is the log from the commit of package xbsql for openSUSE:Factory checked 
in at 2015-04-23 08:04:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xbsql (Old)
 and      /work/SRC/openSUSE:Factory/.xbsql.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xbsql"

Changes:
--------
--- /work/SRC/openSUSE:Factory/xbsql/xbsql.changes      2011-11-22 
17:50:05.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.xbsql.new/xbsql.changes 2015-04-23 
08:04:13.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Apr 21 16:36:16 UTC 2015 - [email protected]
+
+- Cleanup with spec-cleaner
+- Split devel and libraries packages
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xbsql.spec ++++++
--- /var/tmp/diff_new_pack.gf1bCJ/_old  2015-04-23 08:04:13.000000000 +0200
+++ /var/tmp/diff_new_pack.gf1bCJ/_new  2015-04-23 08:04:13.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package xbsql
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -15,20 +15,27 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
 
+%define lib_name lib%{name}0
 Name:           xbsql
-BuildRequires:  bison flex gcc-c++ libtool ncurses-devel readline-devel 
xbase-devel
+Version:        0.11
+Release:        0
+Summary:        SQL Wrapper for the XBase Library
 License:        LGPL-2.1+
 Group:          Development/Libraries/C and C++
-Summary:        SQL Wrapper for the XBase Library
 Url:            http://www.quaking.demon.co.uk/xbsql.html
-Version:        0.11
-Release:        235
-Source0:        %name-%version.tar.bz2
-Patch0:         %name.diff
+Source0:        %{name}-%{version}.tar.bz2
+Patch0:         %{name}.diff
 Patch1:         xbsql-0.11-bufferoverflowstrncat.patch
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  bison
+BuildRequires:  flex
+BuildRequires:  gcc-c++
+BuildRequires:  libtool
+BuildRequires:  ncurses-devel
+BuildRequires:  readline-devel
+BuildRequires:  xbase-devel
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -36,11 +43,28 @@
 files and indexes (.dbf and related files, for example). It provides
 record level access to these files.
 
+%package -n %{lib_name}
+Summary:        Shared libraries for %{name}
+Group:          Development/Libraries/C and C++
 
+%description -n %{lib_name}
+XBase DBMS is a C++ library that supports access to XBase type data
+files and indexes (.dbf and related files, for example). It provides
+record level access to these files.
 
-Authors:
---------
-    Mike Richardson <[email protected]>
+This package contains shared libraries
+
+%package devel
+Summary:        Files for developing with %{name}
+Group:          Development/Libraries/C and C++
+Requires:       %{lib_name} = %{version}
+
+%description devel
+XBase DBMS is a C++ library that supports access to XBase type data
+files and indexes (.dbf and related files, for example). It provides
+record level access to these files.
+
+This package contains development files
 
 %prep
 %setup -q 
@@ -48,15 +72,17 @@
 %patch1
 
 %build
-autoreconf -ifv
-%configure --disable-static --with-pic
+autoreconf -fi
+%configure \
+       --disable-static \
+       --with-pic
 rm xbsql/lex.yy.c
-%{__make} %{?jobs:-j%jobs} -C xbsql lex.yy.c
-%{__make} %{?jobs:-j%jobs}
+make %{?_smp_mflags} -C xbsql lex.yy.c
+make %{?_smp_mflags}
 
 %check
 cd test
-make
+make %{?_smp_mflags}
 ./runtests
 
 %install
@@ -64,21 +90,25 @@
 #
 # solve file conflict with perl-XML-XQL
 #
-mv $RPM_BUILD_ROOT/usr/bin/xql $RPM_BUILD_ROOT/usr/bin/XQL
-%{__rm} -f %{buildroot}%{_libdir}/*.la
+mv %{buildroot}%{_bindir}/xql %{buildroot}%{_bindir}/XQL
+find %{buildroot} -type f -name "*.la" -delete -print
 
-%post -p /sbin/ldconfig
+%post -n %{lib_name} -p /sbin/ldconfig
 
-%postun -p /sbin/ldconfig
-
-%clean
-rm -rf ${RPM_BUILD_ROOT}
+%postun -n %{lib_name} -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root)
-%doc AUTHORS TODO COPYING README NEWS doc
-/usr/bin/*
-/usr/include/*
-%_libdir/libxbsql*
+%doc AUTHORS TODO COPYING README doc
+%{_bindir}/*
+
+%files -n %{lib_name}
+%defattr(-,root,root)
+%{_libdir}/libxbsql.so.*
+
+%files devel
+%defattr(-,root,root)
+%{_includedir}/*
+%{_libdir}/libxbsql.so
 
 %changelog


Reply via email to