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