diff --git a/.cvsignore b/.cvsignore index e69de29..e40b87d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libwps-0.1.2.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..d49c9c0 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +libwps-0_1_2-5_fc10:HEAD:libwps-0.1.2-5.fc10.src.rpm:1237287153 diff --git a/libwps.spec b/libwps.spec new file mode 100644 index 0000000..91f2fa5 --- /dev/null +++ b/libwps.spec @@ -0,0 +1,137 @@ +Name: libwps +Version: 0.1.2 +Release: 5%{?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: glibc-devel +BuildRequires: cppunit-devel + + +%description +Library that handles Microsoft Works documents. + + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: libwpd-devel +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} = %{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} + + +%description doc +The %{name}-doc package contains documentation files for %{name} + + + +%prep +%setup -q + + +%build +%configure --disable-static +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 {} ';' + +rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL + +find %{buildroot}%{_docdir}/%{name}-%{version}/ -type d -exec chmod 755 {} + +find %{buildroot}%{_docdir}/%{name}-%{version}/ -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,-) +%{_libdir}/*.so.* +%{_docdir}/%{name}-%{version}/ +%exclude %{_docdir}/%{name}-%{version}/html/ + + +%files devel +%defattr(-,root,root,-) +%doc HACKING +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/%{name}* + + +%files tools +%defattr(-,root,root,-) +%doc README +%{_bindir}/wps2* + + +%files doc +%defattr(-,root,root,-) +%{_docdir}/%{name}-%{version}/html/ + + +%changelog +* Tue Mar 10 2009 2009 Simon Wesp - 0.1.2-5 +- Correct DOC issues (again) RHBZ: #484933 / C14 + +* Sun Feb 15 2009 2009 Simon Wesp - 0.1.2-4 +- Correct path for CHECK section + +* Sun Feb 15 2009 2009 Simon Wesp - 0.1.2-3 +- Add CHECK section +- Add cppunit-devel to BuildRequires + +* Sun Feb 15 2009 2009 Simon Wesp - 0.1.2-2 +- Correct DOC issues +- Delete wrong pkgconfig pathes + +* Tue Feb 10 2009 2009 Simon Wesp - 0.1.2-1 +- Initial Package build diff --git a/sources b/sources index e69de29..f10d36a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +799fc3b835a79adce8c88a3fee0150c1 libwps-0.1.2.tar.gz