source: projects/specs/trunk/e/ebook-tools/ebook-tools-vl.spec @ 5628

Revision 5628, 2.9 KB checked in by Takemikaduchi, 12 years ago (diff)

new upstream release

Line 
1Name:           ebook-tools
2Version:        0.2.1
3Release:        1%{?_dist_release}
4Summary:        Tools for accessing and converting various ebook file formats
5
6Group:          Applications/Publishing
7License:        MIT
8URL:            http://sourceforge.net/projects/%{name}
9
10Source0:        http://prdownloads.sourceforge.net/sourceforge/ebook-tools/%{name}-%{version}.tar.gz
11Patch0:         ebook-tools-0.2.1-rmhardcoded.patch
12
13BuildRoot:      %{_tmppath}/%{name}-%{version}-root
14BuildRequires:  libxml2-devel
15BuildRequires:  libzip-devel
16BuildRequires:  cmake
17Requires:       %{name}-libs = %{version}-%{release}
18
19%description
20Tools for accessing and converting various ebook file formats.
21
22%package devel
23Summary:        Development files for %{name}
24Group:          Development/Libraries
25Requires:       %{name}-libs = %{version}-%{release}
26
27%description devel
28The %{name}-devel package contains libraries and header files for
29developing applications that use %{name}.
30
31%package libs
32Summary:        Libraries for %{name}
33Group:          System Environment/Libraries
34
35%description libs
36The %{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
45mkdir build
46cd build
47CFLAGS="${CFLAGS:-%optflags}" \
48CXXFLAGS="${CXXFLAGS:-%optflags}" \
49FFLAGS="${FFLAGS:-%optflags}" \
50cmake \
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
58make
59
60%install
61rm -rf %{buildroot}
62cd build
63make install DESTDIR=%{buildroot}
64#remove because it doesnt work without clit
65rm -f %{buildroot}%{_bindir}/lit2epub
66
67%clean
68rm -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* Sun Feb 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.2.1-1
91- update to 0.2.1
92- update Patch0 (ebook-tools-0.2.1-rmhardcoded.patch)
93
94* Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1.1-6
95- Initial build for Vine Linux
96
97* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-5
98- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
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* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-4
104- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
105
106* Sat Jan 24 2009 John5342 <john5342 at, fedoraproject.org> 0.1.1-3
107- Actually remove lit2epub this time
108
109* Mon Dec 15 2008 John5342 <john5342 at, fedoraproject.org> 0.1.1-2
110- Removed lit2epub as it doesnt work without clit
111
112* Mon Dec 15 2008 John5342 <john5342 at, fedoraproject.org> 0.1.1-1
113- Initial package
Note: See TracBrowser for help on using the repository browser.