2bbe3f6
Name:		ebook-tools
2bbe3f6
Version:	0.1.1
c02df10
Release:	3%{?dist}
2bbe3f6
Summary:	Tools for accessing and converting various ebook file formats
2bbe3f6
2bbe3f6
Group:		Applications/Publishing
2bbe3f6
License:	MIT
2bbe3f6
URL:		http://sourceforge.net/projects/%{name}
2bbe3f6
2bbe3f6
Source0:	http://prdownloads.sourceforge.net/sourceforge/ebook-tools/%{name}-%{version}.tar.gz
2bbe3f6
Patch0:		ebook-tools-0.1.1-rmhardcoded.patch
2bbe3f6
2bbe3f6
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2bbe3f6
2bbe3f6
BuildRequires:	libxml2-devel
2bbe3f6
BuildRequires:	libzip-devel
2bbe3f6
BuildRequires:	cmake
2bbe3f6
Requires:	%{name}-libs = %{version}-%{release}
2bbe3f6
2bbe3f6
%description
2bbe3f6
Tools for accessing and converting various ebook file formats.
2bbe3f6
2bbe3f6
%package devel
2bbe3f6
Summary:	Development files for %{name}
2bbe3f6
Group:		Development/Libraries
2bbe3f6
2bbe3f6
Requires:	%{name}-libs = %{version}-%{release}
2bbe3f6
2bbe3f6
%description devel
2bbe3f6
The %{name}-devel package contains libraries and header files for
2bbe3f6
developing applications that use %{name}.
2bbe3f6
2bbe3f6
%package libs
2bbe3f6
Summary:	Libraries for %{name}
2bbe3f6
Group:		System Environment/Libraries
2bbe3f6
2bbe3f6
%description libs
2bbe3f6
The %{name}-libs package contains libraries to be used by 
2bbe3f6
%{name} and others.
2bbe3f6
2bbe3f6
%prep
2bbe3f6
%setup -q
2bbe3f6
%patch0 -p1
2bbe3f6
2bbe3f6
2bbe3f6
%build
2bbe3f6
mkdir build
2bbe3f6
cd build
2bbe3f6
%{cmake} ..
2bbe3f6
make
2bbe3f6
2bbe3f6
2bbe3f6
%install
2bbe3f6
rm -rf %{buildroot}
2bbe3f6
cd build
2bbe3f6
make install DESTDIR=%{buildroot}
2bbe3f6
#remove because it doesnt work without clit
c02df10
rm -f %{buildroot}%{_bindir}/lit2epub
2bbe3f6
2bbe3f6
%clean
2bbe3f6
rm -rf %{buildroot}
2bbe3f6
2bbe3f6
%post libs -p /sbin/ldconfig
2bbe3f6
2bbe3f6
%postun libs -p /sbin/ldconfig
2bbe3f6
2bbe3f6
%files
2bbe3f6
%defattr(-,root,root,-)
2bbe3f6
%doc
c02df10
%{_bindir}/einfo
2bbe3f6
2bbe3f6
%files	devel
2bbe3f6
%defattr(-,root,root,-)
2bbe3f6
%{_libdir}/*.so
2bbe3f6
%{_includedir}/*
2bbe3f6
2bbe3f6
%files	libs
2bbe3f6
%defattr(-,root,root,-)
2bbe3f6
%doc README LICENSE
2bbe3f6
%{_libdir}/*.so.*
2bbe3f6
2bbe3f6
%changelog
c02df10
* Sat Jan 24 2009 John5342 <john5342 at, fedoraproject.org> 0.1.1-3
c02df10
- Actually remove lit2epub this time
c02df10
2bbe3f6
* Mon Dec 15 2008 John5342 <john5342 at, fedoraproject.org> 0.1.1-2
2bbe3f6
- Removed lit2epub as it doesnt work without clit
2bbe3f6
2bbe3f6
* Mon Dec 15 2008 John5342 <john5342 at, fedoraproject.org> 0.1.1-1
2bbe3f6
- Initial package