diff options
Diffstat (limited to 'python-abimap.spec')
-rw-r--r-- | python-abimap.spec | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/python-abimap.spec b/python-abimap.spec new file mode 100644 index 0000000..2b31617 --- /dev/null +++ b/python-abimap.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-abimap +Version: 0.4.0 +Release: 1 +Summary: A helper for library maintainers to use symbol versioning +License: None +URL: https://github.com/ansasaki/abimap +Source0: https://mirrors.aliyun.com/pypi/web/packages/98/cd/57044525e84c7fbe202e9792c582597603ab609df935efceb96005ec57d3/abimap-0.4.0.tar.gz +BuildArch: noarch + +Requires: (python3-setuptools) +Requires: (python3-flake8) +Requires: (python3-build) +Requires: (python3-sphinx>=6.0.0) +Requires: (python3-sphinx-rtd-theme>=1.2.0) +Requires: (python3-watchdog>=2.0.0) +Requires: (python3-pytest) +Requires: (python3-pyyaml) +Requires: (python3-pytest-cov) +Requires: (python3-pytest-console-scripts) + +%description +A helper for library maintainers to use symbol versioning + +%package -n python3-abimap +Summary: A helper for library maintainers to use symbol versioning +Provides: python-abimap +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +%description -n python3-abimap +A helper for library maintainers to use symbol versioning + +%package help +Summary: Development documents and examples for abimap +Provides: python3-abimap-doc +%description help +A helper for library maintainers to use symbol versioning + +%prep +%autosetup -n abimap-0.4.0 + +%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 filelist.lst +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +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}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-abimap -f filelist.lst +%{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Sat Aug 16 2025 Python_Bot <Python_Bot@openeuler.org> - 0.4.0-1 +- Package Spec generated |