diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-31 03:18:47 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 03:18:47 +0000 |
| commit | 10d1a5353e22e3e56bd8ba2657d45a3f2561d372 (patch) | |
| tree | 3ad059b40ace3bae4b2a49cdbd247404f33a5d8a | |
| parent | 73212d3f9de8c6f78346a067bb598f76e4915734 (diff) | |
automatic import of python-fsgdeploy
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-fsgdeploy.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/FSGDeploy-0.2.26.zip diff --git a/python-fsgdeploy.spec b/python-fsgdeploy.spec new file mode 100644 index 0000000..41e2bbe --- /dev/null +++ b/python-fsgdeploy.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-FSGDeploy +Version: 0.2.26 +Release: 1 +Summary: Universal website deploy script. +License: LICENSE.txt +URL: http://pypi.python.org/pypi/FSGDeploy/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/21/40/b32ba4804a19cf83217f78d94f673137841105b8ba9435d6a90f7de9eac3/FSGDeploy-0.2.26.zip +BuildArch: noarch + + +%description + + +%package -n python3-FSGDeploy +Summary: Universal website deploy script. +Provides: python-FSGDeploy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-FSGDeploy + + +%package help +Summary: Development documents and examples for FSGDeploy +Provides: python3-FSGDeploy-doc +%description help + + +%prep +%autosetup -n FSGDeploy-0.2.26 + +%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-FSGDeploy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.26-1 +- Package Spec generated @@ -0,0 +1 @@ +2d5cae2088a2212e6939c89e638c44f0 FSGDeploy-0.2.26.zip |
