66 lines
2.0 KiB
RPMSpec
66 lines
2.0 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: python-pycnite
|
|
Version: 2023.10.11
|
|
Release: 1
|
|
Summary: A collection of utilities for working with compiled Python bytecode.
|
|
License: Apache-2.0
|
|
URL: https://github.com/google/pycnite
|
|
Source0: https://files.pythonhosted.org/packages/d0/0b/9ff8741c92924e7e54327d24bc2c1300ad2fa86701aedfe1519acc70e323/pycnite-2023.10.11.tar.gz
|
|
BuildArch: noarch
|
|
%description
|
|
A collection of utilities for working with compiled Python bytecode.
|
|
|
|
%package -n python3-pycnite
|
|
Summary: A collection of utilities for working with compiled Python bytecode.
|
|
Provides: python-pycnite
|
|
# Base build requires
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pbr
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-hatchling
|
|
%description -n python3-pycnite
|
|
A collection of utilities for working with compiled Python bytecode.
|
|
|
|
%package help
|
|
Summary: Development documents and examples for pycnite.
|
|
Provides: python3-pycnite-doc
|
|
%description help
|
|
Development documents and examples for pycnite.
|
|
|
|
%prep
|
|
%autosetup -n pycnite-%{version}
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
pushd %{buildroot}
|
|
touch doclist.lst
|
|
if [ -d usr/share/man ]; then
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
fi
|
|
popd
|
|
mv %{buildroot}/doclist.lst .
|
|
|
|
%files -n python3-pycnite
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python3_sitelib}/pycnite
|
|
%{python3_sitelib}/pycnite*.dist-info/
|
|
|
|
%files help -f doclist.lst
|
|
%{_docdir}/*
|
|
|
|
%changelog
|
|
* Tue Dec 26 2023 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 2023.10.11-1
|
|
- Init package
|