python-idna/python-idna.spec

120 lines
3.5 KiB
RPMSpec
Raw Normal View History

2022-05-24 11:40:49 +00:00
%global _empty_manifest_terminate_build 0
2022-11-23 18:06:39 +08:00
Name: python-idna
2022-11-29 03:26:54 +00:00
Version: 3.3
Release: 2
2022-11-23 18:06:39 +08:00
Summary: Internationalized Domain Names in Applications (IDNA)
License: BSD
URL: https://github.com/kjd/idna
2022-11-29 03:26:54 +00:00
Source0: https://files.pythonhosted.org/packages/62/08/e3fc7c8161090f742f504f40b1bccbfc544d4a4e09eb774bf40aafce5436/idna-3.3.tar.gz
2022-11-23 18:06:39 +08:00
BuildArch: noarch
2019-09-30 11:14:58 -04:00
%description
A library to support the Internationalised Domain Names in
Applications (IDNA) protocol as specified in RFC 5891
http://tools.ietf.org/html/rfc5891. This version of the protocol
is often referred to as “IDNA2008” and can produce different
results from the earlier standard from 2003.
2022-05-24 11:40:49 +00:00
%package -n python3-idna
2022-11-23 18:06:39 +08:00
Summary: Internationalized Domain Names in Applications (IDNA)
Provides: python-idna = %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
2022-05-24 11:40:49 +00:00
%description -n python3-idna
A library to support the Internationalised Domain Names in
Applications (IDNA) protocol as specified in RFC 5891
http://tools.ietf.org/html/rfc5891. This version of the protocol
is often referred to as “IDNA2008” and can produce different
results from the earlier standard from 2003.
2019-09-30 11:14:58 -04:00
2022-05-24 11:40:49 +00:00
%package help
2022-11-23 18:06:39 +08:00
Summary: Development documents and examples for idna
Provides: python3-idna-doc
2022-05-24 11:40:49 +00:00
%description help
A library to support the Internationalised Domain Names in
Applications (IDNA) protocol as specified in RFC 5891
http://tools.ietf.org/html/rfc5891. This version of the protocol
is often referred to as “IDNA2008” and can produce different
results from the earlier standard from 2003.
2019-09-30 11:14:58 -04:00
%prep
2022-05-24 11:40:49 +00:00
%autosetup -n idna-%{version}
2019-09-30 11:14:58 -04:00
%build
%py3_build
%install
%py3_install
2022-05-24 11:40:49 +00: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
2022-11-23 18:06:39 +08:00
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
2022-05-24 11:40:49 +00:00
fi
if [ -d usr/lib64 ]; then
2022-11-23 18:06:39 +08:00
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
2022-05-24 11:40:49 +00:00
fi
if [ -d usr/bin ]; then
2022-11-23 18:06:39 +08:00
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
2022-05-24 11:40:49 +00:00
fi
if [ -d usr/sbin ]; then
2022-11-23 18:06:39 +08:00
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
2022-05-24 11:40:49 +00:00
fi
touch doclist.lst
if [ -d usr/share/man ]; then
2022-11-23 18:06:39 +08:00
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
2022-05-24 11:40:49 +00:00
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
2019-09-30 11:14:58 -04:00
%check
%{__python3} setup.py test
2022-05-24 11:40:49 +00:00
%files -n python3-idna -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
2019-09-30 11:14:58 -04:00
%changelog
2022-11-29 03:26:54 +00:00
* Tue Nov 29 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 3.3-2
- revent to 3.3
2022-11-23 18:06:39 +08:00
* Wed Nov 23 2022 liqiuyu <liqiuyu@kylinos.cn> - 3.4-1
- Update package to version 3.4
2022-05-24 11:40:49 +00:00
* Tue May 24 2022 renliang <renliang@uniontech.com> - 3.3-1
- Upgrade package python3-idna to version 3.3
* Fri Dec 03 2021 wangkerong <wangkerong@huawei.com> - 3.2-1
- update to 3.2
2020-10-29 16:35:49 +08:00
* Thu Oct 29 2020 wangye <wangye70@huawei.com> - 2.10-2
- remove python2-idna subpackage
2020-07-23 18:54:31 +08:00
* Thu Jul 23 2020 zhouhaibo <zhouhaibo@huawei.com> - 2.10-1
- Package update
2020-01-15 04:25:41 +08:00
* Wed Jan 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.8-3
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:delete the python-idna
2020-01-15 02:56:48 +08:00
* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.8-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:delete the python provides in python2
2019-09-30 11:14:58 -04:00
* Wed Sep 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.8-1
- Package init