Skip to content

Commit a394d60

Browse files
committed
Packit testing on Fedora
1 parent 8f71f30 commit a394d60

File tree

3 files changed

+114
-0
lines changed

3 files changed

+114
-0
lines changed

.packit.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# https://packit.dev/docs/configuration/
2+
3+
specfile_path: packaging/rpm/fedora/python-sphinxcontrib-chapeldomain.spec
4+
5+
notifications:
6+
pull_request:
7+
successful_build: true
8+
9+
jobs:
10+
- job: copr_build
11+
trigger: pull_request
12+
targets:
13+
- fedora-rawhide-x86_64
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
Name: python-sphinxcontrib-chapeldomain
2+
Version: 0.0.39
3+
Release: %autorelease
4+
Summary: Chapel domain for Sphinx
5+
6+
# The entire source is Apache-2.0, except that
7+
# sphinxcontrib/chapeldomain/README.md is BSD-2-Clause
8+
# (sphinxcontrib/chapeldomain/LICENSE).
9+
License: Apache-2.0 AND BSD-2-Clause
10+
URL: https://github.com/chapel-lang/sphinxcontrib-chapeldomain
11+
# PyPI source does not have documentation
12+
Source: %{url}/archive/%{version}/sphinxcontrib-chapeldomain-%{version}.tar.gz
13+
# Relax pinned dependency requirements
14+
Patch: relax-dep-requirements.patch
15+
16+
BuildArch: noarch
17+
BuildRequires: python3-devel
18+
# Documentation requirements
19+
BuildRequires: make
20+
BuildRequires: python3dist(sphinx)
21+
BuildRequires: python3dist(sphinx-rtd-theme)
22+
BuildRequires: python3dist(snowballstemmer)
23+
BuildRequires: texinfo
24+
# Test requirements
25+
BuildRequires: python3dist(pytest)
26+
# chapel.py is vendored from Pygments; see
27+
# sphinxcontrib/chapeldomain/README.md for justification
28+
Provides: bundled(python3dist(pygments))
29+
30+
%global _description %{expand:
31+
Chapel domain for Sphinx.}
32+
33+
%description %_description
34+
35+
%package -n python3-sphinxcontrib-chapeldomain
36+
Summary: %{summary}
37+
38+
%description -n python3-sphinxcontrib-chapeldomain %_description
39+
40+
41+
%prep
42+
%autosetup -p1 -n sphinxcontrib-chapeldomain-%{version}
43+
44+
45+
%generate_buildrequires
46+
%pyproject_buildrequires
47+
48+
49+
%build
50+
%pyproject_wheel
51+
pushd docs
52+
make texinfo
53+
pushd _build
54+
pushd texinfo
55+
makeinfo --docbook ChapelDomain.texi
56+
popd
57+
popd
58+
popd
59+
60+
%install
61+
%pyproject_install
62+
%pyproject_save_files -l sphinxcontrib
63+
mkdir -p %{buildroot}%{_datadir}/help/en/python-sphinxcontrib-chapeldomain
64+
install -p -m644 docs/_build/texinfo/ChapelDomain.xml \
65+
%{buildroot}%{_datadir}/help/en/python-sphinxcontrib-chapeldomain
66+
67+
%check
68+
%pyproject_check_import
69+
%pytest
70+
71+
%files -n python3-sphinxcontrib-chapeldomain -f %{pyproject_files}
72+
%{python3_sitelib}/sphinxcontrib_chapeldomain-%{version}-py%{python3_version}-nspkg.pth
73+
%doc README.rst
74+
%doc %dir %{_datadir}/help/en
75+
%doc %lang(en) %{_datadir}/help/en/python-sphinxcontrib-chapeldomain
76+
77+
%changelog
78+
%autochangelog
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
diff -ruN sphinxcontrib-chapeldomain-0.0.39/requirements.txt sphinxcontrib-chapeldomain-0.0.39-mod/requirements.txt
2+
--- sphinxcontrib-chapeldomain-0.0.39/requirements.txt 2025-08-11 21:26:12.000000000 +0300
3+
+++ sphinxcontrib-chapeldomain-0.0.39-mod/requirements.txt 2025-09-21 09:57:18.461907810 +0300
4+
@@ -1,3 +1,3 @@
5+
# Note: DON'T UPDATE THIS WITHOUT ALSO UPDATING SETUP.PY
6+
-docutils==0.21.2
7+
-Sphinx==8.1.3
8+
+docutils
9+
+Sphinx
10+
diff -ruN sphinxcontrib-chapeldomain-0.0.39/setup.py sphinxcontrib-chapeldomain-0.0.39-mod/setup.py
11+
--- sphinxcontrib-chapeldomain-0.0.39/setup.py 2025-08-11 21:26:12.000000000 +0300
12+
+++ sphinxcontrib-chapeldomain-0.0.39-mod/setup.py 2025-09-21 09:57:58.366269630 +0300
13+
@@ -42,8 +42,8 @@
14+
packages=find_packages(exclude=('test',)),
15+
include_package_data=True,
16+
install_requires=[
17+
- 'docutils==0.21.2',
18+
- 'Sphinx==8.1.3',
19+
+ 'docutils',
20+
+ 'Sphinx',
21+
],
22+
namespace_packages=['sphinxcontrib']
23+
)

0 commit comments

Comments
 (0)