]> git.pld-linux.org Git - packages/calibre.git/blame - calibre.spec
- don't try to install init_calibre.py (avoid warnings)
[packages/calibre.git] / calibre.spec
CommitLineData
17e051e1 1#
2# NOTE:
3# Upstream packages some unfree fonts which we cannot redistribute,
4# so when upgrading calibre we should download upstream tarball by hand from
3c9d3d2b 5# http://downloads.sourceforge.net/calibre and run generate-tarball.sh script
6# included as SourceX.
17e051e1 7#
02229893 8Summary: E-book converter and library management
0e501b81 9Name: calibre
10Version: 0.6.53
bdbd4238 11Release: 0.1
6d15f615 12License: GPL v3+
02229893 13Group: Applications/Multimedia
17e051e1 14Source0: %{name}-%{version}-nofonts.tar.bz2
08290bfe 15# Source0-md5: 7ed89159bbd97db0d2dcf850bb1dd867
3c9d3d2b 16Source1: generate-tarball.sh
0e501b81 17Patch0: %{name}-prefix.patch
7b500ff7 18Patch1: %{name}-manpages.patch
804e0619 19Patch2: %{name}-no-update.patch
73a1f5ed 20Patch3: %{name}-env_module.patch
02229893 21URL: http://www.calibre-ebook.com/
0e501b81 22BuildRequires: ImageMagick-devel
23BuildRequires: chmlib-devel
24BuildRequires: podofo-devel
25BuildRequires: poppler-Qt-devel
bdbd4238 26BuildRequires: python-BeautifulSoup
307ba398 27BuildRequires: python-PIL
0e501b81 28BuildRequires: python-PyQt4-devel
29BuildRequires: python-cssutils
307ba398 30BuildRequires: python-dateutil
0e501b81 31BuildRequires: python-lxml
32BuildRequires: python-mechanize
6d15f615 33BuildRequires: python-modules-sqlite
0e501b81 34BuildRequires: python-sip-devel
35BuildRequires: rpm-pythonprov
3c9d3d2b 36BuildRequires: xdg-utils
2f356583 37Requires: python-PIL
6d15f615 38Requires: python-cssutils
2f356583 39Requires: python-dateutil
6d15f615 40Requires: python-lxml
41Requires: python-mechanize
42Requires: python-modules-sqlite
0e501b81 43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
02229893
ER
46Calibre is meant to be a complete e-library solution. It includes
47library management, format conversion, news feeds to ebook conversion
48as well as e-book reader sync features.
49
50Calibre is primarily a ebook cataloging program. It manages your ebook
51collection for you. It is designed around the concept of the logical
52book, i.e. a single entry in the database that may correspond to
53ebooks in several formats. It also supports conversion to and from a
54dozen different ebook formats.
55
56Supported input formats are: MOBI, LIT, PRC, EPUB, CHM, ODT, HTML,
57CBR, CBZ, RTF, TXT, PDF and LRS.
0e501b81 58
59%prep
60%setup -q -n %{name}
61%patch0 -p1
7b500ff7 62%patch1 -p1
804e0619 63%patch2 -p1
73a1f5ed 64%patch3 -p1
0e501b81 65
66%build
5c163f25 67%{__python} setup.py build
0e501b81 68
69%install
70rm -rf $RPM_BUILD_ROOT
71
72%{__python} setup.py install \
9c8cebf1 73 --root=$RPM_BUILD_ROOT \
5c163f25 74 --libdir="%{_libdir}"
0e501b81 75
7b500ff7 76mv $RPM_BUILD_ROOT%{_datadir}/%{name}/man $RPM_BUILD_ROOT%{_mandir}
77
0e501b81 78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%files
82%defattr(644,root,root,755)
83%doc COPYRIGHT README
84%attr(755,root,root) %{_bindir}/*
85%{_datadir}/%{name}
86%{_libdir}/%{name}
7b500ff7 87%{_mandir}/man1/*.1*
This page took 0.198891 seconds and 4 git commands to generate.