diff --git a/XStatic-1.0.2.tar.gz b/XStatic-1.0.2.tar.gz deleted file mode 100644 index cd69ed5919a95d613bf32436b07dec3236b40fcf..0000000000000000000000000000000000000000 Binary files a/XStatic-1.0.2.tar.gz and /dev/null differ diff --git a/XStatic-1.0.3.tar.gz b/XStatic-1.0.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..fceda8961fac900fb353eff99342f3f1e29e5c93 Binary files /dev/null and b/XStatic-1.0.3.tar.gz differ diff --git a/python-XStatic.spec b/python-XStatic.spec index f397260baf1d74bdc8c4ca8d35e1000e8bb5ebce..e15cf6c60ac1ee571c70318402113ca70c62fdf9 100644 --- a/python-XStatic.spec +++ b/python-XStatic.spec @@ -1,14 +1,13 @@ %global _empty_manifest_terminate_build 0 Name: python-XStatic -Version: 1.0.2 -Release: 2 +Version: 1.0.3 +Release: 1 Summary: XStatic base package with minimal support code License: MIT 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 - %description 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. @@ -24,7 +23,7 @@ Licenses: %package -n python3-XStatic Summary: XStatic base package with minimal support code -Provides: python-XStatic +Provides: python-XStatic = %{version}-%{release} BuildRequires: python3-devel BuildRequires: python3-setuptools %description -n python3-XStatic @@ -57,7 +56,7 @@ Licenses: * same license as packaged file (for static file packages) %prep -%autosetup -n XStatic-1.0.2 +%autosetup -n XStatic-%{version} %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 example ]; then cp -arf example %{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} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst @@ -89,7 +91,6 @@ fi popd mv %{buildroot}/filelist.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 %dir %{python3_sitelib}/* @@ -98,6 +99,9 @@ sed -i '3 s/import sys, types, os;/import sys, types, os;\n/' %{buildroot}/%{pyt %{_docdir}/* %changelog +* Thu Jun 01 2023 wangjunqi - 1.0.3-1 +- Update package to version 1.0.3 + * Thu Feb 17 2022 caodongxia - 1.0.2-2 - Add newline in nspkg.pth to avoid overrunning the line buffer