]> git.pld-linux.org Git - packages/calibre.git/blame - calibre.spec
- rel 2 (new podofo)
[packages/calibre.git] / calibre.spec
CommitLineData
17e051e1 1#
0d2e0555 2# TODO: - xdg stuff (put desktops and icons in proper place)
b856ebb4 3#
17e051e1 4# NOTE:
5# Upstream packages some unfree fonts which we cannot redistribute,
6# so when upgrading calibre we should download upstream tarball by hand from
3c9d3d2b 7# http://downloads.sourceforge.net/calibre and run generate-tarball.sh script
8# included as SourceX.
17e051e1 9#
02229893 10Summary: E-book converter and library management
cee72504 11Summary(pl.UTF-8): Konwerter oraz biblioteka dla e-booków
0e501b81 12Name: calibre
40289207 13Version: 0.7.48
d59b1a4f 14Release: 2
6d15f615 15License: GPL v3+
02229893 16Group: Applications/Multimedia
23304c7f 17Source0: %{name}-%{version}-nofonts.tar.xz
40289207 18# Source0-md5: a9e18a37709900520e0e8b4178b61777
3c9d3d2b 19Source1: generate-tarball.sh
0e501b81 20Patch0: %{name}-prefix.patch
7b500ff7 21Patch1: %{name}-manpages.patch
804e0619 22Patch2: %{name}-no-update.patch
73a1f5ed 23Patch3: %{name}-env_module.patch
ddb4b081 24Patch4: %{name}-locales.patch
02229893 25URL: http://www.calibre-ebook.com/
3b8cf9a9 26BuildRequires: ImageMagick-devel >= 6.6.4.7
0e501b81 27BuildRequires: chmlib-devel
212c1324 28BuildRequires: libicu-devel
f0879852 29BuildRequires: pkgconfig
0e501b81 30BuildRequires: podofo-devel
64b69419 31BuildRequires: poppler-Qt-devel
bdbd4238 32BuildRequires: python-BeautifulSoup
307ba398 33BuildRequires: python-PIL
0e501b81 34BuildRequires: python-PyQt4-devel
7b88f8fb 35BuildRequires: python-cssutils >= 1:0.9.7
307ba398 36BuildRequires: python-dateutil
0e501b81 37BuildRequires: python-lxml
38BuildRequires: python-mechanize
6d15f615 39BuildRequires: python-modules-sqlite
0e501b81 40BuildRequires: python-sip-devel
41BuildRequires: rpm-pythonprov
23304c7f 42BuildRequires: rpmbuild(macros) >= 1.586
ddb4b081 43BuildRequires: sed >= 4.0
212c1324 44BuildRequires: sqlite3-devel
23304c7f 45BuildRequires: tar >= 1:1.22
3c9d3d2b 46BuildRequires: xdg-utils
23304c7f 47BuildRequires: xz >= 1:4.999.7
e27d2bb7 48Requires: ImageMagick-coder-jpeg
0b8a8150 49Requires: ImageMagick-coder-png
82b553c6 50Requires: python-BeautifulSoup
2f356583 51Requires: python-PIL
6d15f615 52Requires: python-cssutils
2f356583 53Requires: python-dateutil
6d15f615 54Requires: python-lxml
55Requires: python-mechanize
56Requires: python-modules-sqlite
0e501b81 57BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58
59%description
02229893
ER
60Calibre is meant to be a complete e-library solution. It includes
61library management, format conversion, news feeds to ebook conversion
62as well as e-book reader sync features.
63
64Calibre is primarily a ebook cataloging program. It manages your ebook
65collection for you. It is designed around the concept of the logical
66book, i.e. a single entry in the database that may correspond to
67ebooks in several formats. It also supports conversion to and from a
68dozen different ebook formats.
69
70Supported input formats are: MOBI, LIT, PRC, EPUB, CHM, ODT, HTML,
71CBR, CBZ, RTF, TXT, PDF and LRS.
0e501b81 72
cee72504 73%description -l pl.UTF-8
74Calibre to bardzo dobry i darmowy program do czytania e-książek.
75
76Calibre umożliwia zarówno czytanie e-książek jak i konwersję wielu
77formatów do ich postaci. Program obsługuje następujące typy plików:
78import: LRF, PDF, LIT, RTF, OPF, MOBI, PRC, EPUB, FB2, IMP, RB i HTML
79eksport: Mobi, LRF i EPUB oraz do aplikacji iPhone-reader i Stanza.
80
81Ten czytnik e-książek oferuje również pobieranie okładek, komiksów i
82najnowszych wiadomości z serwisów poświęconym e-książkom. Twórcy
83dołączyli również aplikację, którą użytkownik może wykorzystać jako
84swój własny serwer darmowych książek.
85
62c1bf99 86%package -n bash-completion-calibre
87Summary: bash-completion for calibre
88Summary(pl.UTF-8): bashowe uzupełnianie nazw dla calibre
89Group: Applications/Shells
90Requires: %{name} = %{version}-%{release}
956f97d9 91Requires: bash-completion
62c1bf99 92
93%description -n bash-completion-calibre
94bash-completion for calibre.
95
96%description -n bash-completion-calibre -l pl.UTF-8
97Pakiet ten dostarcza bashowe uzupełnianie nazw dla calibre.
98
0e501b81 99%prep
100%setup -q -n %{name}
101%patch0 -p1
7b500ff7 102%patch1 -p1
804e0619 103%patch2 -p1
73a1f5ed 104%patch3 -p1
ddb4b081 105%patch4 -p1
0e501b81 106
107%build
5c163f25 108%{__python} setup.py build
0e501b81 109
110%install
111rm -rf $RPM_BUILD_ROOT
112
113%{__python} setup.py install \
9c8cebf1 114 --root=$RPM_BUILD_ROOT \
ab1a9c7b 115 --libdir="%{_libdir}"
0e501b81 116
ddb4b081 117# move manpages and locales to proper place
7b500ff7 118mv $RPM_BUILD_ROOT%{_datadir}/%{name}/man $RPM_BUILD_ROOT%{_mandir}
ddb4b081 119mv $RPM_BUILD_ROOT%{_datadir}/%{name}/localization/locales $RPM_BUILD_ROOT%{_datadir}/locale
120
f927ac4b 121# set proper filenames for locales (TODO: switch to patch if possible)
ddb4b081 122for file in $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/messages.mo; do
123 lang=$(echo $file|%{__sed} 's:.*locale/\(.*\)/LC_MESSAGES.*:\1:')
124 mv $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/messages.mo \
125 $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/%{name}.mo
126done;
127for file in $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/iso639.mo; do
128 lang=$(echo $file|%{__sed} 's:.*locale/\(.*\)/LC_MESSAGES.*:\1:')
129 mv $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/iso639.mo \
130 $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/%{name}_iso639.mo
131done;
ebcba4af 132for file in $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/qt.qm; do
133 lang=$(echo $file|%{__sed} 's:.*locale/\(.*\)/LC_MESSAGES.*:\1:')
134 mv $file $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/%{name}.$lang.qm
135done;
ddb4b081 136
e9035516 137%{__rm} $RPM_BUILD_ROOT%{_bindir}/%{name}-uninstall
ddb4b081 138
4113d6cb 139%find_lang %{name} --all-name --with-qm
7b500ff7 140
0e501b81 141%clean
142rm -rf $RPM_BUILD_ROOT
143
ddb4b081 144%files -f %{name}.lang
0e501b81 145%defattr(644,root,root,755)
23304c7f 146%doc Changelog.yaml COPYRIGHT README
147%attr(755,root,root) %{_bindir}/calibre
148%attr(755,root,root) %{_bindir}/calibre-complete
149%attr(755,root,root) %{_bindir}/calibre-customize
150%attr(755,root,root) %{_bindir}/calibre-debug
151%attr(755,root,root) %{_bindir}/calibre-parallel
152%attr(755,root,root) %{_bindir}/calibre-server
153%attr(755,root,root) %{_bindir}/calibre-smtp
154%attr(755,root,root) %{_bindir}/calibredb
155%attr(755,root,root) %{_bindir}/ebook-convert
156%attr(755,root,root) %{_bindir}/ebook-device
157%attr(755,root,root) %{_bindir}/ebook-meta
158%attr(755,root,root) %{_bindir}/ebook-viewer
159%attr(755,root,root) %{_bindir}/epub-fix
160%attr(755,root,root) %{_bindir}/fetch-ebook-metadata
161%attr(755,root,root) %{_bindir}/librarything
162%attr(755,root,root) %{_bindir}/lrf2lrs
163%attr(755,root,root) %{_bindir}/lrfviewer
164%attr(755,root,root) %{_bindir}/lrs2lrf
165%attr(755,root,root) %{_bindir}/markdown-calibre
166%attr(755,root,root) %{_bindir}/pdfmanipulate
167%attr(755,root,root) %{_bindir}/web2disk
0e501b81 168%{_datadir}/%{name}
169%{_libdir}/%{name}
7b500ff7 170%{_mandir}/man1/*.1*
62c1bf99 171
172%files -n bash-completion-calibre
173%defattr(644,root,root,755)
174%{_sysconfdir}/bash_completion.d/*
This page took 0.110316 seconds and 4 git commands to generate.