diff --git a/.gitignore b/.gitignore index 0a1bc8f..166e3fe 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ pystatgrab-0.5.tar.gz +/pystatgrab-0.6.tar.gz diff --git a/pystatgrab.spec b/pystatgrab.spec index 0b1f541..760bded 100644 --- a/pystatgrab.spec +++ b/pystatgrab.spec @@ -1,34 +1,65 @@ +%global srcname pystatgrab +%global sum Python bindings for libstatgrab + Name: pystatgrab -Version: 0.5 -Release: 17%{?dist} -Summary: Python bindings for libstatgrab +Version: 0.6 +Release: 1%{?dist} +Summary: %{sum} License: GPLv2+ URL: http://www.i-scream.org/pystatgrab/ Source0: ftp://ftp.i-scream.org/pub/i-scream/pystatgrab/%{name}-%{version}.tar.gz BuildRequires: python2-devel +BuildRequires: python3-devel BuildRequires: libstatgrab-devel +Provides: pystatgrab = %{version}-%{release} +Obsoletes: pystatgrab < 0.5 + %description Pystatgrab contains Python bindings for libstatgrab. +%package -n python2-%{name} +Summary: %{sum} +%{?python_provide:%python_provide python2-%{name}} + +%description -n python2-%{name} +Pystatgrab contains Python bindings for libstatgrab. + +%package -n python3-%{name} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{name}} + +%description -n python3-%{name} +Pystatgrab contains Python bindings for libstatgrab. + %prep -%setup -q +%autosetup -n %{srcname}-%{version} %build -CFLAGS="%{optflags}" %{__python2} setup.py build +%py2_build +%py3_build %install -%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} +%py2_install +%py3_install -%files -%doc AUTHORS ChangeLog COPYING NEWS README -%{python2_sitearch}/pystatgrab-0.5-py?.?.egg-info -%{python2_sitearch}/statgrab.py* -%{python2_sitearch}/_statgrab.so +%files -n python2-%{name} +%doc AUTHORS ChangeLog NEWS README +%license COPYING +%{python2_sitearch}/ + +%files -n python3-%{name} +%doc AUTHORS ChangeLog NEWS README +%license COPYING +%{python3_sitearch}/ %changelog +* Fri Mar 25 2016 Fabian Affolter - 0.6-1 +- Update for py3 +- UPdate to latest upstream release 0.6 + * Thu Feb 04 2016 Fedora Release Engineering - 0.5-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index cbd4238..fc650b7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b7a3451ba682ebf167fcb43f1769a121 pystatgrab-0.5.tar.gz +3e9c6ce5723805585d01e4e26171798c pystatgrab-0.6.tar.gz