]>
Commit | Line | Data |
---|---|---|
c3673592 RT |
1 | Summary: tools for accessing and converting ebook file formats |
2 | Summary(pl.UTF-8): tools for accessing and converting ebook file formats | |
98ebeb87 | 3 | Name: ebook-tools |
e4e9243b | 4 | Version: 0.1.1 |
98ebeb87 RT |
5 | Release: 1 |
6 | License: GPL v3 | |
7 | Group: X11/Libraries | |
8 | Source0: http://dl.sourceforge.net/ebook-tools/%{name}-%{version}.tar.gz | |
e4e9243b | 9 | # Source0-md5: 15946af6f946eabe8247cdef9ada2b88 |
67bc8a05 | 10 | Patch0: %{name}-lib64.patch |
d3eaba37 ER |
11 | URL: http://sourceforge.net/projects/ebook-tools |
12 | BuildRequires: cmake | |
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 | |
d3eaba37 ER |
22 | ebook-tools provides tools for accessing and converting various ebook |
23 | file formats. | |
c3673592 RT |
24 | |
25 | %package devel | |
d3eaba37 ER |
26 | Summary: ebook-tools - header files |
27 | Summary(pl.UTF-8): ebook-tools - pliki nagłówkowe | |
28 | Group: X11/Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
c3673592 RT |
30 | |
31 | %description devel | |
32 | This package contains header files for ebook-tools. | |
33 | ||
34 | %description devel -l pl.UTF-8 | |
35 | Pakiet ten zawiera pliki nagłówkowe do ebook-tools. | |
98ebeb87 RT |
36 | |
37 | %prep | |
38 | %setup -q | |
67bc8a05 | 39 | %patch0 -p0 |
98ebeb87 RT |
40 | |
41 | %build | |
be070004 | 42 | install -d build |
83856fa6 | 43 | cd build |
98ebeb87 RT |
44 | %cmake \ |
45 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
67bc8a05 | 46 | %if "%{_lib}" == "lib64" |
47 | -DLIB_SUFFIX=64 \ | |
48 | %endif | |
83856fa6 | 49 | ../ |
98ebeb87 RT |
50 | %{__make} |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
83856fa6 | 55 | %{__make} -C build install \ |
98ebeb87 RT |
56 | DESTDIR=$RPM_BUILD_ROOT |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
98ebeb87 RT |
63 | %attr(755,root,root) %{_bindir}/einfo |
64 | %attr(755,root,root) %{_bindir}/lit2epub | |
d3eaba37 | 65 | %attr(755,root,root) %ghost %{_libdir}/libepub.so.? |
c3673592 RT |
66 | %attr(755,root,root) %{_libdir}/libepub.so.*.*.* |
67 | ||
68 | %files devel | |
69 | %defattr(644,root,root,755) | |
70 | %attr(755,root,root) %{_libdir}/libepub.so | |
98ebeb87 RT |
71 | %{_includedir}/epub.h |
72 | %{_includedir}/epub_shared.h |