]> git.pld-linux.org Git - packages/ebook-tools.git/blob - ebook-tools.spec
- BR: libxml2-devel
[packages/ebook-tools.git] / ebook-tools.spec
1 Summary:        tools for accessing and converting ebook file formats
2 Summary(pl.UTF-8):      tools for accessing and converting ebook file formats
3 Name:           ebook-tools
4 Version:        0.1.1
5 Release:        2
6 License:        GPL v3
7 Group:          X11/Libraries
8 Source0:        http://dl.sourceforge.net/ebook-tools/%{name}-%{version}.tar.gz
9 # Source0-md5:  15946af6f946eabe8247cdef9ada2b88
10 Patch0:         %{name}-lib64.patch
11 URL:            http://sourceforge.net/projects/ebook-tools
12 BuildRequires:  cmake
13 BuildRequires:  libxml2-devel
14 BuildRequires:  libzip-devel
15 BuildRequires:  rpmbuild(macros) >= 1.293
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 ebook-tools provides tools for accessing and converting various ebook
20 file formats.
21
22 %description -l pl.UTF-8
23 ebook-tools provides tools for accessing and converting various ebook
24 file formats.
25
26 %package devel
27 Summary:        ebook-tools - header files
28 Summary(pl.UTF-8):      ebook-tools - pliki nagłówkowe
29 Group:          X11/Development/Libraries
30 Requires:       %{name} = %{version}-%{release}
31
32 %description devel
33 This package contains header files for ebook-tools.
34
35 %description devel -l pl.UTF-8
36 Pakiet ten zawiera pliki nagłówkowe do ebook-tools.
37
38 %prep
39 %setup -q
40 %patch0 -p0
41
42 %build
43 install -d build
44 cd build
45 %cmake \
46         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
47         -DCMAKE_CXX_COMPILER_WORKS=1 \
48         -DCMAKE_CXX_COMPILER="%{__cc}" \
49 %if "%{_lib}" == "lib64"
50         -DLIB_SUFFIX=64 \
51 %endif
52         ../
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} -C build install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post   -p /sbin/ldconfig
65 %postun -p /sbin/ldconfig
66
67 %files
68 %defattr(644,root,root,755)
69 %attr(755,root,root) %{_bindir}/einfo
70 %attr(755,root,root) %{_bindir}/lit2epub
71 %attr(755,root,root) %ghost %{_libdir}/libepub.so.?
72 %attr(755,root,root) %{_libdir}/libepub.so.*.*.*
73
74 %files devel
75 %defattr(644,root,root,755)
76 %attr(755,root,root) %{_libdir}/libepub.so
77 %{_includedir}/epub.h
78 %{_includedir}/epub_shared.h
This page took 0.065031 seconds and 4 git commands to generate.