summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-31 05:51:57 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-31 05:51:57 +0000
commitb3626d857b12c7b450d0d841bc59f3570d06b18c (patch)
tree741afb9a2de1b7cf5fd51fa02cb2f86304e47208
parent7ee0be6fc115d06ed35bd5b3dabd0b3e7eba0b99 (diff)
automatic import of python-pdf2jpg
-rw-r--r--.gitignore1
-rw-r--r--python-pdf2jpg.spec88
-rw-r--r--sources1
3 files changed, 90 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..95510a3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pdf2jpg-1.1.tar.gz
diff --git a/python-pdf2jpg.spec b/python-pdf2jpg.spec
new file mode 100644
index 0000000..3c60a6c
--- /dev/null
+++ b/python-pdf2jpg.spec
@@ -0,0 +1,88 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pdf2jpg
+Version: 1.1
+Release: 1
+Summary: Wrapper to convert PDF files into jpg
+License: MIT License
+URL: https://github.com/pankajr141/pdf2jpg
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/43/f4/4c98dc5bfc5e85413c6c795292f3083b76e177253e4b0b4f7584f8945074/pdf2jpg-1.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-img2pdf
+
+%description
+# PDF2JPG
+
+This package is use to convert pdf files int jpg.
+More detailed documentation can be found https://github.com/pankajr141/pdf2jpgs
+
+
+
+%package -n python3-pdf2jpg
+Summary: Wrapper to convert PDF files into jpg
+Provides: python-pdf2jpg
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pdf2jpg
+# PDF2JPG
+
+This package is use to convert pdf files int jpg.
+More detailed documentation can be found https://github.com/pankajr141/pdf2jpgs
+
+
+
+%package help
+Summary: Development documents and examples for pdf2jpg
+Provides: python3-pdf2jpg-doc
+%description help
+# PDF2JPG
+
+This package is use to convert pdf files int jpg.
+More detailed documentation can be found https://github.com/pankajr141/pdf2jpgs
+
+
+
+%prep
+%autosetup -n pdf2jpg-1.1
+
+%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-pdf2jpg -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..62102ac
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+3c33d361074774375ed330c189ee54a1 pdf2jpg-1.1.tar.gz