summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 04:04:46 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 04:04:46 +0000
commit3aac49aeab73d90ae206d87ee8906891e9edaed0 (patch)
tree56f9c15662cc7e7d2dcbba7e60dbbccd7d884806
parent545575e84df3d4bff2bf93b541018beca1c2de86 (diff)
automatic import of python-glpkopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-glpk.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..fe62a2b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/glpk-0.4.7.tar.gz
diff --git a/python-glpk.spec b/python-glpk.spec
new file mode 100644
index 0000000..42cc7fd
--- /dev/null
+++ b/python-glpk.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-glpk
+Version: 0.4.7
+Release: 1
+Summary: PyGLPK, a Python module encapsulating GLPK.
+License: GPL
+URL: http://tfinley.net/software/pyglpk/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4f/bd/c21af5237109fd4d82e91eb98641d1034fbe7ee7409b0be471bc19c8a766/glpk-0.4.7.tar.gz
+BuildArch: noarch
+
+
+%description
+The PyGLPK module gives one access to the functionality of the GNU Linear Programming Kit.
+
+
+%package -n python3-glpk
+Summary: PyGLPK, a Python module encapsulating GLPK.
+Provides: python-glpk
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-glpk
+The PyGLPK module gives one access to the functionality of the GNU Linear Programming Kit.
+
+
+%package help
+Summary: Development documents and examples for glpk
+Provides: python3-glpk-doc
+%description help
+The PyGLPK module gives one access to the functionality of the GNU Linear Programming Kit.
+
+
+%prep
+%autosetup -n glpk-0.4.7
+
+%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-glpk -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.7-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..b021e35
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+80b878c353eaf59d87484a2ef68f3049 glpk-0.4.7.tar.gz