]>
Commit | Line | Data |
---|---|---|
66861e8f JB |
1 | Summary: Tools for accessing and converting ebook file formats |
2 | Summary(pl.UTF-8): Narzędzia do odczytu i konwersji formatów plików ebooków | |
98ebeb87 | 3 | Name: ebook-tools |
96d5d7f8 ŁK |
4 | Version: 0.2.2 |
5 | Release: 1 | |
98ebeb87 RT |
6 | License: GPL v3 |
7 | Group: X11/Libraries | |
66861e8f | 8 | Source0: http://downloads.sourceforge.net/ebook-tools/%{name}-%{version}.tar.gz |
96d5d7f8 | 9 | # Source0-md5: 67bce67ceb72dcc3578d6a81ef92b29b |
66861e8f | 10 | URL: http://ebook-tools.sourceforge.net/ |
d3eaba37 | 11 | BuildRequires: cmake |
fc78d08c | 12 | BuildRequires: libxml2-devel |
4c04c671 | 13 | BuildRequires: libzip-devel |
d3eaba37 | 14 | BuildRequires: rpmbuild(macros) >= 1.293 |
98ebeb87 RT |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
d3eaba37 ER |
18 | ebook-tools provides tools for accessing and converting various ebook |
19 | file formats. | |
98ebeb87 RT |
20 | |
21 | %description -l pl.UTF-8 | |
66861e8f JB |
22 | Pakiet ebook-tools dostarcza narzędzia do odczytu i konwersji różnych |
23 | formatów plików ebooków. | |
c3673592 RT |
24 | |
25 | %package devel | |
66861e8f JB |
26 | Summary: ebook-tools - header files for libepub library |
27 | Summary(pl.UTF-8): ebook-tools - pliki nagłówkowe biblioteki libepub | |
d3eaba37 ER |
28 | Group: X11/Development/Libraries |
29 | Requires: %{name} = %{version}-%{release} | |
c3673592 RT |
30 | |
31 | %description devel | |
66861e8f | 32 | This package contains header files for ebook-tools libepub library. |
c3673592 RT |
33 | |
34 | %description devel -l pl.UTF-8 | |
66861e8f JB |
35 | Pakiet ten zawiera pliki nagłówkowe biblioteki libepub z pakietu |
36 | ebook-tools. | |
98ebeb87 RT |
37 | |
38 | %prep | |
39 | %setup -q | |
40 | ||
41 | %build | |
be070004 | 42 | install -d build |
83856fa6 | 43 | cd build |
66861e8f | 44 | %cmake .. \ |
98ebeb87 | 45 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
fc78d08c | 46 | -DCMAKE_CXX_COMPILER_WORKS=1 \ |
47 | -DCMAKE_CXX_COMPILER="%{__cc}" \ | |
66861e8f | 48 | -DCMAKE_VERBOSE_MAKEFILE=1 \ |
67bc8a05 | 49 | %if "%{_lib}" == "lib64" |
66861e8f | 50 | -DLIB_SUFFIX=64 |
67bc8a05 | 51 | %endif |
66861e8f | 52 | |
98ebeb87 RT |
53 | %{__make} |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
83856fa6 | 58 | %{__make} -C build install \ |
98ebeb87 RT |
59 | DESTDIR=$RPM_BUILD_ROOT |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
a7b790bb PS |
64 | %post -p /sbin/ldconfig |
65 | %postun -p /sbin/ldconfig | |
66 | ||
98ebeb87 RT |
67 | %files |
68 | %defattr(644,root,root,755) | |
98ebeb87 RT |
69 | %attr(755,root,root) %{_bindir}/einfo |
70 | %attr(755,root,root) %{_bindir}/lit2epub | |
c3673592 | 71 | %attr(755,root,root) %{_libdir}/libepub.so.*.*.* |
66861e8f | 72 | %attr(755,root,root) %ghost %{_libdir}/libepub.so.0 |
c3673592 RT |
73 | |
74 | %files devel | |
75 | %defattr(644,root,root,755) | |
76 | %attr(755,root,root) %{_libdir}/libepub.so | |
98ebeb87 RT |
77 | %{_includedir}/epub.h |
78 | %{_includedir}/epub_shared.h | |
66861e8f | 79 | %{_includedir}/epub_version.h |