summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 03:36:19 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 03:36:19 +0000
commit9d0255402cc05d44182ca7e9efb1448375fdf9bb (patch)
treea6d63244d259889b33dde5852df08fd50740b93d
parentec66ff79e979db2e579b6a52f7017933be56ebb2 (diff)
automatic import of python-purepngopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-purepng.spec111
-rw-r--r--sources1
3 files changed, 113 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b17e386 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/purepng-0.2.0.tar.gz
diff --git a/python-purepng.spec b/python-purepng.spec
new file mode 100644
index 0000000..f3c4116
--- /dev/null
+++ b/python-purepng.spec
@@ -0,0 +1,111 @@
+%global _empty_manifest_terminate_build 0
+Name: python-purepng
+Version: 0.2.0
+Release: 1
+Summary: Pure Python PNG image encoder/decoder
+License: MIT License
+URL: https://github.com/scondo/purepng
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b3/91/9fa8a4752a4c028237cb6ea7efab6680eb68a686e8d70c8124ff347d6553/purepng-0.2.0.tar.gz
+BuildArch: noarch
+
+
+%description
+
+PurePNG allows PNG image files to be read and written using pure Python.
+PurePNG can read and write all PNG formats.
+PNG supports a generous variety of image formats: RGB or greyscale, with or
+without an alpha channel; and a choice of bit depths from 1, 2 or 4
+(as long as you want greyscale or a pallete),
+8, and 16 (but 16 bits is not allowed for palettes).
+A pixel can vary in size from 1 to 64 bits: 1/2/4/8/16/24/32/48/64.
+In addition a PNG file can be interlaced or not.
+An interlaced file allows an incrementally refined display of images being
+downloaded over slow links (yet it`s not implemented in PurePNG for now).
+
+PurePNG is written in pure Python(that`s why it`s called Pure).
+
+
+%package -n python3-purepng
+Summary: Pure Python PNG image encoder/decoder
+Provides: python-purepng
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-purepng
+
+PurePNG allows PNG image files to be read and written using pure Python.
+PurePNG can read and write all PNG formats.
+PNG supports a generous variety of image formats: RGB or greyscale, with or
+without an alpha channel; and a choice of bit depths from 1, 2 or 4
+(as long as you want greyscale or a pallete),
+8, and 16 (but 16 bits is not allowed for palettes).
+A pixel can vary in size from 1 to 64 bits: 1/2/4/8/16/24/32/48/64.
+In addition a PNG file can be interlaced or not.
+An interlaced file allows an incrementally refined display of images being
+downloaded over slow links (yet it`s not implemented in PurePNG for now).
+
+PurePNG is written in pure Python(that`s why it`s called Pure).
+
+
+%package help
+Summary: Development documents and examples for purepng
+Provides: python3-purepng-doc
+%description help
+
+PurePNG allows PNG image files to be read and written using pure Python.
+PurePNG can read and write all PNG formats.
+PNG supports a generous variety of image formats: RGB or greyscale, with or
+without an alpha channel; and a choice of bit depths from 1, 2 or 4
+(as long as you want greyscale or a pallete),
+8, and 16 (but 16 bits is not allowed for palettes).
+A pixel can vary in size from 1 to 64 bits: 1/2/4/8/16/24/32/48/64.
+In addition a PNG file can be interlaced or not.
+An interlaced file allows an incrementally refined display of images being
+downloaded over slow links (yet it`s not implemented in PurePNG for now).
+
+PurePNG is written in pure Python(that`s why it`s called Pure).
+
+
+%prep
+%autosetup -n purepng-0.2.0
+
+%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-purepng -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..b8abf40
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+161c32b88fb55bde59a67ad3e2718c1a purepng-0.2.0.tar.gz