]> git.pld-linux.org Git - packages/python-gitlab.git/commitdiff
add sample config auto/th/python-gitlab-0.16-1
authorElan Ruusamäe <glen@delfi.ee>
Sun, 16 Oct 2016 17:48:22 +0000 (20:48 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 16 Oct 2016 17:48:44 +0000 (20:48 +0300)
http://python-gitlab.readthedocs.io/en/stable/cli.html

config.cfg [new file with mode: 0644]
python-gitlab.spec

diff --git a/config.cfg b/config.cfg
new file mode 100644 (file)
index 0000000..b648df2
--- /dev/null
@@ -0,0 +1,16 @@
+# http://python-gitlab.readthedocs.io/en/stable/cli.html
+
+[global]
+default = somewhere
+ssl_verify = true
+timeout = 5
+
+[somewhere]
+url = https://some.whe.re
+private_token = vTbFeqJYCY3sibBP7BZM
+
+[elsewhere]
+url = http://else.whe.re:8080
+private_token = CkqsjqcQSFH5FQKDccu4
+timeout = 1
+
index 57ff72dd981a1430c8192d43eaf9db217f614d0b..9b275792db7e3f3b81d00c87863382553a946585 100644 (file)
@@ -16,6 +16,7 @@ License:      LGPLv3
 Group:         Libraries/Python
 Source0:       https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
 # Source0-md5: e0421d930718021e7d796d74d2ad7194
 Group:         Libraries/Python
 Source0:       https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
 # Source0-md5: e0421d930718021e7d796d74d2ad7194
+Source1:       config.cfg
 URL:           https://github.com/gpocentek/python-gitlab
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
 URL:           https://github.com/gpocentek/python-gitlab
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
@@ -80,7 +81,7 @@ mv $RPM_BUILD_ROOT%{_bindir}/gitlab $RPM_BUILD_ROOT%{_bindir}/gitlab-3
 %endif
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
 %endif
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
-touch $RPM_BUILD_ROOT%{_sysconfdir}/python-gitlab.cfg
+cp -p %{_sourcedir}/config.cfg $RPM_BUILD_ROOT%{_sysconfdir}/python-gitlab.cfg
 
 ln -s gitlab-2 $RPM_BUILD_ROOT%{_bindir}/gitlab
 
 
 ln -s gitlab-2 $RPM_BUILD_ROOT%{_bindir}/gitlab
 
This page took 0.063046 seconds and 4 git commands to generate.