f08c1a7
Name:		ebook-tools
7df99a0
Version:	0.2.0
7df99a0
Release:	1%{?dist}
f08c1a7
Summary:	Tools for accessing and converting various ebook file formats
f08c1a7
f08c1a7
Group:		Applications/Publishing
f08c1a7
License:	MIT
f08c1a7
URL:		http://sourceforge.net/projects/%{name}
f08c1a7
7df99a0
Source0:	http://downloads.sourceforge.net/ebook-tools/%{name}-%{version}.tar.gz
7df99a0
Patch0:		ebook-tools-0.2.0-rmhardcoded.patch
f08c1a7
f08c1a7
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f08c1a7
7df99a0
BuildRequires:	cmake
f08c1a7
BuildRequires:	libxml2-devel
f08c1a7
BuildRequires:	libzip-devel
7df99a0
7df99a0
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
f08c1a7
f08c1a7
%description
f08c1a7
Tools for accessing and converting various ebook file formats.
f08c1a7
f08c1a7
%package devel
f08c1a7
Summary:	Development files for %{name}
f08c1a7
Group:		Development/Libraries
f08c1a7
7df99a0
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
f08c1a7
f08c1a7
%description devel
f08c1a7
The %{name}-devel package contains libraries and header files for
f08c1a7
developing applications that use %{name}.
f08c1a7
f08c1a7
%package libs
f08c1a7
Summary:	Libraries for %{name}
f08c1a7
Group:		System Environment/Libraries
f08c1a7
f08c1a7
%description libs
f08c1a7
The %{name}-libs package contains libraries to be used by 
f08c1a7
%{name} and others.
f08c1a7
f08c1a7
%prep
f08c1a7
%setup -q
7df99a0
%patch0 -p1 -b .rmhardcoded
f08c1a7
f08c1a7
f08c1a7
%build
7df99a0
mkdir -p %{_target_platform}
7df99a0
pushd %{_target_platform}
f08c1a7
%{cmake} ..
7df99a0
popd
7df99a0
make %{_smp_mflags} -C %{_target_platform}
f08c1a7
f08c1a7
f08c1a7
%install
f08c1a7
rm -rf %{buildroot}
7df99a0
make install/fast DESTDIR=%{buildroot} -C %{_target_platform} 
7df99a0
f08c1a7
#remove because it doesnt work without clit
c005af0
rm -f %{buildroot}%{_bindir}/lit2epub
f08c1a7
f08c1a7
%clean
f08c1a7
rm -rf %{buildroot}
f08c1a7
f08c1a7
%post libs -p /sbin/ldconfig
f08c1a7
f08c1a7
%postun libs -p /sbin/ldconfig
f08c1a7
f08c1a7
%files
f08c1a7
%defattr(-,root,root,-)
c005af0
%{_bindir}/einfo
f08c1a7
f08c1a7
%files	devel
f08c1a7
%defattr(-,root,root,-)
7df99a0
%{_libdir}/libepub.so
7df99a0
%{_includedir}/epub*.h
f08c1a7
f08c1a7
%files	libs
f08c1a7
%defattr(-,root,root,-)
f08c1a7
%doc README LICENSE
7df99a0
%{_libdir}/libepub.so.0*
f08c1a7
f08c1a7
%changelog
7df99a0
* Thu Sep 09 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.2.0-1
7df99a0
- ebook-tools-0.2.0
7df99a0
- %%files: track lib soname
7df99a0
- tighten subpkg deps with %%_isa
7df99a0
c610f69
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-5
c610f69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c610f69
56ab805
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-4
56ab805
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
56ab805
c005af0
* Sat Jan 24 2009 John5342 <john5342 at, fedoraproject.org> 0.1.1-3
c005af0
- Actually remove lit2epub this time
c005af0
f08c1a7
* Mon Dec 15 2008 John5342 <john5342 at, fedoraproject.org> 0.1.1-2
f08c1a7
- Removed lit2epub as it doesnt work without clit
f08c1a7
f08c1a7
* Mon Dec 15 2008 John5342 <john5342 at, fedoraproject.org> 0.1.1-1
f08c1a7
- Initial package