]> git.pld-linux.org Git - packages/calibre.git/blame - calibre.spec
- 0.7.37
[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
ceda4bc8 13Version: 0.7.37
14Release: 1
6d15f615 15License: GPL v3+
02229893 16Group: Applications/Multimedia
23304c7f 17Source0: %{name}-%{version}-nofonts.tar.xz
ceda4bc8 18# Source0-md5: ff8f4168fe8bfb60acb8035c41fadfdf
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
597f1264 35BuildRequires: python-cssutils >= 0.9.7b3
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}
91
92%description -n bash-completion-calibre
93bash-completion for calibre.
94
95%description -n bash-completion-calibre -l pl.UTF-8
96Pakiet ten dostarcza bashowe uzupełnianie nazw dla calibre.
97
0e501b81 98%prep
99%setup -q -n %{name}
100%patch0 -p1
7b500ff7 101%patch1 -p1
804e0619 102%patch2 -p1
73a1f5ed 103%patch3 -p1
ddb4b081 104%patch4 -p1
0e501b81 105
106%build
5c163f25 107%{__python} setup.py build
0e501b81 108
109%install
110rm -rf $RPM_BUILD_ROOT
111
112%{__python} setup.py install \
9c8cebf1 113 --root=$RPM_BUILD_ROOT \
ab1a9c7b 114 --libdir="%{_libdir}"
0e501b81 115
ddb4b081 116# move manpages and locales to proper place
7b500ff7 117mv $RPM_BUILD_ROOT%{_datadir}/%{name}/man $RPM_BUILD_ROOT%{_mandir}
ddb4b081 118mv $RPM_BUILD_ROOT%{_datadir}/%{name}/localization/locales $RPM_BUILD_ROOT%{_datadir}/locale
119
f927ac4b 120# set proper filenames for locales (TODO: switch to patch if possible)
ddb4b081 121for file in $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/messages.mo; do
122 lang=$(echo $file|%{__sed} 's:.*locale/\(.*\)/LC_MESSAGES.*:\1:')
123 mv $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/messages.mo \
124 $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/%{name}.mo
125done;
126for file in $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/iso639.mo; do
127 lang=$(echo $file|%{__sed} 's:.*locale/\(.*\)/LC_MESSAGES.*:\1:')
128 mv $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/iso639.mo \
129 $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/%{name}_iso639.mo
130done;
ebcba4af 131for file in $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/qt.qm; do
132 lang=$(echo $file|%{__sed} 's:.*locale/\(.*\)/LC_MESSAGES.*:\1:')
133 mv $file $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/%{name}.$lang.qm
134done;
ddb4b081 135
e9035516 136%{__rm} $RPM_BUILD_ROOT%{_bindir}/%{name}-uninstall
ddb4b081 137
4113d6cb 138%find_lang %{name} --all-name --with-qm
7b500ff7 139
0e501b81 140%clean
141rm -rf $RPM_BUILD_ROOT
142
ddb4b081 143%files -f %{name}.lang
0e501b81 144%defattr(644,root,root,755)
23304c7f 145%doc Changelog.yaml COPYRIGHT README
146%attr(755,root,root) %{_bindir}/calibre
147%attr(755,root,root) %{_bindir}/calibre-complete
148%attr(755,root,root) %{_bindir}/calibre-customize
149%attr(755,root,root) %{_bindir}/calibre-debug
150%attr(755,root,root) %{_bindir}/calibre-parallel
151%attr(755,root,root) %{_bindir}/calibre-server
152%attr(755,root,root) %{_bindir}/calibre-smtp
153%attr(755,root,root) %{_bindir}/calibredb
154%attr(755,root,root) %{_bindir}/ebook-convert
155%attr(755,root,root) %{_bindir}/ebook-device
156%attr(755,root,root) %{_bindir}/ebook-meta
157%attr(755,root,root) %{_bindir}/ebook-viewer
158%attr(755,root,root) %{_bindir}/epub-fix
159%attr(755,root,root) %{_bindir}/fetch-ebook-metadata
160%attr(755,root,root) %{_bindir}/librarything
161%attr(755,root,root) %{_bindir}/lrf2lrs
162%attr(755,root,root) %{_bindir}/lrfviewer
163%attr(755,root,root) %{_bindir}/lrs2lrf
164%attr(755,root,root) %{_bindir}/markdown-calibre
165%attr(755,root,root) %{_bindir}/pdfmanipulate
166%attr(755,root,root) %{_bindir}/web2disk
0e501b81 167%{_datadir}/%{name}
168%{_libdir}/%{name}
7b500ff7 169%{_mandir}/man1/*.1*
62c1bf99 170
171%files -n bash-completion-calibre
172%defattr(644,root,root,755)
173%{_sysconfdir}/bash_completion.d/*
This page took 0.103307 seconds and 4 git commands to generate.