python-incremental/python-incremental.spec

83 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

2022-12-15 16:56:40 +08:00
%global _empty_manifest_terminate_build 0
Name: python-incremental
Version: 22.10.0
Release: 1
Summary: A small library versions your Python projects
License: MIT
URL: https://github.com/twisted/incremental
Source0: https://files.pythonhosted.org/packages/86/42/9e87f04fa2cd40e3016f27a4b4572290e95899c6dce317e2cdb580f3ff09/incremental-22.10.0.tar.gz
BuildArch: noarch
2020-02-21 10:44:04 +08:00
%description
Incremental is a small library that versions your Python projects.
2022-12-15 16:56:40 +08:00
%package -n python3-incremental
Summary: A small library versions your Python projects
Provides: python-incremental = %{version}-%{release}
BuildRequires: python3-devel python3-setuptools
2020-02-21 10:44:04 +08:00
%description -n python3-incremental
Incremental is a small library that versions your Python projects.
2022-12-15 16:56:40 +08:00
%package help
Summary: Development documents and examples for incremental
Provides: python3-incremental-doc
%description help
Incremental is a small library that versions your Python projects.
2020-02-21 10:44:04 +08:00
%prep
2022-12-15 16:56:40 +08:00
%autosetup -n incremental-%{version}
2020-02-21 10:44:04 +08:00
%build
%py3_build
%install
%py3_install
2022-12-15 16:56:40 +08:00
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}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
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-incremental -f filelist.lst
%dir %{python3_sitelib}/*
2020-02-21 10:44:04 +08:00
2022-12-15 16:56:40 +08:00
%files help -f doclist.lst
%{_docdir}/*
2020-02-21 10:44:04 +08:00
%changelog
2022-12-15 16:56:40 +08:00
* Thu Dec 15 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 22.10.0-1
- Update package to version 22.10.0
2022-06-13 16:47:54 +08:00
* Thu Jun 09 2022 SimpleUpdate Robot <tc@openeuler.org> - 21.3.0-1
- Upgrade to version 21.3.0
* Thu Mar 31 2022 yangping <yangping69@huawei.com> - 17.5.0-7
- Fix build error caused by py3.10+ wildcard
2020-10-29 10:41:53 +08:00
* Wed Oct 21 2020 leiju <leiju4@huawei.com> - 17.5.0-6
- remove python2 subpackage
2020-02-21 10:44:04 +08:00
* Fri Feb 21 2020 gulining<gulining1@huawei.com> - 17.5.0-5
- Package init.