1 | Name: ebook-tools |
---|
2 | Version: 0.2.1 |
---|
3 | Release: 2%{?_dist_release} |
---|
4 | Summary: Tools for accessing and converting various ebook file formats |
---|
5 | |
---|
6 | Group: Applications/Publishing |
---|
7 | License: MIT |
---|
8 | URL: http://sourceforge.net/projects/%{name} |
---|
9 | |
---|
10 | Source0: http://prdownloads.sourceforge.net/sourceforge/ebook-tools/%{name}-%{version}.tar.gz |
---|
11 | Patch0: ebook-tools-0.2.1-rmhardcoded.patch |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildRequires: libxml2-devel |
---|
15 | BuildRequires: libzip-devel |
---|
16 | BuildRequires: cmake |
---|
17 | Requires: %{name}-libs = %{version}-%{release} |
---|
18 | |
---|
19 | %description |
---|
20 | Tools for accessing and converting various ebook file formats. |
---|
21 | |
---|
22 | %package devel |
---|
23 | Summary: Development files for %{name} |
---|
24 | Group: Development/Libraries |
---|
25 | Requires: %{name}-libs = %{version}-%{release} |
---|
26 | |
---|
27 | %description devel |
---|
28 | The %{name}-devel package contains libraries and header files for |
---|
29 | developing applications that use %{name}. |
---|
30 | |
---|
31 | %package libs |
---|
32 | Summary: Libraries for %{name} |
---|
33 | Group: System Environment/Libraries |
---|
34 | |
---|
35 | %description libs |
---|
36 | The %{name}-libs package contains libraries to be used by |
---|
37 | %{name} and others. |
---|
38 | |
---|
39 | %prep |
---|
40 | %setup -q |
---|
41 | %patch0 -p1 |
---|
42 | |
---|
43 | |
---|
44 | %build |
---|
45 | mkdir build |
---|
46 | cd build |
---|
47 | CFLAGS="${CFLAGS:-%optflags}" \ |
---|
48 | CXXFLAGS="${CXXFLAGS:-%optflags}" \ |
---|
49 | FFLAGS="${FFLAGS:-%optflags}" \ |
---|
50 | cmake \ |
---|
51 | -DCMAKE_BUILD_TYPE=release \ |
---|
52 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
53 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
54 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \ |
---|
55 | -DDATA_INSTALL_DIR:PATH=%{_datadir} \ |
---|
56 | .. |
---|
57 | |
---|
58 | make |
---|
59 | |
---|
60 | %install |
---|
61 | rm -rf %{buildroot} |
---|
62 | cd build |
---|
63 | make install DESTDIR=%{buildroot} |
---|
64 | #remove because it doesnt work without clit |
---|
65 | rm -f %{buildroot}%{_bindir}/lit2epub |
---|
66 | |
---|
67 | %clean |
---|
68 | rm -rf %{buildroot} |
---|
69 | |
---|
70 | %post libs -p /sbin/ldconfig |
---|
71 | |
---|
72 | %postun libs -p /sbin/ldconfig |
---|
73 | |
---|
74 | %files |
---|
75 | %defattr(-,root,root,-) |
---|
76 | %doc |
---|
77 | %{_bindir}/einfo |
---|
78 | |
---|
79 | %files devel |
---|
80 | %defattr(-,root,root,-) |
---|
81 | %{_libdir}/*.so |
---|
82 | %{_includedir}/* |
---|
83 | |
---|
84 | %files libs |
---|
85 | %defattr(-,root,root,-) |
---|
86 | %doc README LICENSE |
---|
87 | %{_libdir}/*.so.* |
---|
88 | |
---|
89 | %changelog |
---|
90 | * Thu Jan 18 2018 Toshiaki Ara <ara_t@384.jp> - 0.2.1-2 |
---|
91 | - rebuild under current VineSeed |
---|
92 | |
---|
93 | * Sun Feb 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.2.1-1 |
---|
94 | - update to 0.2.1 |
---|
95 | - update Patch0 (ebook-tools-0.2.1-rmhardcoded.patch) |
---|
96 | |
---|
97 | * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1.1-6 |
---|
98 | - Initial build for Vine Linux |
---|
99 | |
---|
100 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-5 |
---|
101 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
102 | |
---|
103 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-5 |
---|
104 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
105 | |
---|
106 | * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-4 |
---|
107 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
108 | |
---|
109 | * Sat Jan 24 2009 John5342 <john5342 at, fedoraproject.org> 0.1.1-3 |
---|
110 | - Actually remove lit2epub this time |
---|
111 | |
---|
112 | * Mon Dec 15 2008 John5342 <john5342 at, fedoraproject.org> 0.1.1-2 |
---|
113 | - Removed lit2epub as it doesnt work without clit |
---|
114 | |
---|
115 | * Mon Dec 15 2008 John5342 <john5342 at, fedoraproject.org> 0.1.1-1 |
---|
116 | - Initial package |
---|