File python-curl.spec of Package python-curl
#
# spec file for package python-curl (Version 7.19.0)
#
# 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/
#
# norootforbuild
Name: python-curl
BuildRequires: libcurl-devel >= 7.19.0
BuildRequires: openssl-devel python-devel
Version: 7.19.0
Release: 1
Summary: Python module interface to the cURL library
Source: pycurl-%{version}.tar.bz2
Patch0: pycurl-7.18.1-nostaticlibs.patch
Url: http://pycurl.sourceforge.net/
Group: Development/Libraries/Python
License: LGPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%description
PycURL is a Python module interface to the cURL library. PycURL can be
used to fetch objects identified by an URL within a Python program.
Authors:
--------
Kjetil Jacobsen <kjetilja@gmail.com>
Markus F.X.J. Oberhumer <markus@oberhumer.com>
%package doc
License: LGPL
Summary: Documentation for python-curl
Group: Development/Libraries/Python
Requires: %name = %version
%description doc
PycURL is a Python module interface to the cURL library. PycURL can be
used to fetch objects identified by an URL within a Python program.
This package contains documentation and examples.
Authors:
--------
Kjetil Jacobsen <kjetilja@gmail.com>
Markus F.X.J. Oberhumer <markus@oberhumer.com>
%prep
%setup -q -n pycurl-%{version}
%patch0
%build
export CFLAGS="$RPM_OPT_FLAGS"
python ./setup.py build
%install
python ./setup.py install --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc ChangeLog COPYING README TODO
%{py_sitedir}/pycurl.so
%{py_sitedir}/curl
%if %{suse_version} > 1010
%{py_sitedir}/*.egg-info
%endif
%files doc
%defattr(-,root,root)
%doc examples doc/*.html
%changelog