summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 12:25:25 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 12:25:25 +0000
commitd039e012ad2e70824124e7baac31f83585e63722 (patch)
tree6722d50d3a92de919698040af3b7b6ca7f6572b6
parent0e7ba632fd36b73a41fff5a6244409e4f51e5df2 (diff)
automatic import of python-glue
-rw-r--r--.gitignore1
-rw-r--r--python-glue.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0dadd11 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/glue-0.13.tar.gz
diff --git a/python-glue.spec b/python-glue.spec
new file mode 100644
index 0000000..a2faa66
--- /dev/null
+++ b/python-glue.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-glue
+Version: 0.13
+Release: 1
+Summary: Glue is a simple command line tool to generate sprites.
+License: BSD
+URL: http://github.com/jorgebastida/glue
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c3/59/e645bf02685eff415fb5c2ceda9693b26ebb0340b1c43c145a5ff323b2fe/glue-0.13.tar.gz
+BuildArch: noarch
+
+
+%description
+Glue is a simple command line tool to generate sprites using any kind of source images like PNG, JPEG or GIF. Glue will generate a unique PNG file containing every source image and a map file including the necessary information to use it.
+
+%package -n python3-glue
+Summary: Glue is a simple command line tool to generate sprites.
+Provides: python-glue
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-glue
+Glue is a simple command line tool to generate sprites using any kind of source images like PNG, JPEG or GIF. Glue will generate a unique PNG file containing every source image and a map file including the necessary information to use it.
+
+%package help
+Summary: Development documents and examples for glue
+Provides: python3-glue-doc
+%description help
+Glue is a simple command line tool to generate sprites using any kind of source images like PNG, JPEG or GIF. Glue will generate a unique PNG file containing every source image and a map file including the necessary information to use it.
+
+%prep
+%autosetup -n glue-0.13
+
+%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-glue -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.13-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..7b589c8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+65ac9f9b4667b7ef5f7665273b68bc56 glue-0.13.tar.gz