forked from pool/python-httplib2
cleaned up specfile
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httplib2?expand=0&rev=14
This commit is contained in:
parent
dbc0577cf4
commit
fae378746f
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-httplib2
|
# spec file for package python-httplib2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -19,42 +19,34 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-httplib2
|
Name: python-httplib2
|
||||||
BuildRequires: python-devel
|
|
||||||
Summary: A Python HTTP library
|
|
||||||
Version: 0.7.2
|
Version: 0.7.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Source0: httplib2-%{version}.tar.gz
|
Url: http://bitworking.org/projects/httplib2/
|
||||||
|
Summary: A Python HTTP client library
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
|
Source0: httplib2-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Url: http://bitworking.org/projects/httplib2/
|
BuildRequires: python-devel
|
||||||
%define prefix /usr
|
%if 0%{?suse_version}
|
||||||
%py_requires
|
%py_requires
|
||||||
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
%if 0%{?suse_version} > 1110
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A comprehensive python HTTP client library, which supports many
|
A comprehensive HTTP client library that supports many features
|
||||||
features left out of other HTTP libraries.
|
left out of other HTTP libraries.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Joe Gregorio <joe@bitworking.org>
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n httplib2-%{version}
|
%setup -q -n httplib2-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files -f INSTALLED_FILES
|
%files -f INSTALLED_FILES
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user