|
|
|
Name: libwps
|
|
|
|
Version: 0.2.4
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Library for reading and converting Microsoft Works word processor documents
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://libwps.sourceforge.net/
|
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: libwpd-devel
|
|
|
|
BuildRequires: cppunit-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
Library that handles Microsoft Works documents.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: libwpd-devel%{?_isa}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Tools to transform Works documents into other formats
|
|
|
|
Group: Applications/Publishing
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
Tools to transform Works documents into other formats.
|
|
|
|
Currently supported: html, raw, text
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation of %{name} API
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
The %{name}-doc package contains documentation files for %{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
# Prevent autotools from being rerun
|
|
|
|
touch -r aclocal.m4 configure configure.in
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-static --disable-werror
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
make install INSTALL="install -p" DESTDIR="%{buildroot}"
|
|
|
|
|
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
|
|
|
find %{buildroot}%{_defaultdocdir}/%{name}/ -type d -exec chmod 755 {} +
|
|
|
|
find %{buildroot}%{_defaultdocdir}/%{name}/ -type f -exec chmod 644 {} +
|
|
|
|
|
|
|
|
%check
|
|
|
|
LD_LIBRARY_PATH=$(pwd)/src/lib/.libs make check
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING CREDITS NEWS README
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc HACKING
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}*
|
|
|
|
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/wps2*
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_defaultdocdir}/%{name}/html/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Thu Dec 01 2011 David Tardon <dtardon@redhat.com> - 0.2.4-1
|
|
|
|
- latest version
|
|
|
|
|
|
|
|
* Fri Nov 18 2011 David Tardon <dtardon@redhat.com> - 0.2.3-1
|
|
|
|
- latest version
|
|
|
|
- remove obsoleted patch
|
|
|
|
|
|
|
|
* Wed Jul 13 2011 David Tardon <dtardon@redhat.com> - 0.2.2-1
|
|
|
|
- latest version
|
|
|
|
|
|
|
|
* Tue Jun 28 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.2.0-3
|
|
|
|
- Remove -Werror from CFLAGS/CXXFLAGS (Add libwps-0.2.0-werror.patch)
|
|
|
|
(Fix FTBFS BZ#715767).
|
|
|
|
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Dec 05 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.0-1
|
|
|
|
- latest version
|
|
|
|
|
|
|
|
* Sat Jan 30 2010 Chen Lei <supercyper@163.com> - 0.1.2-7
|
|
|
|
- Add noarch to -doc subpackage
|
|
|
|
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Mar 10 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-5
|
|
|
|
- Correct DOC issues (again) RHBZ: #484933 / C14
|
|
|
|
|
|
|
|
* Sun Feb 15 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-4
|
|
|
|
- Correct path for CHECK section
|
|
|
|
|
|
|
|
* Sun Feb 15 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-3
|
|
|
|
- Add CHECK section
|
|
|
|
- Add cppunit-devel to BuildRequires
|
|
|
|
|
|
|
|
* Sun Feb 15 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-2
|
|
|
|
- Correct DOC issues
|
|
|
|
- Delete wrong pkgconfig pathes
|
|
|
|
|
|
|
|
* Tue Feb 10 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-1
|
|
|
|
- Initial Package build
|