File pypoppler.spec of Package pypoppler
#
# spec file for package pypoppler (Version 0.12.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: pypoppler
Version: 0.12.1
Release: 1
License: GPLv2+
Summary: Python bindings for the Poppler PDF rendering library
Url: https://launchpad.net/poppler-python/
Group: Productivity/Other
Source: pypoppler-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig(atk)
BuildRequires: pkgconfig(poppler-glib)
BuildRequires: pkgconfig(pycairo)
BuildRequires: pkgconfig(pygtk-2.0)
%py_requires
%if 0%{?suse_version} <= 1110
%define python_sitelib %{py_sitedir}
%define python_sitearch %{py_sitearch}
%endif
%description
PyPoppler is a wrapper which exposes the poppler API to the
python world. It is fairly complete, most of the API are covered.
%package -n python-poppler
License: GPLv2+
Summary: Python bindings for the Poppler PDF rendering library
Group: Productivity/Other
Provides: %{name} = %{version}
%description -n python-poppler
PyPoppler is a wrapper which exposes the poppler API to the
python world. It is fairly complete, most of the API are covered.
%prep
%setup -q
%build
%configure
%__make %{?_smp_mflags}
%install
%makeinstall
rm -f %{buildroot}%{python_sitearch}/poppler.la
%clean
rm -rf %{buildroot}
%files -n python-poppler
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS
%{python_sitearch}/poppler.so
%changelog