!15 Upgrade to latest release [python-XStatic -> 1.0.3]
From: @Wangjunqi123 Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
a5c35167cb
Binary file not shown.
BIN
XStatic-1.0.3.tar.gz
Normal file
BIN
XStatic-1.0.3.tar.gz
Normal file
Binary file not shown.
@ -1,14 +1,13 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-XStatic
|
Name: python-XStatic
|
||||||
Version: 1.0.2
|
Version: 1.0.3
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: XStatic base package with minimal support code
|
Summary: XStatic base package with minimal support code
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/xstatic-py/xstatic
|
URL: https://github.com/xstatic-py/xstatic
|
||||||
Source0: https://files.pythonhosted.org/packages/36/78/c0ffaf14216517a14d3daa67ff24fbb60b4703e95ce1059a48fd508e6b8c/XStatic-1.0.2.tar.gz
|
Source0: https://files.pythonhosted.org/packages/d6/dd/e448da90f0e72a30546cda9b193893ea2907e7d3a702655c2c3b80c3b97f/XStatic-1.0.3.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The goal of XStatic family of packages is to provide static file packages
|
The goal of XStatic family of packages is to provide static file packages
|
||||||
with minimal overhead - without selling you some dependencies you don't want.
|
with minimal overhead - without selling you some dependencies you don't want.
|
||||||
@ -24,7 +23,7 @@ Licenses:
|
|||||||
|
|
||||||
%package -n python3-XStatic
|
%package -n python3-XStatic
|
||||||
Summary: XStatic base package with minimal support code
|
Summary: XStatic base package with minimal support code
|
||||||
Provides: python-XStatic
|
Provides: python-XStatic = %{version}-%{release}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
%description -n python3-XStatic
|
%description -n python3-XStatic
|
||||||
@ -57,7 +56,7 @@ Licenses:
|
|||||||
* same license as packaged file (for static file packages)
|
* same license as packaged file (for static file packages)
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n XStatic-1.0.2
|
%autosetup -n XStatic-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -69,6 +68,9 @@ if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|||||||
if [ -d docs ]; then cp -arf docs %{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 example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
|
||||||
pushd %{buildroot}
|
pushd %{buildroot}
|
||||||
if [ -d usr/lib ]; then
|
if [ -d usr/lib ]; then
|
||||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
@ -89,7 +91,6 @@ fi
|
|||||||
popd
|
popd
|
||||||
mv %{buildroot}/filelist.lst .
|
mv %{buildroot}/filelist.lst .
|
||||||
mv %{buildroot}/doclist.lst .
|
mv %{buildroot}/doclist.lst .
|
||||||
sed -i '3 s/import sys, types, os;/import sys, types, os;\n/' %{buildroot}/%{python3_sitelib}/XStatic-%{version}-py%{python3_version}-nspkg.pth
|
|
||||||
|
|
||||||
%files -n python3-XStatic -f filelist.lst
|
%files -n python3-XStatic -f filelist.lst
|
||||||
%dir %{python3_sitelib}/*
|
%dir %{python3_sitelib}/*
|
||||||
@ -98,6 +99,9 @@ sed -i '3 s/import sys, types, os;/import sys, types, os;\n/' %{buildroot}/%{pyt
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 01 2023 wangjunqi <wangjunqi@kylinos.cn> - 1.0.3-1
|
||||||
|
- Update package to version 1.0.3
|
||||||
|
|
||||||
* Thu Feb 17 2022 caodongxia <caodongxia@huawei.com> - 1.0.2-2
|
* Thu Feb 17 2022 caodongxia <caodongxia@huawei.com> - 1.0.2-2
|
||||||
- Add newline in nspkg.pth to avoid overrunning the line buffer
|
- Add newline in nspkg.pth to avoid overrunning the line buffer
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user