Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > a85eaab14e3ae48ec614df11daf139a9 > files > 4

wv2-0.4.2-4.mga3.src.rpm

%define major           4
%define libname         %mklibname %{name}_ %{major}
%define develname       %mklibname %{name} -d

Summary:	Word97 exporter library
Name:		wv2
Version:	0.4.2
Release:	%mkrel 4
License:	LGPLv2
Group:		System/Libraries
URL:		http://sourceforge.net/projects/wvware/
Source0: 	http://downloads.sourceforge.net/wvware/%{name}-%{version}.tar.bz2
Patch0:         wv2-0.4.2-mga-fix-build.patch
Patch3:		wv2-0.4.2-linkage.patch
BuildRequires:	libgsf-devel
BuildRequires:  cmake

%description
wvWare is the continuation of Caolan McNamara's wv - the MSWord library.
Efforts are underway to make this library more correct, robust,
and turn it into a Word97 exporter.


%package -n %{libname}
Summary: 	Word97 exporter library
Group:	 	System/Libraries
Obsoletes:	wv2
Provides:	%{name} = %{version}-%{release}
Provides:	lib%{name} = %{version}-%{release}

%description -n %{libname}
wvWare is the continuation of Caolan McNamara's wv - the MSWord library. 
Efforts are underway to make this library more correct, robust, 
and turn it into a Word97 exporter.

%package -n %{develname}
Summary: 	Word97 exporter library devel
Group:	 	Development/C
Requires:	%{libname} = %{version}-%{release}
Obsoletes:	wv2-devel
Provides:	wv2-devel = %{version}-%{release}
Obsoletes:	%{mklibname wv2_ 1 -d}

%description -n %{develname}
This is the Wv2 development package.


%prep
%setup -q
%patch0 -p0
%patch3 -p0 -b .link

%build
%cmake
%make

%install
%makeinstall_std -C build

%multiarch_binaries %{buildroot}%{_bindir}/wv2-config

rm -rf %{buildroot}%{_libdir}/*.la

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%{_includedir}/%{name}
%{_libdir}/*.so
%{_bindir}/wv2-config
%multiarch %{multiarch_bindir}/wv2-config
%{_libdir}/wvWare


%changelog

* Sat Jan 19 2013 fwang <fwang> 0.4.2-4.mga3
+ Revision: 389663
- update rpm group

  + umeabot <umeabot>
    - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Jan 27 2012 kamil <kamil> 0.4.2-3.mga2
+ Revision: 202293
- new Patch0 'mga-fix-build.patch': fix build against newer glib.h
- rebuild against new gcc 4.6.2
- clean .spec

* Sun Jan 23 2011 pterjan <pterjan> 0.4.2-2.mga1
+ Revision: 35541
- imported package wv2