Orion Poplawski 9a527a
%global srcname pycosat
Orion Poplawski 9a527a
%global sum Python bindings to picosat (a SAT solver)
Orion Poplawski 9a527a
%global pkgdesc \
Orion Poplawski 9a527a
PicoSAT is a popular SAT solver written by Armin Biere in pure C. This \
Orion Poplawski 9a527a
package provides efficient Python bindings to picosat on the C level, i.e. \
Orion Poplawski 9a527a
when importing pycosat, the picosat solver becomes part of the Python process \
Orion Poplawski 9a527a
itself.
Orion Poplawski 9a527a
Orion Poplawski 9a527a
Name:           python-%{srcname}
63cab0
Version:        0.6.3
4c5bea
Release:        13%{?dist}
Orion Poplawski 9a527a
Summary:        %{sum}
Orion Poplawski 9a527a
Orion Poplawski 9a527a
License:        MIT
63cab0
URL:            https://github.com/ContinuumIO/%{srcname}
63cab0
Source0:        https://github.com/ContinuumIO/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
Orion Poplawski 9a527a
f60b22
BuildRequires:  gcc
Orion Poplawski 9a527a
BuildRequires:  picosat-devel
Orion Poplawski 9a527a
Orion Poplawski 9a527a
%description
Orion Poplawski 9a527a
%{pkgdesc}
Orion Poplawski 9a527a
Orion Poplawski 6d31db
%package -n python%{python3_pkgversion}-%{srcname}
Orion Poplawski 9a527a
Summary:        %{sum}
Orion Poplawski 6d31db
BuildRequires:  python%{python3_pkgversion}-devel
bc16bb
BuildRequires:  python%{python3_pkgversion}-setuptools
Orion Poplawski 6d31db
BuildRequires:  python%{python3_pkgversion}-pytest
Orion Poplawski 6d31db
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
Orion Poplawski 9a527a
Orion Poplawski 6d31db
%description -n python%{python3_pkgversion}-%{srcname}
Orion Poplawski 9a527a
%{pkgdesc}
Orion Poplawski 9a527a
Orion Poplawski 9a527a
Orion Poplawski 9a527a
%prep
Orion Poplawski 9a527a
%setup -q -n %{srcname}-%{version}
Orion Poplawski 9a527a
sed -i -e s/distutils.core/setuptools/ setup.py
Orion Poplawski 9a527a
rm picosat.*
Orion Poplawski 9a527a
5be6ac
# upstream only applies proper flags when build is invoked with --inplace
5be6ac
sed -i "s/if '--inplace' in sys.argv:/if True:/" setup.py
5be6ac
Orion Poplawski 9a527a
%build
5be6ac
%py3_build
Orion Poplawski 9a527a
Orion Poplawski 9a527a
%install
63cab0
%py3_install
Orion Poplawski 9a527a
Orion Poplawski 9a527a
%check
Orion Poplawski 9cc0c6
PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-%{python3_version} -vv
Orion Poplawski 9a527a
Orion Poplawski 6d31db
%files -n python%{python3_pkgversion}-%{srcname}
Orion Poplawski 9a527a
%license LICENSE
Orion Poplawski 9a527a
%doc CHANGELOG README.rst
Orion Poplawski 9a527a
%{python3_sitearch}/*
Orion Poplawski 9a527a
Orion Poplawski 9a527a
%changelog
4c5bea
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-13
4c5bea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4c5bea
bc16bb
* Wed Jun 24 2020 Orion Poplawski <orion@nwra.com> - 0.6.3-12
bc16bb
- Add BR on python-setuptools
bc16bb
a0539f
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.3-11
a0539f
- Rebuilt for Python 3.9
a0539f
1198aa
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-10
1198aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1198aa
6d91d3
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.3-9
6d91d3
- Rebuilt for Python 3.8.0rc1 (#1748018)
6d91d3
9cc111
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.3-8
9cc111
- Rebuilt for Python 3.8
9cc111
58f3e4
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-7
58f3e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
58f3e4
9a55fd
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-6
9a55fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9a55fd
Orion Poplawski 8c9040
* Sun Oct 7 2018 Orion Poplawski <orion@nwra.com> - 0.6.3-5
Orion Poplawski 8c9040
- Drop Python 2 package for Fedora 30+ (bugz #1634962)
Orion Poplawski 8c9040
360c5f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-4
360c5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
360c5f
a8b623
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6.3-3
a8b623
- Rebuilt for Python 3.7
a8b623
a3288d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-2
a3288d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a3288d
63cab0
* Mon Feb 5 2018 Orion Poplawski <orion@cora.nwra.com> - 0.6.3-1
63cab0
- Update to 0.6.3
63cab0
b40570
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-12
b40570
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b40570
4ea2f9
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-11
4ea2f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4ea2f9
b99f1a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-10
b99f1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b99f1a
2e10f9
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.6.1-9
2e10f9
- Rebuild for Python 3.6
2e10f9
808e9e
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-8
808e9e
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
808e9e
Orion Poplawski 6d31db
* Tue Apr 19 2016 Orion Poplawski <orion@cora.nwra.com> - 0.6.1-7
Orion Poplawski 6d31db
- Build python3 packages for EPEL7
Orion Poplawski 6d31db
272550
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-6
272550
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
272550
cc85e9
* Wed Jan 13 2016 Jerry James <loganjerry@gmail.com> - 0.6.1-5
cc85e9
- Rebuild for picosat 965
cc85e9
Orion Poplawski 9cc0c6
* Sun Jan 3 2016 Orion Poplawski <orion@cora.nwra.com> - 0.6.1-4
Orion Poplawski 9cc0c6
- Fix PYTHONPATH in %%check
Orion Poplawski 9cc0c6
f7e91f
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-3
f7e91f
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
f7e91f
Orion Poplawski 9a527a
* Tue Sep 22 2015 Orion Poplawski <orion@cora.nwra.com> - 0.6.1-2
Orion Poplawski 9a527a
- Quiet setup
Orion Poplawski 9a527a
Orion Poplawski 9a527a
* Mon Sep 21 2015 Orion Poplawski <orion@cora.nwra.com> - 0.6.1-1
Orion Poplawski 9a527a
- Initial package