]>
Commit | Line | Data |
---|---|---|
02229893 ER |
1 | # TODO |
2 | # - Upstream packages some unfree fonts which we cannot redistribute - use | |
3 | # tarball from fc or rip their script. | |
4 | Summary: E-book converter and library management | |
0e501b81 | 5 | Name: calibre |
6 | Version: 0.6.53 | |
bdbd4238 | 7 | Release: 0.1 |
6d15f615 | 8 | License: GPL v3+ |
02229893 | 9 | Group: Applications/Multimedia |
0e501b81 | 10 | Source0: http://status.calibre-ebook.com/dist/src/%{name}-%{version}.tar.gz |
11 | # Source0-md5: 42255d2eb55d1a047d74d3dbb0d0f355 | |
12 | Patch0: %{name}-prefix.patch | |
02229893 | 13 | URL: http://www.calibre-ebook.com/ |
0e501b81 | 14 | BuildRequires: ImageMagick-devel |
15 | BuildRequires: chmlib-devel | |
16 | BuildRequires: podofo-devel | |
17 | BuildRequires: poppler-Qt-devel | |
bdbd4238 | 18 | BuildRequires: python-BeautifulSoup |
0e501b81 | 19 | BuildRequires: python-PyQt4-devel |
20 | BuildRequires: python-cssutils | |
21 | BuildRequires: python-lxml | |
22 | BuildRequires: python-mechanize | |
6d15f615 | 23 | BuildRequires: python-modules-sqlite |
0e501b81 | 24 | BuildRequires: python-sip-devel |
25 | BuildRequires: rpm-pythonprov | |
6d15f615 | 26 | Requires: python-cssutils |
27 | Requires: python-lxml | |
28 | Requires: python-mechanize | |
29 | Requires: python-modules-sqlite | |
0e501b81 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
02229893 ER |
33 | Calibre is meant to be a complete e-library solution. It includes |
34 | library management, format conversion, news feeds to ebook conversion | |
35 | as well as e-book reader sync features. | |
36 | ||
37 | Calibre is primarily a ebook cataloging program. It manages your ebook | |
38 | collection for you. It is designed around the concept of the logical | |
39 | book, i.e. a single entry in the database that may correspond to | |
40 | ebooks in several formats. It also supports conversion to and from a | |
41 | dozen different ebook formats. | |
42 | ||
43 | Supported input formats are: MOBI, LIT, PRC, EPUB, CHM, ODT, HTML, | |
44 | CBR, CBZ, RTF, TXT, PDF and LRS. | |
0e501b81 | 45 | |
46 | %prep | |
47 | %setup -q -n %{name} | |
48 | %patch0 -p1 | |
49 | ||
50 | %build | |
51 | %{__python} setup.py build | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__python} setup.py install \ | |
57 | --root=$RPM_BUILD_ROOT | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc COPYRIGHT README | |
65 | %attr(755,root,root) %{_bindir}/* | |
66 | %{_datadir}/%{name} | |
67 | %{_libdir}/%{name} |