Revision 3341, 1.1 KB checked in by iwaim, 13 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[3341] | 1 | Summary: a Python/XSLT application to convert a DocBook XML document to ePub |
2 | Name: docbook2epub | |
3 | Version: 1.0.4 | |
4 | Release: 1%{?_dist_release} | |
5 | License: New BSD License | |
6 | Group: Applications/Publishing | |
7 | URL: http://code.google.com/p/epub-tools/ | |
8 | Source0: http://epub-tools.googlecode.com/files/%{name}-%{version}.zip | |
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot | |
10 | ||
11 | BuildRequires: python-devel >= 2.4 | |
12 | BuildRequires: python-setuptools unzip | |
13 | Requires: python-lxml docbook-style-xsl >= 1.74.2 | |
14 | ||
15 | BuildArch: noarch | |
16 | ||
17 | Vendor: Project Vine | |
18 | Distribution: Vine Linux | |
19 | Packager: iwaim | |
20 | ||
21 | %description | |
22 | docbook2epub is a Python/XSLT application to convert a DocBook XML document to ePub. | |
23 | ||
24 | %prep | |
25 | %setup -q -n %{name} | |
26 | ||
27 | %build | |
28 | %__python setup.py build | |
29 | ||
30 | %install | |
31 | %__rm -rf %{buildroot} | |
32 | %__python setup.py install --root=%{buildroot} | |
33 | pushd epubtools | |
34 | %__python setup.py install --root=%{buildroot} | |
35 | popd | |
36 | ||
37 | %clean | |
38 | %__rm -rf %{buildroot} | |
39 | ||
40 | %files | |
41 | %defattr(-,root,root,-) | |
42 | %{_bindir}/db2epub.py | |
43 | %{python_sitelib}/docbook2epub* | |
44 | %{python_sitelib}/epubtools* | |
45 | ||
46 | %changelog | |
47 | * Fri Apr 8 2011 IWAI, Masaharu <iwai@alib.jp> 1.0.4-1 | |
48 | - Initial build. | |
49 | ||
50 |