diff --git a/.cvsignore b/.cvsignore index e69de29..aac9903 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +ebook-tools-0.1.1.tar.gz diff --git a/ebook-tools-0.1.1-rmhardcoded.patch b/ebook-tools-0.1.1-rmhardcoded.patch new file mode 100644 index 0000000..50bd943 --- /dev/null +++ b/ebook-tools-0.1.1-rmhardcoded.patch @@ -0,0 +1,11 @@ +diff -ur ebook-tools-0.1.1/src/libepub/CMakeLists.txt ebook-tools-0.1.1.rmhardcoded/src/libepub/CMakeLists.txt +--- ebook-tools-0.1.1/src/libepub/CMakeLists.txt 2008-06-07 20:20:14.000000000 +0100 ++++ ebook-tools-0.1.1.rmhardcoded/src/libepub/CMakeLists.txt 2008-12-15 02:59:58.621077025 +0000 +@@ -4,5 +4,5 @@ + + set_target_properties (epub PROPERTIES VERSION 0.1.1 SOVERSION 0) + +-install ( TARGETS epub RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib ) +-install ( FILES epub.h epub_shared.h DESTINATION include ) ++install ( TARGETS epub RUNTIME DESTINATION bin LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR} ) ++install ( FILES epub.h epub_shared.h DESTINATION ${INCLUDE_INSTALL_DIR} ) diff --git a/ebook-tools.spec b/ebook-tools.spec new file mode 100644 index 0000000..0aa8634 --- /dev/null +++ b/ebook-tools.spec @@ -0,0 +1,87 @@ +Name: ebook-tools +Version: 0.1.1 +Release: 2%{?dist} +Summary: Tools for accessing and converting various ebook file formats + +Group: Applications/Publishing +License: MIT +URL: http://sourceforge.net/projects/%{name} + +Source0: http://prdownloads.sourceforge.net/sourceforge/ebook-tools/%{name}-%{version}.tar.gz +Patch0: ebook-tools-0.1.1-rmhardcoded.patch + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libxml2-devel +BuildRequires: libzip-devel +BuildRequires: cmake +Requires: %{name}-libs = %{version}-%{release} + +%description +Tools for accessing and converting various ebook file formats. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries + +Requires: %{name}-libs = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package libs +Summary: Libraries for %{name} +Group: System Environment/Libraries + +%description libs +The %{name}-libs package contains libraries to be used by +%{name} and others. + +%prep +%setup -q +%patch0 -p1 + + +%build +mkdir build +cd build +%{cmake} .. +make + + +%install +rm -rf %{buildroot} +cd build +make install DESTDIR=%{buildroot} +#remove because it doesnt work without clit +rm -f %{_bindir}/lit2epub + +%clean +rm -rf %{buildroot} + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc +%{_bindir}/* + +%files devel +%defattr(-,root,root,-) +%{_libdir}/*.so +%{_includedir}/* + +%files libs +%defattr(-,root,root,-) +%doc README LICENSE +%{_libdir}/*.so.* + +%changelog +* Mon Dec 15 2008 John5342 0.1.1-2 +- Removed lit2epub as it doesnt work without clit + +* Mon Dec 15 2008 John5342 0.1.1-1 +- Initial package diff --git a/import.log b/import.log new file mode 100644 index 0000000..ffbaf06 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +ebook-tools-0_1_1-2_fc10:F-9:ebook-tools-0.1.1-2.fc10.src.rpm:1229385100 diff --git a/sources b/sources index e69de29..1ce081f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +15946af6f946eabe8247cdef9ada2b88 ebook-tools-0.1.1.tar.gz