2011-09-19 08:33:45 +02:00
|
|
|
#
|
2011-10-23 09:49:44 +02:00
|
|
|
# spec file for package python-djvulibre
|
2011-09-19 08:33:45 +02:00
|
|
|
#
|
2012-02-19 11:14:44 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-10-23 09:49:44 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2011-09-19 08:33:45 +02:00
|
|
|
#
|
|
|
|
|
2012-03-14 15:41:33 +01:00
|
|
|
|
2011-09-19 08:33:45 +02:00
|
|
|
Name: python-djvulibre
|
2012-03-19 07:51:20 +01:00
|
|
|
Version: 0.3.8
|
2011-09-19 08:33:45 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Python Support for the DjVu Image Format
|
2012-03-14 15:41:33 +01:00
|
|
|
License: GPL-2.0+
|
2011-09-19 08:33:45 +02:00
|
|
|
Group: Development/Libraries/Python
|
2012-03-14 15:41:33 +01:00
|
|
|
Url: http://jwilk.net/software/python-djvulibre
|
2011-11-24 20:01:18 +01:00
|
|
|
Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
2011-10-23 09:49:44 +02:00
|
|
|
BuildRequires: graphviz
|
|
|
|
BuildRequires: graphviz-gnome
|
2011-09-19 08:33:45 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: python-Cython
|
|
|
|
BuildRequires: python-devel
|
2011-10-23 09:49:44 +02:00
|
|
|
BuildRequires: python-distribute
|
|
|
|
# Starting openSUSE 12.1 the package name is python-Sphinx.
|
|
|
|
BuildRequires: python-sphinx
|
2012-02-19 11:14:44 +01:00
|
|
|
BuildRequires: pkgconfig(ddjvuapi)
|
2011-10-23 09:49:44 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-09-19 08:33:45 +02:00
|
|
|
%py_requires
|
|
|
|
|
|
|
|
%description
|
|
|
|
python-djvulibre is a set of Python bindings for the DjVuLibre library,
|
|
|
|
an open source implementation of DjVu.
|
|
|
|
|
2011-10-23 09:49:44 +02:00
|
|
|
%package doc
|
|
|
|
Summary: Python Support for the DjVu Image Format (Documentation)
|
|
|
|
Group: Documentation/HTML
|
|
|
|
BuildArch: noarch
|
2011-09-19 08:33:45 +02:00
|
|
|
|
2011-10-23 09:49:44 +02:00
|
|
|
%description doc
|
|
|
|
python-djvulibre is a set of Python bindings for the DjVuLibre library,
|
|
|
|
an open source implementation of DjVu.
|
2011-09-19 08:33:45 +02:00
|
|
|
|
2011-10-23 09:49:44 +02:00
|
|
|
This package contains technical documentation.
|
2011-09-19 08:33:45 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-02-19 11:14:44 +01:00
|
|
|
chmod -x examples/*
|
2011-09-19 08:33:45 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
2011-10-23 09:49:44 +02:00
|
|
|
python setup.py build
|
|
|
|
python setup.py build_sphinx
|
2011-09-19 08:33:45 +02:00
|
|
|
|
|
|
|
%install
|
2011-10-23 09:49:44 +02:00
|
|
|
python setup.py install \
|
2011-11-24 20:01:18 +01:00
|
|
|
--root=%{buildroot} \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--record-rpm=INSTALLED_FILES
|
2011-10-23 09:49:44 +02:00
|
|
|
install -dm 0755 %{buildroot}%{_defaultdocdir}/%{name}-doc/_images
|
|
|
|
install -dm 0755 %{buildroot}%{_defaultdocdir}/%{name}-doc/_static
|
|
|
|
install -m 0644 build/sphinx/html/{*.html,*.js} \
|
|
|
|
%{buildroot}%{_defaultdocdir}/%{name}-doc
|
|
|
|
install -m 0644 build/sphinx/html/_images/* \
|
|
|
|
%{buildroot}%{_defaultdocdir}/%{name}-doc/_images
|
|
|
|
install -m 0644 build/sphinx/html/_static/* \
|
|
|
|
%{buildroot}%{_defaultdocdir}/%{name}-doc/_static
|
2011-09-19 08:33:45 +02:00
|
|
|
|
|
|
|
%files -f INSTALLED_FILES
|
|
|
|
%defattr(-,root,root,-)
|
2011-10-23 09:49:44 +02:00
|
|
|
%doc COPYING doc/changelog examples
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc %{_defaultdocdir}/%{name}-doc
|
2011-09-19 08:33:45 +02:00
|
|
|
|
|
|
|
%changelog
|