summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 23:53:27 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 23:53:27 +0000
commit10af97a2a16627175471e6bc189868a88d6298ef (patch)
tree11def4f81bec487544306584c45968cb164053e6
parent679670ba6bb8f16b2b31b5c29bb6cd85b4ca52f3 (diff)
automatic import of python-gitman
-rw-r--r--.gitignore1
-rw-r--r--python-gitman.spec552
-rw-r--r--sources1
3 files changed, 554 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f291cd9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gitman-3.4.tar.gz
diff --git a/python-gitman.spec b/python-gitman.spec
new file mode 100644
index 0000000..1aa28da
--- /dev/null
+++ b/python-gitman.spec
@@ -0,0 +1,552 @@
+%global _empty_manifest_terminate_build 0
+Name: python-gitman
+Version: 3.4
+Release: 1
+Summary: A language-agnostic dependency manager using Git.
+License: MIT
+URL: https://pypi.org/project/gitman
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c7/c7/6ea9e90188ac456a8c2b8bc246b8eb7da93c3f3fcba75237eb53b07e5f0b/gitman-3.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-datafiles
+Requires: python3-minilog
+Requires: python3-universal-startfile
+
+%description
+## Overview
+
+Gitman is a language-agnostic dependency manager using Git. It aims to serve as a submodules replacement and provides advanced options for managing versions of nested Git repositories.
+
+[![Demo](https://raw.githubusercontent.com/jacebrowning/gitman/main/docs/demo.gif)](https://asciinema.org/a/3DLos4HIU84P0AfFlZMYcgPus)
+
+[![Unix Build Status](https://img.shields.io/travis/com/jacebrowning/gitman/main.svg?label=unix)](https://travis-ci.com/jacebrowning/gitman)
+[![Windows Build Status](https://img.shields.io/appveyor/ci/jacebrowning/gitman/main.svg?label=window)](https://ci.appveyor.com/project/jacebrowning/gitman)
+[![Coverage Status](https://img.shields.io/coveralls/jacebrowning/gitman/main.svg)](https://coveralls.io/r/jacebrowning/gitman)
+[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/jacebrowning/gitman.svg)](https://scrutinizer-ci.com/g/jacebrowning/gitman/?branch=main)
+[![PyPI License](https://img.shields.io/pypi/l/gitman.svg)](https://pypi.org/project/gitman)
+[![PyPI Version](https://img.shields.io/pypi/v/gitman.svg)](https://pypi.org/project/gitman)
+[![PyPI Downloads](https://img.shields.io/pypi/dm/gitman.svg?color=orange)](https://pypistats.org/packages/gitman)
+
+## Setup
+
+### Requirements
+
+- Python 3.8+
+- Git 2.8+ (with [stored credentials](http://gitman.readthedocs.io/en/latest/setup/git/))
+
+### Installation
+
+Install this tool globally with [pipx](https://pipxproject.github.io/pipx/) (or pip):
+
+```sh
+$ pipx install gitman
+```
+or add it to your [Poetry](https://python-poetry.org/docs/) project:
+
+```sh
+$ poetry add gitman
+```
+
+### Configuration
+
+Generate a sample config file:
+
+```sh
+$ gitman init
+```
+
+or manually create one (`gitman.yml` or `.gitman.yml`) in the root of your working tree:
+
+```yaml
+location: vendor/gitman
+
+sources:
+ - repo: "https://github.com/kstenerud/iOS-Universal-Framework"
+ name: framework
+ rev: Mk5-end-of-life
+ - repo: "https://github.com/jonreid/XcodeCoverage"
+ name: coverage
+ links:
+ - target: Tools/XcodeCoverage
+ - repo: "https://github.com/dxa4481/truffleHog"
+ name: trufflehog
+ rev: master
+ scripts:
+ - chmod a+x truffleHog/truffleHog.py
+ - repo: "https://github.com/FortAwesome/Font-Awesome"
+ name: fontawesome
+ rev: master
+ sparse_paths:
+ - "webfonts/*"
+ - repo: "https://github.com/google/material-design-icons"
+ name: material-design-icons
+ rev: master
+
+groups:
+ - name: code
+ members:
+ - framework
+ - trufflehog
+ - name: resources
+ members:
+ - fontawesome
+ - material-design-icons
+
+default_group: code
+```
+
+Ignore the dependency storage location:
+
+```sh
+$ echo vendor/gitman >> .gitignore
+```
+
+## Usage
+
+See the available commands:
+
+```sh
+$ gitman --help
+```
+
+### Updating Dependencies
+
+Get the latest versions of all dependencies:
+
+```sh
+$ gitman update
+```
+
+which will essentially:
+
+1. Create a working tree at `<root>`/`<location>`/`<name>`
+2. Fetch from `repo` and checkout the specified `rev`
+3. Symbolically link each `<location>`/`<name>` from `<root>`/`<link>` (if specified)
+4. Repeat for all nested working trees containing a config file
+5. Record the actual commit SHAs that were checked out (with `--lock` option)
+6. Run optional post-install scripts for each dependency
+
+where `rev` can be:
+
+- all or part of a commit SHA: `123def`
+- a tag: `v1.0`
+- a branch: `main`
+- a `rev-parse` date: `'main@{2015-06-18 10:30:59}'`
+
+Alternatively, get the latest versions of specific dependencies:
+
+```sh
+$ gitman update framework
+```
+
+or named groups:
+
+```sh
+$ gitman update resources
+```
+
+### Restoring Previous Versions
+
+Display the versions that are currently installed:
+
+```sh
+$ gitman list
+```
+
+Reinstall these specific versions at a later time:
+
+```sh
+$ gitman install
+```
+
+### Deleting Dependencies
+
+Remove all installed dependencies:
+
+```sh
+$ gitman uninstall
+```
+
+## Resources
+
+- [Source code](https://github.com/jacebrowning/gitman)
+- [Issue tracker](https://github.com/jacebrowning/gitman/issues)
+- [Release history](https://github.com/jacebrowning/gitman/blob/main/CHANGELOG.md)
+
+
+%package -n python3-gitman
+Summary: A language-agnostic dependency manager using Git.
+Provides: python-gitman
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-gitman
+## Overview
+
+Gitman is a language-agnostic dependency manager using Git. It aims to serve as a submodules replacement and provides advanced options for managing versions of nested Git repositories.
+
+[![Demo](https://raw.githubusercontent.com/jacebrowning/gitman/main/docs/demo.gif)](https://asciinema.org/a/3DLos4HIU84P0AfFlZMYcgPus)
+
+[![Unix Build Status](https://img.shields.io/travis/com/jacebrowning/gitman/main.svg?label=unix)](https://travis-ci.com/jacebrowning/gitman)
+[![Windows Build Status](https://img.shields.io/appveyor/ci/jacebrowning/gitman/main.svg?label=window)](https://ci.appveyor.com/project/jacebrowning/gitman)
+[![Coverage Status](https://img.shields.io/coveralls/jacebrowning/gitman/main.svg)](https://coveralls.io/r/jacebrowning/gitman)
+[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/jacebrowning/gitman.svg)](https://scrutinizer-ci.com/g/jacebrowning/gitman/?branch=main)
+[![PyPI License](https://img.shields.io/pypi/l/gitman.svg)](https://pypi.org/project/gitman)
+[![PyPI Version](https://img.shields.io/pypi/v/gitman.svg)](https://pypi.org/project/gitman)
+[![PyPI Downloads](https://img.shields.io/pypi/dm/gitman.svg?color=orange)](https://pypistats.org/packages/gitman)
+
+## Setup
+
+### Requirements
+
+- Python 3.8+
+- Git 2.8+ (with [stored credentials](http://gitman.readthedocs.io/en/latest/setup/git/))
+
+### Installation
+
+Install this tool globally with [pipx](https://pipxproject.github.io/pipx/) (or pip):
+
+```sh
+$ pipx install gitman
+```
+or add it to your [Poetry](https://python-poetry.org/docs/) project:
+
+```sh
+$ poetry add gitman
+```
+
+### Configuration
+
+Generate a sample config file:
+
+```sh
+$ gitman init
+```
+
+or manually create one (`gitman.yml` or `.gitman.yml`) in the root of your working tree:
+
+```yaml
+location: vendor/gitman
+
+sources:
+ - repo: "https://github.com/kstenerud/iOS-Universal-Framework"
+ name: framework
+ rev: Mk5-end-of-life
+ - repo: "https://github.com/jonreid/XcodeCoverage"
+ name: coverage
+ links:
+ - target: Tools/XcodeCoverage
+ - repo: "https://github.com/dxa4481/truffleHog"
+ name: trufflehog
+ rev: master
+ scripts:
+ - chmod a+x truffleHog/truffleHog.py
+ - repo: "https://github.com/FortAwesome/Font-Awesome"
+ name: fontawesome
+ rev: master
+ sparse_paths:
+ - "webfonts/*"
+ - repo: "https://github.com/google/material-design-icons"
+ name: material-design-icons
+ rev: master
+
+groups:
+ - name: code
+ members:
+ - framework
+ - trufflehog
+ - name: resources
+ members:
+ - fontawesome
+ - material-design-icons
+
+default_group: code
+```
+
+Ignore the dependency storage location:
+
+```sh
+$ echo vendor/gitman >> .gitignore
+```
+
+## Usage
+
+See the available commands:
+
+```sh
+$ gitman --help
+```
+
+### Updating Dependencies
+
+Get the latest versions of all dependencies:
+
+```sh
+$ gitman update
+```
+
+which will essentially:
+
+1. Create a working tree at `<root>`/`<location>`/`<name>`
+2. Fetch from `repo` and checkout the specified `rev`
+3. Symbolically link each `<location>`/`<name>` from `<root>`/`<link>` (if specified)
+4. Repeat for all nested working trees containing a config file
+5. Record the actual commit SHAs that were checked out (with `--lock` option)
+6. Run optional post-install scripts for each dependency
+
+where `rev` can be:
+
+- all or part of a commit SHA: `123def`
+- a tag: `v1.0`
+- a branch: `main`
+- a `rev-parse` date: `'main@{2015-06-18 10:30:59}'`
+
+Alternatively, get the latest versions of specific dependencies:
+
+```sh
+$ gitman update framework
+```
+
+or named groups:
+
+```sh
+$ gitman update resources
+```
+
+### Restoring Previous Versions
+
+Display the versions that are currently installed:
+
+```sh
+$ gitman list
+```
+
+Reinstall these specific versions at a later time:
+
+```sh
+$ gitman install
+```
+
+### Deleting Dependencies
+
+Remove all installed dependencies:
+
+```sh
+$ gitman uninstall
+```
+
+## Resources
+
+- [Source code](https://github.com/jacebrowning/gitman)
+- [Issue tracker](https://github.com/jacebrowning/gitman/issues)
+- [Release history](https://github.com/jacebrowning/gitman/blob/main/CHANGELOG.md)
+
+
+%package help
+Summary: Development documents and examples for gitman
+Provides: python3-gitman-doc
+%description help
+## Overview
+
+Gitman is a language-agnostic dependency manager using Git. It aims to serve as a submodules replacement and provides advanced options for managing versions of nested Git repositories.
+
+[![Demo](https://raw.githubusercontent.com/jacebrowning/gitman/main/docs/demo.gif)](https://asciinema.org/a/3DLos4HIU84P0AfFlZMYcgPus)
+
+[![Unix Build Status](https://img.shields.io/travis/com/jacebrowning/gitman/main.svg?label=unix)](https://travis-ci.com/jacebrowning/gitman)
+[![Windows Build Status](https://img.shields.io/appveyor/ci/jacebrowning/gitman/main.svg?label=window)](https://ci.appveyor.com/project/jacebrowning/gitman)
+[![Coverage Status](https://img.shields.io/coveralls/jacebrowning/gitman/main.svg)](https://coveralls.io/r/jacebrowning/gitman)
+[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/jacebrowning/gitman.svg)](https://scrutinizer-ci.com/g/jacebrowning/gitman/?branch=main)
+[![PyPI License](https://img.shields.io/pypi/l/gitman.svg)](https://pypi.org/project/gitman)
+[![PyPI Version](https://img.shields.io/pypi/v/gitman.svg)](https://pypi.org/project/gitman)
+[![PyPI Downloads](https://img.shields.io/pypi/dm/gitman.svg?color=orange)](https://pypistats.org/packages/gitman)
+
+## Setup
+
+### Requirements
+
+- Python 3.8+
+- Git 2.8+ (with [stored credentials](http://gitman.readthedocs.io/en/latest/setup/git/))
+
+### Installation
+
+Install this tool globally with [pipx](https://pipxproject.github.io/pipx/) (or pip):
+
+```sh
+$ pipx install gitman
+```
+or add it to your [Poetry](https://python-poetry.org/docs/) project:
+
+```sh
+$ poetry add gitman
+```
+
+### Configuration
+
+Generate a sample config file:
+
+```sh
+$ gitman init
+```
+
+or manually create one (`gitman.yml` or `.gitman.yml`) in the root of your working tree:
+
+```yaml
+location: vendor/gitman
+
+sources:
+ - repo: "https://github.com/kstenerud/iOS-Universal-Framework"
+ name: framework
+ rev: Mk5-end-of-life
+ - repo: "https://github.com/jonreid/XcodeCoverage"
+ name: coverage
+ links:
+ - target: Tools/XcodeCoverage
+ - repo: "https://github.com/dxa4481/truffleHog"
+ name: trufflehog
+ rev: master
+ scripts:
+ - chmod a+x truffleHog/truffleHog.py
+ - repo: "https://github.com/FortAwesome/Font-Awesome"
+ name: fontawesome
+ rev: master
+ sparse_paths:
+ - "webfonts/*"
+ - repo: "https://github.com/google/material-design-icons"
+ name: material-design-icons
+ rev: master
+
+groups:
+ - name: code
+ members:
+ - framework
+ - trufflehog
+ - name: resources
+ members:
+ - fontawesome
+ - material-design-icons
+
+default_group: code
+```
+
+Ignore the dependency storage location:
+
+```sh
+$ echo vendor/gitman >> .gitignore
+```
+
+## Usage
+
+See the available commands:
+
+```sh
+$ gitman --help
+```
+
+### Updating Dependencies
+
+Get the latest versions of all dependencies:
+
+```sh
+$ gitman update
+```
+
+which will essentially:
+
+1. Create a working tree at `<root>`/`<location>`/`<name>`
+2. Fetch from `repo` and checkout the specified `rev`
+3. Symbolically link each `<location>`/`<name>` from `<root>`/`<link>` (if specified)
+4. Repeat for all nested working trees containing a config file
+5. Record the actual commit SHAs that were checked out (with `--lock` option)
+6. Run optional post-install scripts for each dependency
+
+where `rev` can be:
+
+- all or part of a commit SHA: `123def`
+- a tag: `v1.0`
+- a branch: `main`
+- a `rev-parse` date: `'main@{2015-06-18 10:30:59}'`
+
+Alternatively, get the latest versions of specific dependencies:
+
+```sh
+$ gitman update framework
+```
+
+or named groups:
+
+```sh
+$ gitman update resources
+```
+
+### Restoring Previous Versions
+
+Display the versions that are currently installed:
+
+```sh
+$ gitman list
+```
+
+Reinstall these specific versions at a later time:
+
+```sh
+$ gitman install
+```
+
+### Deleting Dependencies
+
+Remove all installed dependencies:
+
+```sh
+$ gitman uninstall
+```
+
+## Resources
+
+- [Source code](https://github.com/jacebrowning/gitman)
+- [Issue tracker](https://github.com/jacebrowning/gitman/issues)
+- [Release history](https://github.com/jacebrowning/gitman/blob/main/CHANGELOG.md)
+
+
+%prep
+%autosetup -n gitman-3.4
+
+%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-gitman -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 3.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..daa8dce
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+dff4f28eeef15d76242366ae3acd9285 gitman-3.4.tar.gz