Hello community,

here is the log from the commit of package vsqlite++ for openSUSE:Factory 
checked in at 2016-07-14 09:50:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/vsqlite++ (Old)
 and      /work/SRC/openSUSE:Factory/.vsqlite++.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "vsqlite++"

Changes:
--------
--- /work/SRC/openSUSE:Factory/vsqlite++/vsqlite++.changes      2015-03-03 
11:14:34.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.vsqlite++.new/vsqlite++.changes 2016-07-14 
09:50:15.000000000 +0200
@@ -1,0 +2,8 @@
+Tue Jul 12 18:15:32 UTC 2016 - [email protected]
+
+- Spec file cleanup
+  * use pretty name for tarball
+  * drop -doc package
+  * simplify spec-file
+
+-------------------------------------------------------------------

Old:
----
  0.3.13.tar.gz

New:
----
  vsqlite++-0.3.13.tar.gz

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

Other differences:
------------------
++++++ vsqlite++.spec ++++++
--- /var/tmp/diff_new_pack.izOr0y/_old  2016-07-14 09:50:16.000000000 +0200
+++ /var/tmp/diff_new_pack.izOr0y/_new  2016-07-14 09:50:16.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package vsqlite++
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -16,8 +16,8 @@
 #
 
 
-%define _libpacname libvsqlitepp3
-#
+%define lib_name libvsqlitepp
+%define sover   3
 Name:           vsqlite++
 Version:        0.3.13
 Release:        0
@@ -25,17 +25,12 @@
 License:        BSD-3-Clause
 Group:          Development/Libraries/C and C++
 Url:            https://github.com/vinzenz/vsqlite--
-Source0:        https://github.com/vinzenz/vsqlite--/archive/%{version}.tar.gz
+Source0:        
https://github.com/vinzenz/vsqlite--/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  boost-devel
 BuildRequires:  dos2unix
-BuildRequires:  doxygen
-BuildRequires:  fdupes
 BuildRequires:  gcc-c++
-BuildRequires:  graphviz
-BuildRequires:  graphviz-gd
-BuildRequires:  graphviz-gnome
 BuildRequires:  libtool
 BuildRequires:  perl-base
 BuildRequires:  sqlite-devel
@@ -45,78 +40,38 @@
 VSQLite++ is a C++ wrapper for sqlite3 using the C++ standard library and 
boost.
 VSQLite++ is designed to be easy to use and focuses on simplicity.
 
-%package -n %{_libpacname}
+%package -n %{lib_name}%{sover}
 Summary:        Well designed C++ sqlite 3.x wrapper library
 Group:          System/Libraries
-Obsoletes:      %{_libpacname} < %{version}
 
-%description -n %{_libpacname}
+%description -n  %{lib_name}%{sover}
 VSQLite++ is a C++ wrapper for sqlite3 using the C++ standard library and 
boost.
 VSQLite++ is designed to be easy to use and focuses on simplicity.
 
 %package devel
 Summary:        Development files for %{name}
 Group:          Development/Libraries/C and C++
-Requires:       %{_libpacname}
+Requires:       %{lib_name}%{sover} = %{version}
 
 %description devel
 This package contains development files for %{name}.
 
-%package doc
-Summary:        Development documentation for %{name}
-Group:          Development/Libraries/C and C++
-%if %suse_version > 1200
-BuildArch:      noarch
-%endif
-
-%description doc
-This package contains development documentation files for %{name}.
-
 %prep
 %setup -q -n vsqlite---%{version}
 find . -iname "*.[ch]pp" -exec dos2unix -k {} \;
 
 %build
-export CFLAGS="%{optflags} -fno-strict-aliasing ${INCLUDES}"
-export CXXFLAGS="%{optflags} -fno-strict-aliasing ${INCLUDES}"
-sh ./autogen.sh --prefix=%{_prefix} --libdir=%{_libdir}
-
+autoreconf -fiv
 %configure
-sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
 make %{?_smp_mflags}
 
-#Update Doxyfile to suppress Deprecated stuff
-#less warnings
-doxygen -u Doxyfile
-doxygen Doxyfile
-%fdupes -s html/
-
 %install
-# devel & base
-install -p -m 755 -d %{buildroot}%{_libdir}
-# devel only
-install -p -m 755 -d %{buildroot}%{_includedir}/sqlite/ext
-install -m 644 include/sqlite/*.hpp %{buildroot}%{_includedir}/sqlite
-install -m 644 include/sqlite/ext/*.hpp %{buildroot}%{_includedir}/sqlite/ext
-# docs
-install -p -m 755 -d %{buildroot}%{_docdir}
-
-# build for all
-make DESTDIR=%{buildroot} install %{?_smp_mflags}
-
+%make_install
 # do not ship these
-rm -f %{buildroot}%{_libdir}/libvsqlitepp.la
-rm -f %{buildroot}%{_libdir}/libvsqlitepp.a
-
-%fdupes -s %{buildroot}%{_docdir}
+find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete -print
 
-%post -n %{_libpacname} -p /sbin/ldconfig
-
-%postun -n %{_libpacname} -p /sbin/ldconfig
-
-%files doc
-%defattr(0644, root, root, 0755)
-%doc ChangeLog README COPYING examples/sqlite_wrapper.cpp html/*
+%post -n %{lib_name}%{sover} -p /sbin/ldconfig
+%postun -n %{lib_name}%{sover} -p /sbin/ldconfig
 
 %files devel
 %defattr(0644, root, root, 0755)
@@ -124,9 +79,9 @@
 %{_includedir}/sqlite
 %{_libdir}/libvsqlitepp.so
 
-%files -n %{_libpacname}
+%files -n %{lib_name}%{sover}
 %defattr(0644, root, root, 0755)
 %doc ChangeLog README COPYING
-%{_libdir}/libvsqlitepp.so.*
+%{_libdir}/libvsqlitepp.so.%{sover}*
 
 %changelog


Reply via email to