aekoroglu 8709c8b
%global pypi_name python-libdiscid
aekoroglu 8709c8b
cdf7318
Name:           python-libdiscid
aekoroglu 8709c8b
Version:        2.0.1
aekoroglu 8709c8b
Release:        1%{?dist}
cdf7318
Summary:        Python bindings for libdiscid
cdf7318
cdf7318
License:        MIT
aekoroglu 8709c8b
URL:            https://github.com/sebastinas/python-libdiscid
aekoroglu 8709c8b
Source0:        %{pypi_source}
cdf7318
dbe77aa
BuildRequires:  gcc
cdf7318
BuildRequires:  libdiscid-devel
ab5dfd9
BuildRequires:  python%{python3_pkgversion}-devel
ab5dfd9
BuildRequires:  python%{python3_pkgversion}-setuptools
57ec1b6
BuildRequires:  python%{python3_pkgversion}-sphinx
ab5dfd9
BuildRequires:  python%{python3_pkgversion}-Cython >= 0.15
cdf7318
cdf7318
%description
cdf7318
python-libdiscid provides Python bindings for libdiscid. libdiscid's
cdf7318
main purpose is the calculation of identifiers for audio discs to use
cdf7318
for the MusicBrainz database.
cdf7318
aekoroglu 8709c8b
%package -n python%{python3_pkgversion}-libdiscid
cdf7318
Summary:        Python 3 bindings for libdiscid
ab5dfd9
%{?python_provide:%python_provide python%{python3_pkgversion}-libdiscid}
cdf7318
ab5dfd9
%description -n python%{python3_pkgversion}-libdiscid
ab5dfd9
python%{python3_pkgversion}-libdiscid provides Python 3 bindings for libdiscid. libdiscid's
cdf7318
main purpose is the calculation of identifiers for audio discs to use
cdf7318
for the MusicBrainz database.
cdf7318
cdf7318
cdf7318
%prep
aekoroglu 8709c8b
%autosetup
de6f656
# Fix sys.path for docs build
aekoroglu 8709c8b
sed -i 's/..\/", b.build_lib/..\/build\/lib.%{python3_platform}-%{python3_version}"/' docs/conf.py
de6f656
cdf7318
cdf7318
%build
57ec1b6
%py3_build
de6f656
%{__python3} setup.py build_sphinx
cdf7318
rm build/html/.buildinfo
cdf7318
cdf7318
cdf7318
%install
69b9fa8
%py3_install
cdf7318
cdf7318
cdf7318
%check
69b9fa8
%{__python3} -Wall setup.py test
cdf7318
cdf7318
ab5dfd9
%files -n python%{python3_pkgversion}-libdiscid
085bb90
%license LICENSE
085bb90
%doc changelog PKG-INFO build/html/
cdf7318
%{python3_sitearch}/*libdiscid*/
cdf7318
%exclude %{python3_sitearch}/*libdiscid*/tests/
cdf7318
cdf7318
cdf7318
%changelog
aekoroglu 8709c8b
* Sun Jun 19 2022 Ali Erdinc Koroglu <aekoroglu@fedoraproject.org> - 2.0.1-1
aekoroglu 8709c8b
- Update to 2.0.1 (rhbz #1705476, #1771169 and #2097105)
aekoroglu 8709c8b
0496469
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.4.1-30
0496469
- Rebuilt for Python 3.11
0496469
7c3c7da
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-29
7c3c7da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
7c3c7da
9d1c1d5
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-28
9d1c1d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
9d1c1d5
ee2e381
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.4.1-27
ee2e381
- Rebuilt for Python 3.10
ee2e381
aa18325
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-26
aa18325
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
aa18325
b18e4ba
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-25
b18e4ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b18e4ba
106a135
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-24
106a135
- Rebuilt for Python 3.9
106a135
16f0500
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-23
16f0500
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
16f0500
1fe1902
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-22
1fe1902
- Rebuilt for Python 3.8.0rc1 (#1748018)
1fe1902
7eb8e0d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-21
7eb8e0d
- Rebuilt for Python 3.8
7eb8e0d
83d1d9a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-20
83d1d9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
83d1d9a
24fa33c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-19
24fa33c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
24fa33c
57ec1b6
* Wed Jan 02 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-18
57ec1b6
- Subpackage python2-libdiscid has been removed
57ec1b6
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
57ec1b6
3522dac
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-17
3522dac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3522dac
32c0c55
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-16
32c0c55
- Rebuilt for Python 3.7
32c0c55
d785863
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-15
d785863
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d785863
94a73c6
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.4.1-14
94a73c6
- Update Python 2 dependency declarations to new packaging standards
94a73c6
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
94a73c6
1755f8b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-13
1755f8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1755f8b
6d00606
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-12
6d00606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6d00606
69b9fa8
* Wed Jun 28 2017 Matěj Cepl <mcepl@redhat.com> - 0.4.1-11
69b9fa8
- All req. pkgs are in EPEL7, we can built python3 packages as well.
69b9fa8
ed0df68
* Fri May 26 2017 Ville Skyttä <ville.skytta@iki.fi> - 0.4.1-10
ed0df68
- Run tests with -Wall
ed0df68
3704f29
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-9
3704f29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3704f29
f9b06a2
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-8
f9b06a2
- Rebuild for Python 3.6
f9b06a2
edc0c92
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-7
edc0c92
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
edc0c92
cdae61b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-6
cdae61b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cdae61b
93165c9
* Wed Nov  4 2015 Ville Skyttä <ville.skytta@iki.fi> - 0.4.1-5
f2bdc16
- Apply upstream fix for Cython >= 0.23
93165c9
085bb90
* Thu Aug  6 2015 Ville Skyttä <ville.skytta@iki.fi> - 0.4.1-4
085bb90
- Spec cleanup per current Python guidelines; Python 2 package is now python2-*
085bb90
a7a63c8
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-3
a7a63c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a7a63c8
cdf7318
* Wed Mar 11 2015 Ville Skyttä <ville.skytta@iki.fi> - 0.4.1-2
cdf7318
- Build below source dir instead of in %%{py3dir}
cdf7318
cdf7318
* Thu Mar  5 2015 Ville Skyttä <ville.skytta@iki.fi> - 0.4.1-1
cdf7318
- First build