# $POEM$ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %global oname httpheader Name: python-httpheader Version: 1.1 Release: poem%{?dist} Summary: a Python module to deal with HTTP headers and content negotiation Group: Development/Languages License: LGPLv2+ URL: http://deron.meranda.us/python/httpheader/ Source0: http://deron.meranda.us/python/httpheader/dist/httpheader-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel, python-setuptools %description httpheader provides some utility functions useful for parsing and dealing with some of the HTTP 1.1 protocol headers which are not adequately covered by the standard Python libraries, %prep %setup -q -n %{oname}-%{version} %build CFLAGS="%{optflags}" %{__python} setup.py build %install %{__rm} -rf %{buildroot} %{__python} setup.py install --skip-build --root="%{buildroot}" --prefix="%{_prefix}" %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc CHANGES.txt LICENSE.txt README.txt # For arch-independent packages: sitelib %{python_sitelib}/* %changelog * Sun May 29 2016 Yasuhito FUTATSUKI - 1.1 - Rebuild for CentOS 7 * Mon May 23 2016 Yasuhito FUTATSUKI - 1.1 - Initial build.