Skip to content

Commit

Permalink
spec: Package Python examples
Browse files Browse the repository at this point in the history
%py3_shebang_fix macro corrects shebangs in the documentation files to
make them conforming to Fedora packaging guidelines
<https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_shebangs>.
  • Loading branch information
ppisar authored and j-mracek committed May 30, 2024
1 parent 0ce71ad commit 0520f0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion createrepo_c.spec
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Python 3 bindings for the createrepo_c library.

%prep
%autosetup -p1

%py3_shebang_fix examples/python
mkdir build-py3

%build
Expand Down Expand Up @@ -202,6 +202,7 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
%{_includedir}/%{name}/

%files -n python3-%{name}
%doc examples/python/*
%{python3_sitearch}/%{name}/
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info

Expand Down

0 comments on commit 0520f0c

Please sign in to comment.