python-semantic_version/python-semantic_version.spec

94 lines
2.8 KiB
RPMSpec
Raw Normal View History

2021-08-06 11:05:31 +08:00
%global _empty_manifest_terminate_build 0
2020-01-12 21:09:36 -05:00
Name: python-semantic_version
2021-08-06 11:05:31 +08:00
Version: 2.8.5
2022-06-17 14:45:06 +08:00
Release: 2
2020-01-12 21:09:36 -05:00
Summary: Plugin for implementing the semantic version
2022-06-17 14:45:06 +08:00
License: BSD-2-Clause
2020-01-12 21:09:36 -05:00
URL: https://github.com/rbarrois/python-semanticversion
2021-08-06 11:05:31 +08:00
Source0: https://files.pythonhosted.org/packages/d4/52/3be868c7ed1f408cb822bc92ce17ffe4e97d11c42caafce0589f05844dd0/semantic_version-2.8.5.tar.gz
2020-01-12 21:09:36 -05:00
BuildArch: noarch
%description
This small python library provides a few tools to handle semantic versioning in Python.
2021-08-06 11:05:31 +08:00
%package -n python3-semantic_version
2020-01-12 21:09:36 -05:00
Summary: Plugin for implementing the semantic version
2021-08-06 11:05:31 +08:00
Provides: python-semantic_version
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
2020-01-12 21:09:36 -05:00
%description -n python3-semantic_version
This small python library provides a few tools to handle semantic versioning in Python.
%package help
Summary: Documentation for python-semantic_version
BuildRequires: python3-sphinx
2021-08-06 11:05:31 +08:00
Provides: python3-semantic_version-doc
2020-01-12 21:09:36 -05:00
%description help
2021-08-06 11:05:31 +08:00
This small python library provides a few tools to handle semantic versioning in Python.
2020-01-12 21:09:36 -05:00
%prep
2021-08-06 11:05:31 +08:00
%autosetup -n semantic_version-%{version}
2020-01-12 21:09:36 -05:00
%build
%py3_build
%install
%py3_install
2021-08-06 11:05:31 +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 .
2020-01-12 21:09:36 -05:00
%check
%{__python3} setup.py test
2021-08-06 11:05:31 +08:00
%files -n python3-semantic_version -f filelist.lst
%dir %{python3_sitelib}/*
2020-01-12 21:09:36 -05:00
2021-08-06 11:05:31 +08:00
%files help -f doclist.lst
%{_docdir}/*
2020-01-12 21:09:36 -05:00
%changelog
2022-06-17 14:45:06 +08:00
* Fri Jun 17 2022 liukuo <liukuo@kylinos.cn> - 2.8.5-2
- License compliance rectification
2021-08-06 11:05:31 +08:00
* Fri Aug 06 2021 OpenStack_SIG <openstack@openeuler.org> - 2.8.5-1
- Upgrade version to 2.8.5
* Wed Oct 21 2020 zhanghua <zhanghua40@huawei.com> - 2.6.0-10
- remove python2 subpackage
2020-01-13 09:28:43 -05:00
* Mon Jan 13 2020 Lei Zhang <ricky.z@huawei.com> - 2.6.0-9
- remove django build depend
2020-01-12 21:09:36 -05:00
2020-01-13 09:28:43 -05:00
* Tue Jan 09 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.6.0-8
- Package init