Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:thomas-schraitle
docbook2epub
docbook2epub.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File docbook2epub.spec of Package docbook2epub
# # spec file for package docbook2epub # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define _version 1.0.4 %define unmangled_version 1.0.4 %define epubdir /usr/share/epubcheck/ Summary: Converts DocBook 4/5 documents into EPUB Name: docbook2epub Version: %{_version} Release: 1 Source0: %{name}-%{unmangled_version}.zip Source1: %{name}-rpmlintrc # Patch1: %%{name}-settings.py.diff Patch2: %{name}-epubtools-settings.py.diff License: New BSD Group: Productivity/Other BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: python-lxml python-setuptools unzip BuildRequires: epubcheck Requires: python-lxml docbook-xsl-stylesheets Recommends: docbook5-xsl-stylesheets >= 1.74.0 Vendor: Liza Daly <liza@threepress.org> Url: http://code.google.com/p/epub-tools/ %if 0%{?suse_version} %py_requires %if 0%{?suse_version} > 1110 BuildArch: noarch %endif %endif %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %description epub-tools is a collection of open source (BSD) tools for generating and managing ePub documents. Developers are encouraged to try out the tools and implement them in their own projects. Interested parties should contact liza@threepress.org. epub-tools is part of the threepress project. docbook2epub is a Python/XSLT application to convert a DocBook XML document to ePub. %prep %setup -n %{name} # %%patch1 -p0 %patch2 -p1 sed -i "s_\@EPUBDIR\@_%{epubdir}_" epubtools/epubtools/settings.py %build %{__python} setup.py build (cd epubtools; %{__python} setup.py build ) %install %{__python} setup.py install \ --root=$RPM_BUILD_ROOT \ --prefix=%{_prefix} \ --record-rpm=INSTALLED_FILES-docbook2epub (cd epubtools; %{__python} setup.py install \ --root=$RPM_BUILD_ROOT \ --prefix=%{_prefix} \ --record-rpm=../INSTALLED_FILES-epubtools ) cat INSTALLED_FILES-docbook2epub INSTALLED_FILES-epubtools \ > INSTALLED_FILES %clean %{__rm} -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root) %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor