Blame mingw-python-ephem.spec

d6b67b0
%{?mingw_package_header}
d6b67b0
d6b67b0
%global pkgname ephem
d6b67b0
%global pypi_name %{pkgname}
d6b67b0
d6b67b0
Name:          mingw-python-%{pkgname}
d6b67b0
Summary:       MinGW Windows Python %{pkgname}
da02105
Version:       4.1.3
9d683c1
Release:       2%{?dist}
d6b67b0
BuildArch:     noarch
d6b67b0
d6b67b0
License:       MIT
d6b67b0
URL:           http://rhodesmill.org/pyephem/
d6b67b0
Source0:       %{pypi_source}
d6b67b0
d6b67b0
BuildRequires: mingw32-filesystem >= 95
d6b67b0
BuildRequires: mingw32-gcc
d6b67b0
BuildRequires: mingw32-python3
d6b67b0
BuildRequires: mingw32-python3-setuptools
d6b67b0
d6b67b0
BuildRequires: mingw64-filesystem >= 95
d6b67b0
BuildRequires: mingw64-gcc
d6b67b0
BuildRequires: mingw64-python3
d6b67b0
BuildRequires: mingw64-python3-setuptools
d6b67b0
d6b67b0
d6b67b0
%description
d6b67b0
MinGW Windows Python %{pkgname}.
d6b67b0
d6b67b0
d6b67b0
%package -n mingw32-python3-%{pkgname}
d6b67b0
Summary:       MinGW Windows Python3 %{pkgname}
d6b67b0
d6b67b0
%description -n mingw32-python3-%{pkgname}
d6b67b0
MinGW Windows Python3 %{pkgname}.
d6b67b0
d6b67b0
d6b67b0
%package -n mingw64-python3-%{pkgname}
d6b67b0
Summary:       MinGW Windows Python3 %{pkgname}
d6b67b0
d6b67b0
%description -n mingw64-python3-%{pkgname}
d6b67b0
MinGW Windows Python3 %{pkgname}.
d6b67b0
d6b67b0
27ec974
%{?mingw_debug_package}
27ec974
27ec974
d6b67b0
%prep
d6b67b0
%autosetup -p1 -n %{pypi_name}-%{version}
d6b67b0
d6b67b0
d6b67b0
%build
d6b67b0
%{mingw32_py3_build}
d6b67b0
%{mingw64_py3_build}
d6b67b0
d6b67b0
d6b67b0
%install
d6b67b0
%{mingw32_py3_install}
d6b67b0
%{mingw64_py3_install}
d6b67b0
d6b67b0
# Drop installed tests and doc
d6b67b0
rm -rf %{buildroot}%{mingw32_python3_sitearch}/ephem/tests/
d6b67b0
rm -rf %{buildroot}%{mingw64_python3_sitearch}/ephem/tests/
d6b67b0
rm -rf %{buildroot}%{mingw32_python3_sitearch}/ephem/doc/
d6b67b0
rm -rf %{buildroot}%{mingw64_python3_sitearch}/ephem/doc/
d6b67b0
d6b67b0
d6b67b0
%files -n mingw32-python3-%{pkgname}
d6b67b0
%license LICENSE
d6b67b0
%{mingw32_python3_sitearch}/%{pypi_name}/
d6b67b0
%{mingw32_python3_sitearch}/%{pypi_name}-%{version}*-py%{mingw32_python3_version}.egg-info
d6b67b0
d6b67b0
%files -n mingw64-python3-%{pkgname}
d6b67b0
%license LICENSE
d6b67b0
%{mingw64_python3_sitearch}/%{pypi_name}/
d6b67b0
%{mingw64_python3_sitearch}/%{pypi_name}-%{version}*-py%{mingw64_python3_version}.egg-info
d6b67b0
d6b67b0
d6b67b0
%changelog
9d683c1
* Fri Mar 25 2022 Sandro Mani <manisandro@gmail.com> - 4.1.3-2
9d683c1
- Rebuild with mingw-gcc-12
9d683c1
da02105
* Sat Mar 05 2022 Sandro Mani <manisandro@gmail.com> - 4.1.3-1
da02105
- Update to 4.1.3
da02105
5663630
* Thu Feb 10 2022 Sandro Mani <manisandro@gmail.com> - 4.0.0.2-8
5663630
- Rebuild for new python dependency generator (take two)
5663630
12be97b
* Thu Feb 10 2022 Sandro Mani <manisandro@gmail.com> - 4.0.0.2-7
12be97b
- Rebuild for new python dependency generator
12be97b
cca9091
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0.2-6
cca9091
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
cca9091
27ec974
* Tue Sep 14 2021 Sandro Mani <manisandro@gmail.com> - 4.0.0.2-5
27ec974
- Add debug package
27ec974
d6b67b0
* Mon Aug 02 2021 Sandro Mani <manisandro@gmail.com> - 4.0.0.2-4
d6b67b0
- Also drop doc installed below python site-packages dir
d6b67b0
d6b67b0
* Mon Aug 02 2021 Sandro Mani <manisandro@gmail.com> - 4.0.0.2-3
d6b67b0
- Don't install tests
d6b67b0
d6b67b0
* Mon Aug 02 2021 Sandro Mani <manisandro@gmail.com> - 4.0.0.2-2
d6b67b0
- Fix pkgname pyephem -> ephem
d6b67b0
d6b67b0
* Sat Jul 31 2021 Sandro Mani <manisandro@gmail.com> - 4.0.0.2-1
d6b67b0
- Initial package