SHA256
6
0
forked from pool/wv

Accepting request 91690 from home:jengelh:branches:devel:libraries:c_c++

- Remove redundant/unwanted tags/section (cf. specfile guidelines)
- Use %_smp_mflags for parallel building
- Apply shared library packaging (-> libwv-1_2 subpackage)

OBS-URL: https://build.opensuse.org/request/show/91690
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/wv?expand=0&rev=7
This commit is contained in:
Cristian Rodríguez 2011-11-17 03:38:10 +00:00 committed by Git OBS Bridge
parent ff49157ee1
commit 1435003789
2 changed files with 25 additions and 12 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Nov 15 16:14:30 UTC 2011 - jengelh@medozas.de
- Remove redundant/unwanted tags/section (cf. specfile guidelines)
- Use %_smp_mflags for parallel building
- Apply shared library packaging (-> libwv-1_2 subpackage)
-------------------------------------------------------------------
Tue Nov 15 13:14:56 UTC 2011 - coolo@suse.com

30
wv.spec
View File

@ -15,18 +15,17 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: wv
%define lname libwv-1_2-1
BuildRequires: glib2-devel libgsf-devel libtiff-devel libtool libwmf-devel libxml2-devel pkgconfig
License: GPL v2 or later ; LGPL v2.1 or later
Group: Productivity/Publishing/Word
AutoReqProv: on
Version: 1.2.2
Release: 216
Summary: Library and Tools for Importing Microsoft Word (tm) Documents
Url: http://wvWare.sourceforge.net/
Summary: Tools for Importing Microsoft Word (tm) Documents
URL: http://wvWare.sourceforge.net/
Source: wv-%{version}.tar.gz
Patch: wv-1.2.2-automake.patch
Patch5: wv-1.0.3-wvText.patch
@ -47,12 +46,19 @@ Authors:
--------
Caolan McNamara <Caolan.McNamara@ul.ie>
%package -n %lname
License: LGPL-2.1+
Summary: Library for importing Microsoft Word documents
Group: System/Libraries
%description -n %lname
libwv can parse the Microsoft Word 8 binary file format (Office97).
%package devel
License: GPL v2 or later
Requires: %{name} = %{version} libgsf-devel libwmf-devel
Requires: %lname = %version, libgsf-devel libwmf-devel
Summary: Static Libraries and Header Files for wv
Group: Development/Libraries/C and C++
AutoReqProv: on
%description devel
Static Libraries and Header Files for wv.
@ -82,12 +88,9 @@ CFLAGS="$RPM_OPT_FLAGS %{warn_flags} -fno-strict-aliasing -fstack-protector" \
make DESTDIR=$RPM_BUILD_ROOT manonedir=%{_mandir}/man1 install
rm -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -n %lname -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr(-,root,root)
@ -108,10 +111,13 @@ rm -rf $RPM_BUILD_ROOT
/usr/bin/wvWml
/usr/bin/wvDocBook
/usr/share/wv
%{_libdir}/*.so.*
%doc %{_mandir}/*/*
%doc COPYING README
%files -n %lname
%defattr(-,root,root)
%_libdir/libwv-1.2.so.1*
%files devel
%defattr(-,root,root)
%_libdir/pkgconfig/*