forked from pool/python-djvulibre
bea61824e2
please add python-djvulibre OBS-URL: https://build.opensuse.org/request/show/83007 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-djvulibre?expand=0&rev=1
56 lines
1.3 KiB
RPMSpec
56 lines
1.3 KiB
RPMSpec
#
|
|
# spec file for package python-djvulibre (Version 0.3.3)
|
|
#
|
|
# Copyright (c) 2010, 2011 Kyrill Detinov
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
|
|
Name: python-djvulibre
|
|
Version: 0.3.3
|
|
Release: 0
|
|
License: GPL-2.0
|
|
Summary: Python Support for the DjVu Image Format
|
|
URL: http://jwilk.net/software/python-djvulibre
|
|
Group: Development/Libraries/Python
|
|
Source0: http://pypi.python.org/packages/source/p/python-djvulibre/%{name}-%{version}.tar.gz
|
|
BuildRequires: libdjvulibre-devel
|
|
BuildRequires: pkg-config
|
|
BuildRequires: python-Cython
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-setuptools
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
|
%py_requires
|
|
|
|
%description
|
|
python-djvulibre is a set of Python bindings for the DjVuLibre library,
|
|
an open source implementation of DjVu.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Jakub Wilk <jwilk@jwilk.net>
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
%__python setup.py build
|
|
|
|
%install
|
|
%__python setup.py install \
|
|
--root=%{buildroot} \
|
|
--prefix=%{_prefix} \
|
|
--record-rpm=INSTALLED_FILES
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files -f INSTALLED_FILES
|
|
%defattr(-,root,root,-)
|
|
%doc doc/changelog examples
|
|
|
|
%changelog
|