]> git.pld-linux.org Git - packages/ebook-tools.git/blob - ebook-tools.spec
- fix 64bit build
[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:        1
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:  libzip-devel
14 BuildRequires:  rpmbuild(macros) >= 1.293
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 ebook-tools provides tools for accessing and converting various ebook
19 file formats.
20
21 %description -l pl.UTF-8
22 ebook-tools provides tools for accessing and converting various ebook
23 file formats.
24
25 %package devel
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}
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.
36
37 %prep
38 %setup -q
39 %patch0 -p0
40
41 %build
42 install -d build
43 cd build
44 %cmake \
45         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
46 %if "%{_lib}" == "lib64"
47         -DLIB_SUFFIX=64 \
48 %endif
49         ../
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} -C build install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_bindir}/einfo
64 %attr(755,root,root) %{_bindir}/lit2epub
65 %attr(755,root,root) %ghost %{_libdir}/libepub.so.?
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
71 %{_includedir}/epub.h
72 %{_includedir}/epub_shared.h
This page took 0.079124 seconds and 4 git commands to generate.