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