diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-csscompressor.spec | 84 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 86 insertions, 0 deletions
@@ -0,0 +1 @@ +/csscompressor-0.9.5.tar.gz diff --git a/python-csscompressor.spec b/python-csscompressor.spec new file mode 100644 index 0000000..35a0ba4 --- /dev/null +++ b/python-csscompressor.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-csscompressor +Version: 0.9.5 +Release: 1 +Summary: A python port of YUI CSS Compressor +License: BSD +URL: http://github.com/sprymix/csscompressor +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f1/2a/8c3ac3d8bc94e6de8d7ae270bb5bc437b210bb9d6d9e46630c98f4abd20c/csscompressor-0.9.5.tar.gz +BuildArch: noarch + + +%description + >>> from csscompressor import compress + >>> compress(''' + 'your css{content:"!"}' +Or, if you want to use it from command line: + $ python3 -m csscompressor --help + +%package -n python3-csscompressor +Summary: A python port of YUI CSS Compressor +Provides: python-csscompressor +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-csscompressor + >>> from csscompressor import compress + >>> compress(''' + 'your css{content:"!"}' +Or, if you want to use it from command line: + $ python3 -m csscompressor --help + +%package help +Summary: Development documents and examples for csscompressor +Provides: python3-csscompressor-doc +%description help + >>> from csscompressor import compress + >>> compress(''' + 'your css{content:"!"}' +Or, if you want to use it from command line: + $ python3 -m csscompressor --help + +%prep +%autosetup -n csscompressor-0.9.5 + +%build +%py3_build + +%install +%py3_install +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-csscompressor -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.5-1 +- Package Spec generated @@ -0,0 +1 @@ +7aa1c1542d244d772c07dd4bbbbe0d69 csscompressor-0.9.5.tar.gz |