summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 19:51:39 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 19:51:39 +0000
commitc4cd621378d77a1c05b21366acc2f0194e17cb16 (patch)
treeab7dfbdc6602659e45e69450155876bb422bf080
parent942bd18c734a66fa761a66d98270763e42eaa032 (diff)
automatic import of python-duplicity
-rw-r--r--.gitignore1
-rw-r--r--python-duplicity.spec276
-rw-r--r--sources1
3 files changed, 278 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8f17dd9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/duplicity-1.2.2.tar.gz
diff --git a/python-duplicity.spec b/python-duplicity.spec
new file mode 100644
index 0000000..a40e949
--- /dev/null
+++ b/python-duplicity.spec
@@ -0,0 +1,276 @@
+%global _empty_manifest_terminate_build 0
+Name: python-duplicity
+Version: 1.2.2
+Release: 1
+Summary: Encrypted backup using rsync algorithm
+License: GNU General Public License v2 (GPLv2)
+URL: http://duplicity.us
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/15/f5/809a12886e56129dbaf2f9c9f21cce4e830fafe4f24fe84f232630630c5a/duplicity-1.2.2.tar.gz
+BuildArch: noarch
+
+
+%description
+# INSTALLATION
+
+Thank you for trying duplicity. To install, run:
+
+```
+python setup.py install
+```
+
+The build process can be also be run separately:
+
+```
+python setup.py build
+```
+
+If you want to use python 3 replace `python` with `python3`
+
+The default prefix is /usr, so files are put in /usr/bin,
+/usr/share/man/, etc. An alternate prefix can be specified
+using the --prefix=<prefix> option. For example:
+
+```
+python setup.py install --prefix=/usr/local
+export PYTHONPATH='/usr/local/lib/python.x/site-packages/'
+/usr/local/bin/duplicity -V`
+```
+
+# REQUIREMENTS
+
+ * Python 2.7, or 3.5 to 3.10
+ * librsync v0.9.6 or later
+ * GnuPG for encryption
+ * see `requirements.txt` for complete list
+
+If you install from the source package, you will also need:
+
+ * Python development files, normally found in module 'python-dev'.
+ * librsync development files, normally found in module 'librsync-dev'.
+
+Install python modules by performing the following command in duplicity's root directory:
+
+```
+pip install -r requirements.txt
+```
+or:
+
+```
+pip3 install -r requirements.txt
+```
+if you're using python3
+
+# DEVELOPMENT
+
+For more information on downloading duplicity's source code from the
+code repository and developing for duplicity, see README-REPO.
+
+# HELP
+
+For more information see the duplicity web site at:
+
+ http://duplicity.us
+
+ or
+
+ http://duplicity.gitlab.io
+
+or post to the mailing list at
+
+ https://lists.nongnu.org/mailman/listinfo/duplicity-talk
+
+
+%package -n python3-duplicity
+Summary: Encrypted backup using rsync algorithm
+Provides: python-duplicity
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-duplicity
+# INSTALLATION
+
+Thank you for trying duplicity. To install, run:
+
+```
+python setup.py install
+```
+
+The build process can be also be run separately:
+
+```
+python setup.py build
+```
+
+If you want to use python 3 replace `python` with `python3`
+
+The default prefix is /usr, so files are put in /usr/bin,
+/usr/share/man/, etc. An alternate prefix can be specified
+using the --prefix=<prefix> option. For example:
+
+```
+python setup.py install --prefix=/usr/local
+export PYTHONPATH='/usr/local/lib/python.x/site-packages/'
+/usr/local/bin/duplicity -V`
+```
+
+# REQUIREMENTS
+
+ * Python 2.7, or 3.5 to 3.10
+ * librsync v0.9.6 or later
+ * GnuPG for encryption
+ * see `requirements.txt` for complete list
+
+If you install from the source package, you will also need:
+
+ * Python development files, normally found in module 'python-dev'.
+ * librsync development files, normally found in module 'librsync-dev'.
+
+Install python modules by performing the following command in duplicity's root directory:
+
+```
+pip install -r requirements.txt
+```
+or:
+
+```
+pip3 install -r requirements.txt
+```
+if you're using python3
+
+# DEVELOPMENT
+
+For more information on downloading duplicity's source code from the
+code repository and developing for duplicity, see README-REPO.
+
+# HELP
+
+For more information see the duplicity web site at:
+
+ http://duplicity.us
+
+ or
+
+ http://duplicity.gitlab.io
+
+or post to the mailing list at
+
+ https://lists.nongnu.org/mailman/listinfo/duplicity-talk
+
+
+%package help
+Summary: Development documents and examples for duplicity
+Provides: python3-duplicity-doc
+%description help
+# INSTALLATION
+
+Thank you for trying duplicity. To install, run:
+
+```
+python setup.py install
+```
+
+The build process can be also be run separately:
+
+```
+python setup.py build
+```
+
+If you want to use python 3 replace `python` with `python3`
+
+The default prefix is /usr, so files are put in /usr/bin,
+/usr/share/man/, etc. An alternate prefix can be specified
+using the --prefix=<prefix> option. For example:
+
+```
+python setup.py install --prefix=/usr/local
+export PYTHONPATH='/usr/local/lib/python.x/site-packages/'
+/usr/local/bin/duplicity -V`
+```
+
+# REQUIREMENTS
+
+ * Python 2.7, or 3.5 to 3.10
+ * librsync v0.9.6 or later
+ * GnuPG for encryption
+ * see `requirements.txt` for complete list
+
+If you install from the source package, you will also need:
+
+ * Python development files, normally found in module 'python-dev'.
+ * librsync development files, normally found in module 'librsync-dev'.
+
+Install python modules by performing the following command in duplicity's root directory:
+
+```
+pip install -r requirements.txt
+```
+or:
+
+```
+pip3 install -r requirements.txt
+```
+if you're using python3
+
+# DEVELOPMENT
+
+For more information on downloading duplicity's source code from the
+code repository and developing for duplicity, see README-REPO.
+
+# HELP
+
+For more information see the duplicity web site at:
+
+ http://duplicity.us
+
+ or
+
+ http://duplicity.gitlab.io
+
+or post to the mailing list at
+
+ https://lists.nongnu.org/mailman/listinfo/duplicity-talk
+
+
+%prep
+%autosetup -n duplicity-1.2.2
+
+%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-duplicity -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..577b1b7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0dd208e6fb02124f3366523260005344 duplicity-1.2.2.tar.gz