%define lib_name_orig %mklibname wv2 %define lib_major 1 %define lib_name %{lib_name_orig}_%{lib_major} Summary: Word97 exporter library Name: wv2 Version: 0.2.1 Release: 1mdk License: GPL Group: Office URL: http://sourceforge.net/projects/wvware/ Source: wv2-%version.tar.bz2 BuildRequires: XFree86-devel BuildRequires: libgsf-devel BuildRequires: autoconf2.5 BuildRoot: %{_tmppath}/%{name}-buildroot %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 %lib_name Summary: Word97 exporter library Group: Development/C Obsoletes: wv2 Provides: wv2 = %version-%release Provides: %lib_name_orig = %version-%release %description -n %lib_name 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 %lib_name-devel Summary: Word97 exporter library devel Group: Development/C Requires: %{name} = %{version} Requires: %lib_name = %version-%release Obsoletes: wv2-devel Provides: wv2-devel = %version-%release %description -n %lib_name-devel This is the Wv2 development package. %prep %setup -q %build %configure2_5x %make %install rm -rf $RPM_BUILD_ROOT %makeinstall %post -n %lib_name -p /sbin/ldconfig %postun -n %lib_name -p /sbin/ldconfig %post -n %lib_name-devel -p /sbin/ldconfig %postun -n %lib_name-devel -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files -n %lib_name %defattr(-,root,root) %_libdir/*.la %_libdir/*.so.* %files -n %lib_name-devel %defattr(-,root,root) %dir %_includedir/wv2 %_includedir/wv2/*.h %_libdir/*.so %_bindir/* %changelog * Mon Dec 29 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.2.1-1mdk - 0.2.1 * Wed Nov 05 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.2-1mdk - 0.2 * Mon Sep 01 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.1.9-1mdk - 0.1.9 * Thu Aug 07 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.1.8-1mdk - 0.1.8 * Thu Jul 31 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.1.7-2mdk - libification * Thu Jul 31 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.1.7-1mdk - 0.1.7 * Thu Jul 31 2003 Götz Waschk <waschk@linux-mandrake.com> 0.1-6mdk - fix buildrequires and requires - autoconf2.5 macro * Fri Jul 18 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.1-5mdk - grmpf, more buildrequires * Mon Jul 14 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.1-4mdk - cosmetics - quiet setup - buildrequires - fix library-without-ldconfig-post{un,in} (package name should really be changed to follow mdk library police!!) * Thu Jul 10 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.1-3mdk - Rebuild * Wed Jul 09 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.1-2mdk - Rebuild * Thu Jul 03 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.1-1mdk - First import