Remove redundant tags, parallel build, SPDX, rpm groups

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libwpg?expand=0&rev=9
This commit is contained in:
Jan Engelhardt 2012-01-24 10:07:54 +00:00 committed by Git OBS Bridge
parent 655c147cbb
commit cd5a4d5c1e
2 changed files with 13 additions and 11 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Jan 24 09:40:42 UTC 2012 - jengelh@medozas.de
- Remove redundant tags/sections (see specfile guidelines)
- SPDX-style license field
- Parallel build with %_smp_mflags
- Adjust rpm group of -tools and (main) to match libwpd
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 23 18:06:20 UTC 2012 - crrodriguez@opensuse.org Mon Jan 23 18:06:20 UTC 2012 - crrodriguez@opensuse.org

View File

@ -30,7 +30,7 @@ Summary: Library to read and parse graphics in WordPerfect Graphics forma
Version: 0.2.1 Version: 0.2.1
Release: 0 Release: 0
License: LGPL-2.1+ License: LGPL-2.1+
Group: System/Libraries Group: Productivity/Publishing/Word
Url: http://libwpg.sourceforge.net/ Url: http://libwpg.sourceforge.net/
Source: libwpg-%{version}.tar.bz2 Source: libwpg-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -51,9 +51,9 @@ Authors:
Fridrich Strba (fridrich.strba@bluewin.ch) Fridrich Strba (fridrich.strba@bluewin.ch)
Ariya Hidayat (ariya@kde.org) Ariya Hidayat (ariya@kde.org)
%package -n libwpg-0_2-2
%define libname libwpg-0_2-2 %define libname libwpg-0_2-2
License: LGPL-2.1+
%package -n %libname
# remove the old non-versioned package (built in the bs for instance) # remove the old non-versioned package (built in the bs for instance)
Obsoletes: libwpg < %version Obsoletes: libwpg < %version
Summary: Library to read and parse graphics in WordPerfect Graphics format Summary: Library to read and parse graphics in WordPerfect Graphics format
@ -64,7 +64,6 @@ libwpg is a C++ library to read and parse graphics in WPG (WordPerfect
Graphics) format. Graphics) format.
%package devel %package devel
License: LGPL-2.1+
Summary: Files for Developing with libwpg Summary: Files for Developing with libwpg
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Provides: libwpg-devel = %version-%release Provides: libwpg-devel = %version-%release
@ -89,7 +88,6 @@ Authors:
%if %build_doc %if %build_doc
%package devel-doc %package devel-doc
License: LGPL-2.1+
Summary: Documentation for the libwpg API Summary: Documentation for the libwpg API
Group: Documentation/HTML Group: Documentation/HTML
@ -108,9 +106,8 @@ Authors:
%endif %endif
%package tools %package tools
License: LGPL-2.1+
Summary: Tools for converting WordPerfect Graphics files Summary: Tools for converting WordPerfect Graphics files
Group: System/Libraries Group: Productivity/Publishing/Word
%description tools %description tools
Tools to work with graphics in WPG (WordPerfect Graphics) format. Tools to work with graphics in WPG (WordPerfect Graphics) format.
@ -131,7 +128,7 @@ Authors:
%build %build
export CXXFLAGS="%optflags -fvisibility-inlines-hidden" export CXXFLAGS="%optflags -fvisibility-inlines-hidden"
%configure --disable-static --docdir=%_docdir/%name %configure --disable-static --docdir=%_docdir/%name
make %{?jobs:-j%jobs} make %{?_smp_mflags}
%install %install
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
@ -140,9 +137,6 @@ rm $RPM_BUILD_ROOT%_libdir/*.la
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name} mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
cp -p AUTHORS COPYING ChangeLog $RPM_BUILD_ROOT%{_docdir}/%{name} cp -p AUTHORS COPYING ChangeLog $RPM_BUILD_ROOT%{_docdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post -n %libname -p /sbin/ldconfig %post -n %libname -p /sbin/ldconfig
%postun -n %libname -p /sbin/ldconfig %postun -n %libname -p /sbin/ldconfig