Hello community, here is the log from the commit of package chmlib for openSUSE:Factory checked in at 2015-05-15 09:54:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/chmlib (Old) and /work/SRC/openSUSE:Factory/.chmlib.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "chmlib" Changes: -------- --- /work/SRC/openSUSE:Factory/chmlib/chmlib.changes 2012-02-16 16:11:49.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.chmlib.new/chmlib.changes 2015-05-15 09:54:59.000000000 +0200 @@ -1,0 +2,6 @@ +Sun May 10 11:51:04 UTC 2015 - mpluskal@suse.com + +- Use url for source +- Cleanup spec file with spec-cleaner + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ chmlib.spec ++++++ --- /var/tmp/diff_new_pack.cAQ9ZM/_old 2015-05-15 09:54:59.000000000 +0200 +++ /var/tmp/diff_new_pack.cAQ9ZM/_new 2015-05-15 09:54:59.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package chmlib # -# Copyright (c) 2012 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 @@ -16,36 +16,36 @@ # -Name: chmlib %define lname libchm0 -BuildRequires: gcc-c++ +Name: chmlib Version: 0.40 Release: 0 -Source0: %{name}-%{version}.tar.bz2 -Source2: baselibs.conf -Patch: %{name}-0.39.diff -Url: http://www.jedrea.com/chmlib/ -BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: A library for dealing with ITSS/CHM files License: LGPL-2.1+ Group: System/Libraries +Url: http://www.jedrea.com/chmlib/ +Source0: http://www.jedrea.com/chmlib/%{name}-%{version}.tar.bz2 +Source2: baselibs.conf +Patch0: %{name}-0.39.diff +BuildRequires: gcc-c++ +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description CHMLIB is a library for dealing with Microsoft ITSS/CHM format files. -%package -n %lname +%package -n %{lname} Summary: A library for dealing with ITSS/CHM files Group: System/Libraries -Obsoletes: chmlib < %version-%release -Provides: chmlib = %version-%release +Obsoletes: chmlib < %{version}-%{release} +Provides: chmlib = %{version}-%{release} -%description -n %lname +%description -n %{lname} CHMLIB is a library for dealing with Microsoft ITSS/CHM format files. %package devel Summary: Documentation and Headers for chmlib Group: System/Libraries -Requires: %lname = %version +Requires: %{lname} = %{version} %description devel This package contains the headers and documentation for the chmlib API @@ -55,7 +55,7 @@ %package examples Summary: Example applications for chmlib Group: System/Libraries -Requires: %lname = %version +Requires: %{lname} = %{version} %description examples This package contains examples built on chmlib which may be useful @@ -63,24 +63,28 @@ %prep %setup -q -%patch +%patch0 %build -export CFLAGS="$RPM_OPT_FLAGS -fstack-protector" +export CFLAGS="%{optflags} -fstack-protector" export CXXFLAGS="$CFLAGS" export CXXCPP="g++ -E" -%configure --disable-static --with-pic --disable-pread --enable-examples +%configure \ + --disable-static \ + --with-pic \ + --disable-pread \ + --enable-examples make %{?_smp_mflags} %install -make DESTDIR=$RPM_BUILD_ROOT install -%{__rm} -f %{buildroot}%{_libdir}/*.la +make DESTDIR=%{buildroot} install %{?_smp_mflags} +find %{buildroot} -type f -name "*.la" -delete -print -%post -n %lname -p /sbin/ldconfig +%post -n %{lname} -p /sbin/ldconfig -%postun -n %lname -p /sbin/ldconfig +%postun -n %{lname} -p /sbin/ldconfig -%files -n %lname +%files -n %{lname} %defattr(-, root, root) %doc AUTHORS COPYING NEWS README %{_libdir}/*.so.*