%define majver %(echo %version | cut -d. -f1-2) Name: libwps Version: 0.4.2 Release: 1mamba Summary: A library for importing the Microsoft Works word processor file format Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://libwps.sourceforge.net/ Source: http://downloads.sourceforge.net/sourceforge/libwps/libwps-%{version}.tar.gz License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libstdc++6-devel BuildRequires: libwpd-devel ## AUTOBUILDREQ-END BuildRequires: librevenge-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %description A library (for use by word processors, for example) for importing the Microsoft Works word processor file format. %package devel Summary: Devel package for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel A library (for use by word processors, for example) for importing the Microsoft Works word processor file format. This package contains static libraries and header files need for development. %package tools Group: Applications/Publishing Summary: Programs for manipulating Microsoft Works word processor files Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description tools A library (for use by word processors, for example) for importing the Microsoft Works word processor file format. This package package contains various programs for manipulating WordPerfect format files. %prep %setup -q %build %configure %make CPPFLAGS="-Wno-unused-local-typedefs" %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libwps-%{majver}.so.* #%{_libdir}/libwps-stream-%{majver}.so.* %doc CREDITS %files devel %defattr(-,root,root) %{_libdir}/libwps-%{majver}.la %{_libdir}/libwps-%{majver}.so #%{_libdir}/libwps-stream-%{majver}.la #%{_libdir}/libwps-stream-%{majver}.so %dir %{_includedir}/libwps-%{majver}/libwps %{_includedir}/libwps-%{majver}/libwps/*.h %{_libdir}/pkgconfig/*.pc %dir %{_docdir}/libwps %{_docdir}/libwps/* %doc README %files tools %defattr(-,root,root) %{_bindir}/wks2csv %{_bindir}/wks2raw %{_bindir}/wks2text %{_bindir}/wps2html %{_bindir}/wps2raw %{_bindir}/wps2text %changelog * Thu Oct 08 2015 Automatic Build System 0.4.2-1mamba - automatic version update by autodist * Sat Aug 29 2015 Automatic Build System 0.4.1-1mamba - automatic version update by autodist * Thu May 28 2015 Automatic Build System 0.4.0-1mamba - automatic version update by autodist * Tue Dec 30 2014 Automatic Build System 0.3.1-1mamba - automatic version update by autodist * Tue Jun 17 2014 Automatic Build System 0.3.0-1mamba - automatic version update by autodist * Mon May 27 2013 Automatic Build System 0.2.9-1mamba - automatic version update by autodist * Fri May 17 2013 Automatic Build System 0.2.8-1mamba - automatic version update by autodist * Tue Dec 04 2012 Automatic Build System 0.2.7-1mamba - automatic version update by autodist * Thu Oct 13 2011 Automatic Build System 0.2.2-1mamba - automatic version update by autodist * Sun Nov 21 2010 Automatic Build System 0.2.0-1mamba - automatic update by autodist * Wed Jul 29 2009 Automatic Build System 0.1.2-1mamba - automatic update by autodist * Wed Aug 29 2007 Silvan Calarco 0.1.0-1mamba - package created by autospec