Blob Blame Raw
%global srcname pystatgrab

Name:           pystatgrab
Version:        0.7
Release:        18%{?dist}
Summary:        Python bindings for libstatgrab

License:        LGPLv2+
URL:            http://www.i-scream.org/pystatgrab/
Source0:        https://ftp.i-scream.org/pub/i-scream/pystatgrab/%{name}-%{version}.tar.gz

BuildRequires:  gcc
BuildRequires:  libstatgrab-devel > 0.90

%description
Pystatgrab contains Python bindings for libstatgrab.

%package -n python3-%{name}
Summary:        %{sumumary}

BuildRequires:  python3-Cython
BuildRequires:  python3-devel
%{?python_provide:%python_provide python3-%{name}}

%description -n python3-%{name}
Pystatgrab contains Python bindings for libstatgrab.

%prep
%autosetup -n %{srcname}-%{version}

%build
rm -rf statgrab.c
%py3_build

%install
%py3_install

%check
PYTHONPATH=%{buildroot}/%{python3_sitearch} %{__python3} test.py

%files -n python3-%{name}
%doc AUTHORS NEWS README
%license COPYING.LGPL
%{python3_sitearch}/*

%changelog
* Sat Aug 31 2019 Fabian Affolter <mail@fabian-affolter.ch> - 0.7-18
- Remove Python 2 subpackage (rhbz#1746756)

* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7-17
- Rebuilt for Python 3.8

* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Tue Jun 04 2019 Tim Orling <ticotimo@gmail.com> - 0.7-15
- Fix build for rawhide and python 3.8 (rhbz#1716485) 

* Sat Mar 23 2019 Fabian Affolter <mail@fabian-affolter.ch> - 0.7-14
- Fix ownership (rhbz#1672099)

* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Fri Jul 06 2018 Tim Orling <ticotimo@gmail.com> - 0.7-11
- Remove bundled statgrab.c so cython will generate it
- Drop unnecessary Provides/Obsoletes

* Fri Jul 06 2018 Tim Orling <ticotimo@gmail.com> - 0.7-10
- Add python[2,3]-Cython to BuildRequires
- Remove bundled statgrab.c before python3 build
- Fixes FTBFS on python3.7 (changes in tstate API)

* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7-9
- Rebuilt for Python 3.7

* Sat Feb 24 2018 Tim Orling <ticotimo@gmail.com> - 0.7-8
- Add gcc to BuildRequires
- Use https for Source0
- Add rpmlint filters for spelling errors

* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7-3
- Rebuild for Python 3.6

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Wed Apr 13 2016 Tim Orling <ticotimo@gmail.com> - 0.7-1
- Upstream bump to 0.7 for python3 fixes
- Drop merged patch

* Sun Mar 27 2016 Tim Orling <ticotimo@gmail.com> - 0.6-2
- Add patch to fix pkg-config bytes to string exception
- whitespace cleanup

* Fri Mar 25 2016 Fabian Affolter <mail@fabian-affolter.ch> - 0.6-1
- Update for py3
- Update to latest upstream release 0.6

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Mon Sep 16 2013 Fabian Affolter <mail@fabian-affolter.ch> - 0.5-13
- Spec file update
- Rebuild against libstatgrab 0.90

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.5-7
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5-4
- Fix locations for Python 2.6

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5-3
- Rebuild for Python 2.6

* Sun Sep 28 2008 Soumya Chakraborty <soumya@fedoraproject.org> 0.5-2
- Changed from the noarch package to sitearch package and changed the name from python-statgrab to pystatgrab.

* Wed Aug 13 2008 Soumya Chakraborty <soumya@fedoraproject.org> 0.5-1
- Initial Package Release