|
|
|
@ -1,16 +1,34 @@
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.7.3)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 12;
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
%global pypi_name boolean.py
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 4.0
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Define boolean algebras, and create and parse boolean expressions
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
# Automatically converted from old format: BSD - review is highly recommended.
|
|
|
|
|
License: LicenseRef-Callaway-BSD
|
|
|
|
|
URL: https://github.com/bastikr/boolean.py
|
|
|
|
|
Source0: %pypi_source
|
|
|
|
|
|
|
|
|
|
Patch: https://github.com/bastikr/boolean.py/pull/122.patch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
BuildRequires: %{py3_dist Sphinx}
|
|
|
|
|
BuildRequires: %{py3_dist pytest}
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
|
"boolean.py" is a small library implementing a boolean algebra. It defines\
|
|
|
|
|
two base elements, TRUE and FALSE, and a Symbol class that can take on one of\
|
|
|
|
@ -23,16 +41,13 @@ AND or and NOT. Expressions are constructed from parsed strings or in Python.
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
BuildRequires: %{py3_dist Sphinx}
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{pypi_name} %{_description}
|
|
|
|
|
|
|
|
|
|
Python 3 version.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
@ -43,7 +58,7 @@ rm -rf html/.{doctrees,buildinfo}
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
@ -52,8 +67,30 @@ rm -rf html/.{doctrees,buildinfo}
|
|
|
|
|
%{python3_sitelib}/boolean/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jul 18 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 4.0-4
|
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
|
* Fri Jan 10 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 4.0-12
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Mon Nov 11 2024 Lumir Balhar <lbalhar@redhat.com> - 4.0-12
|
|
|
|
|
- Fix incompatibility with Python 3.14
|
|
|
|
|
|
|
|
|
|
* Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 4.0-11
|
|
|
|
|
- convert license to SPDX
|
|
|
|
|
|
|
|
|
|
* Wed Aug 14 2024 Lumir Balhar <lbalhar@redhat.com> - 4.0-10
|
|
|
|
|
- Drop obsoleted setup.py test
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 4.0-7
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
@ -105,3 +142,5 @@ rm -rf html/.{doctrees,buildinfo}
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2019 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 3.6-1
|
|
|
|
|
- New package.
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|
|