summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 16:19:02 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 16:19:02 +0000
commiteaabad3a7bfe40debda91b1c51fc93e80838961e (patch)
tree39873f53694405cc6bef5c32f5eb3765a309f781
parent51bf0415fbeef3ff7cf3acc01a4e2a4f4f3575b6 (diff)
automatic import of python-rdopkg
-rw-r--r--.gitignore1
-rw-r--r--python-rdopkg.spec439
-rw-r--r--sources1
3 files changed, 441 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..6fe110c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rdopkg-1.5.1.tar.gz
diff --git a/python-rdopkg.spec b/python-rdopkg.spec
new file mode 100644
index 0000000..489b1e4
--- /dev/null
+++ b/python-rdopkg.spec
@@ -0,0 +1,439 @@
+%global _empty_manifest_terminate_build 0
+Name: python-rdopkg
+Version: 1.5.1
+Release: 1
+Summary: RPM packaging automation tool
+License: Apache Software License
+URL: https://github.com/softwarefactory-project/rdopkg
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/74/9b/6c88ac230a9692a67920ca5c33e6b53fb965ad5c590a9a3aef0bde2c46ed/rdopkg-1.5.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-blessings
+Requires: python3-distroinfo
+Requires: python3-munch
+Requires: python3-pbr
+Requires: python3-PyYAML
+Requires: python3-pyOpenSSL
+Requires: python3-pymod2pkg
+Requires: python3-requests
+Requires: python3-six
+Requires: python3-rpmlint
+
+%description
+# rdopkg
+
+`rdopkg` is an RPM packaging automation tool. It provides automation for
+package maintenance including git-based patches management and automagic
+rebases to new upstream versions with nice .spec changes, changelogs and
+commit messages for both CLI and CI usage.
+It also contains various functionality we needed for
+[RDO](https://www.rdoproject.org/) packaging, such as advanced
+`requirements.txt` management for python projects and
+[rdoinfo](https://github.com/redhat-openstack/rdoinfo) integration.
+
+Generic
+[distgit](https://www.rdoproject.org/documentation/intro-packaging/#distgit---where-the-spec-file-lives)
+and patches management functionality and conventions provided by `rdopkg`
+proved to be efficient way of packaging fast-moving upstream projects with
+minimal human effort but without losing control over individual packages.
+
+`rdopkg` is now considered **stable**. It was originally developed to serve
+the needs of the mighty [RDO](https://www.rdoproject.org/) packager-warriors
+and their weapons such as
+[DLRN](https://github.com/softwarefactory-project/DLRN), but it can help with
+any RPM package. For example, see [how you can manage your RPMs with
+rdopkg](https://www.rdoproject.org//blog/2017/03/let-rdopkg-manage-your-RPM-package/).
+
+`rdopkg` uses [software factory](https://softwarefactory-project.io/)
+for CI and every commit goes through automatic unit, feature, and integration
+testing as well as human reviews.
+
+See [open rdopkg reviews](https://softwarefactory-project.io/r/#/q/status:open+project:rdopkg).
+
+
+## Installation
+
+`rdopkg` is currently compatible with both python 3 and python 2.
+
+
+### from Fedora/EPEL repos (default)
+
+`rdopkg` is available on **Fedora 25** and newer:
+
+ dnf install rdopkg
+
+On CentOS/RHEL 7, `rdopkg` is available from
+[EPEL](https://fedoraproject.org/wiki/EPEL).
+
+On **CentOS 7**:
+
+ yum install epel-release
+ yum install rdopkg
+
+On **RHEL 7**:
+
+ yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+ yum install rdopkg
+
+
+### from source
+
+If you want to hack `rdopkg` or just have the latest fixes without waiting for
+next release, I suggest using the git repo directly:
+
+ git clone https://github.com/softwarefactory-project/rdopkg
+ cd rdopkg
+ python setup.py develop --user
+
+You may set the preference over `rdopkg` RPM by correctly positioning
+`~/.local/bin/rdopkg` in your `$PATH`.
+
+Or you can use virtualenv to avoid conflicts with RPM:
+
+ git clone https://github.com/softwarefactory-project/rdopkg
+ cd rdopkg
+ virtualenv --system-site-packages ~/rdopkg-venv
+ source ~/rdopkg-venv/bin/activate
+ python setup.py develop
+ ln `which rdopkg` ~/bin/rdopkg-dev
+
+ rdopkg-dev --version
+
+Required python modules are listed in
+[requirements.txt](requirements.txt) and also in
+[rdopkg.spec](https://src.fedoraproject.org/rpms/rdopkg/blob/master/f/rdopkg.spec) as
+RPM Requires.
+
+
+### from PyPI
+
+For your convenience, `rdopkg` is also available from the Cheese
+Shop. This should come in handy especially if you want to reuse `rdopkg` as
+a module.
+
+ pip install rdopkg
+
+Note that you need to have python2-rpm(resp. python3-rpm) package installed in
+order for RPM macro related featuers to work as it isn't available from
+PyPI.
+
+
+## The Manual
+
+Exhaustive `rdopkg` manual is available, you can:
+
+ * read it nicely rendered on github: [rdopkg manual](https://github.com/softwarefactory-project/rdopkg/blob/master/doc/rdopkg.1.adoc)
+ * run `man rdopkg` if you installed from RPM
+ * render it to HTML/man using `make doc`
+
+You might also be interested in
+[RDO packaging intro](https://www.rdoproject.org/documentation/intro-packaging/)
+which contains some examples of `rdopkg` usage and more.
+
+
+## Bugs
+
+Please use the
+[github Issues](https://github.com/softwarefactory-project/rdopkg/issues)
+to report bugs. I usually fix critical bugs within days.
+
+
+
+
+
+%package -n python3-rdopkg
+Summary: RPM packaging automation tool
+Provides: python-rdopkg
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-rdopkg
+# rdopkg
+
+`rdopkg` is an RPM packaging automation tool. It provides automation for
+package maintenance including git-based patches management and automagic
+rebases to new upstream versions with nice .spec changes, changelogs and
+commit messages for both CLI and CI usage.
+It also contains various functionality we needed for
+[RDO](https://www.rdoproject.org/) packaging, such as advanced
+`requirements.txt` management for python projects and
+[rdoinfo](https://github.com/redhat-openstack/rdoinfo) integration.
+
+Generic
+[distgit](https://www.rdoproject.org/documentation/intro-packaging/#distgit---where-the-spec-file-lives)
+and patches management functionality and conventions provided by `rdopkg`
+proved to be efficient way of packaging fast-moving upstream projects with
+minimal human effort but without losing control over individual packages.
+
+`rdopkg` is now considered **stable**. It was originally developed to serve
+the needs of the mighty [RDO](https://www.rdoproject.org/) packager-warriors
+and their weapons such as
+[DLRN](https://github.com/softwarefactory-project/DLRN), but it can help with
+any RPM package. For example, see [how you can manage your RPMs with
+rdopkg](https://www.rdoproject.org//blog/2017/03/let-rdopkg-manage-your-RPM-package/).
+
+`rdopkg` uses [software factory](https://softwarefactory-project.io/)
+for CI and every commit goes through automatic unit, feature, and integration
+testing as well as human reviews.
+
+See [open rdopkg reviews](https://softwarefactory-project.io/r/#/q/status:open+project:rdopkg).
+
+
+## Installation
+
+`rdopkg` is currently compatible with both python 3 and python 2.
+
+
+### from Fedora/EPEL repos (default)
+
+`rdopkg` is available on **Fedora 25** and newer:
+
+ dnf install rdopkg
+
+On CentOS/RHEL 7, `rdopkg` is available from
+[EPEL](https://fedoraproject.org/wiki/EPEL).
+
+On **CentOS 7**:
+
+ yum install epel-release
+ yum install rdopkg
+
+On **RHEL 7**:
+
+ yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+ yum install rdopkg
+
+
+### from source
+
+If you want to hack `rdopkg` or just have the latest fixes without waiting for
+next release, I suggest using the git repo directly:
+
+ git clone https://github.com/softwarefactory-project/rdopkg
+ cd rdopkg
+ python setup.py develop --user
+
+You may set the preference over `rdopkg` RPM by correctly positioning
+`~/.local/bin/rdopkg` in your `$PATH`.
+
+Or you can use virtualenv to avoid conflicts with RPM:
+
+ git clone https://github.com/softwarefactory-project/rdopkg
+ cd rdopkg
+ virtualenv --system-site-packages ~/rdopkg-venv
+ source ~/rdopkg-venv/bin/activate
+ python setup.py develop
+ ln `which rdopkg` ~/bin/rdopkg-dev
+
+ rdopkg-dev --version
+
+Required python modules are listed in
+[requirements.txt](requirements.txt) and also in
+[rdopkg.spec](https://src.fedoraproject.org/rpms/rdopkg/blob/master/f/rdopkg.spec) as
+RPM Requires.
+
+
+### from PyPI
+
+For your convenience, `rdopkg` is also available from the Cheese
+Shop. This should come in handy especially if you want to reuse `rdopkg` as
+a module.
+
+ pip install rdopkg
+
+Note that you need to have python2-rpm(resp. python3-rpm) package installed in
+order for RPM macro related featuers to work as it isn't available from
+PyPI.
+
+
+## The Manual
+
+Exhaustive `rdopkg` manual is available, you can:
+
+ * read it nicely rendered on github: [rdopkg manual](https://github.com/softwarefactory-project/rdopkg/blob/master/doc/rdopkg.1.adoc)
+ * run `man rdopkg` if you installed from RPM
+ * render it to HTML/man using `make doc`
+
+You might also be interested in
+[RDO packaging intro](https://www.rdoproject.org/documentation/intro-packaging/)
+which contains some examples of `rdopkg` usage and more.
+
+
+## Bugs
+
+Please use the
+[github Issues](https://github.com/softwarefactory-project/rdopkg/issues)
+to report bugs. I usually fix critical bugs within days.
+
+
+
+
+
+%package help
+Summary: Development documents and examples for rdopkg
+Provides: python3-rdopkg-doc
+%description help
+# rdopkg
+
+`rdopkg` is an RPM packaging automation tool. It provides automation for
+package maintenance including git-based patches management and automagic
+rebases to new upstream versions with nice .spec changes, changelogs and
+commit messages for both CLI and CI usage.
+It also contains various functionality we needed for
+[RDO](https://www.rdoproject.org/) packaging, such as advanced
+`requirements.txt` management for python projects and
+[rdoinfo](https://github.com/redhat-openstack/rdoinfo) integration.
+
+Generic
+[distgit](https://www.rdoproject.org/documentation/intro-packaging/#distgit---where-the-spec-file-lives)
+and patches management functionality and conventions provided by `rdopkg`
+proved to be efficient way of packaging fast-moving upstream projects with
+minimal human effort but without losing control over individual packages.
+
+`rdopkg` is now considered **stable**. It was originally developed to serve
+the needs of the mighty [RDO](https://www.rdoproject.org/) packager-warriors
+and their weapons such as
+[DLRN](https://github.com/softwarefactory-project/DLRN), but it can help with
+any RPM package. For example, see [how you can manage your RPMs with
+rdopkg](https://www.rdoproject.org//blog/2017/03/let-rdopkg-manage-your-RPM-package/).
+
+`rdopkg` uses [software factory](https://softwarefactory-project.io/)
+for CI and every commit goes through automatic unit, feature, and integration
+testing as well as human reviews.
+
+See [open rdopkg reviews](https://softwarefactory-project.io/r/#/q/status:open+project:rdopkg).
+
+
+## Installation
+
+`rdopkg` is currently compatible with both python 3 and python 2.
+
+
+### from Fedora/EPEL repos (default)
+
+`rdopkg` is available on **Fedora 25** and newer:
+
+ dnf install rdopkg
+
+On CentOS/RHEL 7, `rdopkg` is available from
+[EPEL](https://fedoraproject.org/wiki/EPEL).
+
+On **CentOS 7**:
+
+ yum install epel-release
+ yum install rdopkg
+
+On **RHEL 7**:
+
+ yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+ yum install rdopkg
+
+
+### from source
+
+If you want to hack `rdopkg` or just have the latest fixes without waiting for
+next release, I suggest using the git repo directly:
+
+ git clone https://github.com/softwarefactory-project/rdopkg
+ cd rdopkg
+ python setup.py develop --user
+
+You may set the preference over `rdopkg` RPM by correctly positioning
+`~/.local/bin/rdopkg` in your `$PATH`.
+
+Or you can use virtualenv to avoid conflicts with RPM:
+
+ git clone https://github.com/softwarefactory-project/rdopkg
+ cd rdopkg
+ virtualenv --system-site-packages ~/rdopkg-venv
+ source ~/rdopkg-venv/bin/activate
+ python setup.py develop
+ ln `which rdopkg` ~/bin/rdopkg-dev
+
+ rdopkg-dev --version
+
+Required python modules are listed in
+[requirements.txt](requirements.txt) and also in
+[rdopkg.spec](https://src.fedoraproject.org/rpms/rdopkg/blob/master/f/rdopkg.spec) as
+RPM Requires.
+
+
+### from PyPI
+
+For your convenience, `rdopkg` is also available from the Cheese
+Shop. This should come in handy especially if you want to reuse `rdopkg` as
+a module.
+
+ pip install rdopkg
+
+Note that you need to have python2-rpm(resp. python3-rpm) package installed in
+order for RPM macro related featuers to work as it isn't available from
+PyPI.
+
+
+## The Manual
+
+Exhaustive `rdopkg` manual is available, you can:
+
+ * read it nicely rendered on github: [rdopkg manual](https://github.com/softwarefactory-project/rdopkg/blob/master/doc/rdopkg.1.adoc)
+ * run `man rdopkg` if you installed from RPM
+ * render it to HTML/man using `make doc`
+
+You might also be interested in
+[RDO packaging intro](https://www.rdoproject.org/documentation/intro-packaging/)
+which contains some examples of `rdopkg` usage and more.
+
+
+## Bugs
+
+Please use the
+[github Issues](https://github.com/softwarefactory-project/rdopkg/issues)
+to report bugs. I usually fix critical bugs within days.
+
+
+
+
+
+%prep
+%autosetup -n rdopkg-1.5.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-rdopkg -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..94335f9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+67b110b9b883b4015bff9b72e88f1ebf rdopkg-1.5.1.tar.gz