9e1fb46
%global srcname SnipeIT-PythonAPI
9e1fb46
%global modname snipeit   
9e1fb46
9e1fb46
Name:           python-%{modname}
9e1fb46
# changelog has versions in README
9e1fb46
Version:        1.2 
25942b4
Release:        5%{?dist}
9e1fb46
Summary:        Python Interface to the SnipeIT API
9e1fb46
9e1fb46
# MIT license mentioned in setup.py
9e1fb46
License:        MIT
9e1fb46
URL:            https://github.com/jbloomer/%{srcname}
9e1fb46
Source0:        %{url}/raw/master/dist/%{modname}-%{version}.tar.gz
9e1fb46
9e1fb46
BuildArch:      noarch
9e1fb46
BuildRequires:  python3-devel
9e1fb46
BuildRequires:  python3-setuptools
9e1fb46
BuildRequires:  python3-requests
9e1fb46
BuildRequires:  python3-simplejson
9e1fb46
9e1fb46
%global _description\
9e1fb46
Use this package to interface with the SnipeIT\
9e1fb46
(https://snipeitapp.com/) API directly from Python.
9e1fb46
9e1fb46
%description
9e1fb46
%_description
9e1fb46
9e1fb46
%package -n python3-%{modname}
9e1fb46
Summary:        %{summary}
9e1fb46
Requires:       python3-requests
9e1fb46
Requires:       python3-simplejson
9e1fb46
9e1fb46
%description -n python3-%{modname}
9e1fb46
%_description
9e1fb46
9e1fb46
%prep
9e1fb46
%autosetup -n%{modname}-%{version}
9e1fb46
9e1fb46
%build
9e1fb46
%{py3_build}
9e1fb46
9e1fb46
%install
9e1fb46
%{py3_install}
9e1fb46
 
9e1fb46
%files -n python3-%{modname}
9e1fb46
%doc README.rst
9e1fb46
%doc doc/snipeit/*.html
9e1fb46
%{python3_sitelib}/%{modname}/
9e1fb46
%{python3_sitelib}/%{modname}-%{version}-py%{python3_version}.egg-info/
9e1fb46
9e1fb46
%changelog
25942b4
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-5
25942b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
25942b4
4cac1c3
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-4
4cac1c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
4cac1c3
f4f823e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.2-3
f4f823e
- Rebuilt for Python 3.10
f4f823e
1342a77
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
1342a77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1342a77
9e1fb46
* Sun Nov 08 2020 Raphael Groner <raphgro@fedoraproject.org> - 1.2-1
9e1fb46
- initial