Skip to content

Commit 7a19b5c

Browse files
praiskupFrostyX
authored andcommitted
dist-git-client: README.md file
1 parent e6a8f6d commit 7a19b5c

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

dist-git-client/README.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
Get sources from DistGit
2+
========================
3+
4+
A simple, configurable python utility that is able to clone package sources from
5+
a DistGit repository, download sources from the corresponding lookaside cache
6+
location, and generate source RPM.
7+
8+
The utility is able to automatically map the .git/config clone URL into the
9+
corresponding DistGit instance configuration.
10+
11+
12+
Usage
13+
-----
14+
15+
Building package from DistGit is as simple as:
16+
17+
$ dist-git-client clone tar
18+
INFO: Checked call: git clone https://src.fedoraproject.org/rpms/tar.git
19+
Cloning into 'tar'...
20+
...
21+
Resolving deltas: 100% (802/802), done.
22+
23+
$ cd tar
24+
25+
$ dist-git-client sources
26+
INFO: Reading stdout from command: git rev-parse --abbrev-ref HEAD
27+
INFO: Reading sources specification file: sources
28+
INFO: Downloading tar-1.35.tar.xz
29+
INFO: Reading stdout from command: curl --help all
30+
INFO: Calling: curl -H Pragma: -o tar-1.35.tar.xz --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://src.fedoraproject.org/repo/pkgs/rpms/tar/tar-1.35.tar.xz/sha512/8b84ed661e6c878fa33eb5c1808d20351e6f40551ac63f96014fb0d0b9c72d5d94d8865d39e36bcb184fd250f84778a3b271bbd8bd2ceb69eece0c3568577510/tar-1.35.tar.xz
31+
% Total % Received % Xferd Average Speed Time Time Time Current
32+
Dload Upload Total Spent Left Speed
33+
100 2262k 100 2262k 0 0 1983k 0 0:00:01 0:00:01 --:--:-- 1984k
34+
INFO: Reading stdout from command: sha512sum tar-1.35.tar.xz
35+
INFO: Downloading tar-1.35.tar.xz.sig
36+
INFO: Calling: curl -H Pragma: -o tar-1.35.tar.xz.sig --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://src.fedoraproject.org/repo/pkgs/rpms/tar/tar-1.35.tar.xz.sig/sha512/00e5c95bf8015f75f59556a82ed7f50bddefe89754c7ff3c19411aee2f37626a5d65c33e18b87f7f8f96388d3f175fd095917419a3ad1c0fc9d6188088bac944/tar-1.35.tar.xz.sig
37+
% Total % Received % Xferd Average Speed Time Time Time Current
38+
Dload Upload Total Spent Left Speed
39+
100 95 100 95 0 0 270 0 --:--:-- --:--:-- --:--:-- 270
40+
INFO: Reading stdout from command: sha512sum tar-1.35.tar.xz.sig
41+
42+
$ dist-git-client srpm
43+
...
44+
Wrote: /tmp/tar-1.35-3.src.rpm
45+
46+
$ mock /tmp/tar-1.35-3.src.rpm
47+
...
48+
Wrote: /builddir/build/RPMS/tar-debuginfo-1.35-3.fc39.x86_64.rpm
49+
Wrote: /builddir/build/RPMS/tar-1.35-3.fc39.x86_64.rpm
50+
Wrote: /builddir/build/RPMS/tar-debugsource-1.35-3.fc39.x86_64.rpm
51+
...
52+
Finish: run
53+
54+
55+
Configuration
56+
-------------
57+
58+
The project provides also a predefined set of existing (public) DistGit
59+
instances (Fedora, CentOS, Fedora Copr). Check the configuration file
60+
`/etc/dist-git-client/default.ini` out for the configuration documentation,
61+
and feel free to drop another INI configuration file into the
62+
`/etc/dist-git-client/` directory.
63+
64+
65+
Install
66+
-------
67+
68+
From regular Fedora/EPEL repositories:
69+
70+
$ dnf install -y dist-git-client
71+
72+
From source code:
73+
74+
$ tito build --rpm --install
75+
76+
Without installation - directly from Git (development/debugging use-case, no support):
77+
78+
$ ./dist-git-client ....

dist-git-client/dist-git-client.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ PYTHON=python3 ./run_tests.sh -vv --no-coverage
6767

6868
%files
6969
%license LICENSE
70+
%doc README.md
7071
%_bindir/dist-git-client
7172
%_mandir/man1/dist-git-client.1*
7273
%dir %_sysconfdir/dist-git-client

0 commit comments

Comments
 (0)