73 lines
2.1 KiB
RPMSpec
73 lines
2.1 KiB
RPMSpec
%global pypi_name sphinx-notfound-page
|
|
%global srcname sphinx_notfound_page
|
|
%global importname notfound
|
|
%global project_owner readthedocs
|
|
%global github_name sphinx-notfound-page
|
|
%global desc Create a custom 404 page with absolute URLs hardcoded
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 0.8.3
|
|
Release: 2
|
|
Summary: Create a custom 404 page with absolute URLs hardcoded
|
|
|
|
License: MIT
|
|
URL: https://pypi.python.org/pypi/%{pypi_name}
|
|
Source0: https://github.com/%{project_owner}/%{github_name}/archive/%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
%desc
|
|
|
|
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
BuildRequires: python%{python3_pkgversion}-sphinx
|
|
BuildRequires: python3-pytest python3-pip python3-flit-core
|
|
Requires(post): %{_sbindir}/update-alternatives
|
|
Requires(postun): %{_sbindir}/update-alternatives
|
|
Requires: python%{python3_pkgversion}-setuptools
|
|
Requires: python%{python3_pkgversion}-sphinx
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
|
%description -n python%{python3_pkgversion}-%{pypi_name}
|
|
%desc
|
|
|
|
|
|
%prep
|
|
%autosetup -n %{pypi_name}-%{version} -p1
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install sphinx-notfound-page==%{version}
|
|
|
|
%check
|
|
PYTHONPATH=$PWD py.test-%{python3_version} -v .
|
|
|
|
%files -n python%{python3_pkgversion}-%{pypi_name}
|
|
%license LICENSE
|
|
%doc README.rst CHANGELOG.rst docs
|
|
%{python3_sitelib}/%{srcname}-%{version}.dist-info
|
|
%{python3_sitelib}/%{importname}/
|
|
|
|
%changelog
|
|
* Wed Apr 26 2023 liyanan <thistleslyn@163.com> - 0.8.3-2
|
|
- Adapting to the pyproject.toml compilation mode
|
|
|
|
* Tue Oct 25 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.8.3-1
|
|
- Update version to 0.8.3
|
|
|
|
* Thu Jun 23 2022 SimpleUpdate Robot <tc@openeuler.org> - 0.7.1-1
|
|
- Upgrade to version 0.7.1
|
|
|
|
* Mon Jan 10 2022 Ge Wang <wangge20@huawei.com> - 0.6-2
|
|
- Fix testcase url content mismatch error
|
|
|
|
* Wed Jul 07 2021 wangdi <wangdi@kylinos.cn> - 0.6-1
|
|
- Init package
|
|
|