docbook2epub-vl.spec 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. BuildRequires: python-devel >= 2.4
  11. BuildRequires: python-setuptools unzip
  12. Requires: python-lxml docbook-style-xsl >= 1.74.2
  13. BuildArch: noarch
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. Packager: iwaim
  17. %description
  18. docbook2epub is a Python/XSLT application to convert a DocBook XML document to ePub.
  19. %prep
  20. %setup -q -n %{name}
  21. %build
  22. %__python setup.py build
  23. %install
  24. %__rm -rf %{buildroot}
  25. %__python setup.py install --root=%{buildroot}
  26. pushd epubtools
  27. %__python setup.py install --root=%{buildroot}
  28. popd
  29. %clean
  30. %__rm -rf %{buildroot}
  31. %files
  32. %defattr(-,root,root,-)
  33. %{_bindir}/db2epub.py
  34. %{python_sitelib}/docbook2epub*
  35. %{python_sitelib}/epubtools*
  36. %changelog
  37. * Fri Apr 8 2011 IWAI, Masaharu <iwai@alib.jp> 1.0.4-1
  38. - Initial build.