summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 11:12:34 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 11:12:34 +0000
commitcae469a4794dc6bcf32e2d92c9a0b6d651e69176 (patch)
treeb0c1158558be9ce0a326289587e812980dcacbd3
parentcf65dc2375a30246c3fb54c74149329a0b2c4982 (diff)
automatic import of python-flatpak-module-tools
-rw-r--r--.gitignore1
-rw-r--r--python-flatpak-module-tools.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..14189a0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/flatpak-module-tools-0.14.tar.gz
diff --git a/python-flatpak-module-tools.spec b/python-flatpak-module-tools.spec
new file mode 100644
index 0000000..ff37811
--- /dev/null
+++ b/python-flatpak-module-tools.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-flatpak-module-tools
+Version: 0.14
+Release: 1
+Summary: Tools for creating and maintaining Flatpaks as Fedora modules
+License: MIT
+URL: https://pagure.io/flatpak-module-tools
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/96/dc/abd552ce20cb384e40ff31d515b576a4bed36e0e29ada5cacf14134b9bdf/flatpak-module-tools-0.14.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-flatpak-module-tools
+Summary: Tools for creating and maintaining Flatpaks as Fedora modules
+Provides: python-flatpak-module-tools
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-flatpak-module-tools
+
+
+%package help
+Summary: Development documents and examples for flatpak-module-tools
+Provides: python3-flatpak-module-tools-doc
+%description help
+
+
+%prep
+%autosetup -n flatpak-module-tools-0.14
+
+%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-flatpak-module-tools -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.14-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..81b8907
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b0745c2c2b454e9335002388678336e6 flatpak-module-tools-0.14.tar.gz