From ac0bb393178e6464e0a50bb09ee18e8bb5cc41de Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 18 Sep 2014 16:46:00 +0300 Subject: [PATCH] Add README file Change-Id: Ic25a5d12a0555d96315d53a24f6a0aa57a3ea146 Signed-off-by: Markus Lehtonen --- README | 63 +++++++++++++++++++++++++++++ packaging/obs-service-git-buildpackage.spec | 2 +- 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..8eb1b28 --- /dev/null +++ b/README @@ -0,0 +1,63 @@ +OBS-SERVICE-GIT-BUILDPACKAGE +============================ + +Obs-service-git-buildpackage is a source service for OBS (openSUSE Build +Service) that uses the git-buildpackage tool to create the packaging files from +a Git repository. It clones and caches a remote Git repository and uses the +"gbp buildpackage[-rpm]" commands to export the packaging files from there. + +The service supports both RPM and Debian packaging. + + +INSTALLATION +------------ +Please see the DEPLOYMENT document under package documentation. + + +CONFIGURATION FILE +------------------ +The service will read the following configuration files: + /etc/obs/services/git-buildpackage + System-wide configuration meant for server installations + + ~/.obs/git-buildpackage + User-specific configuration for desktop installations + +The configuration are read in the above order and system-wide settings are +overridden by the the user-specific config. See the example config file +(obs-service-git-buildpackage.example.conf) in package documentation for more +details. + +For testing, if you run the service script directly, you can also define config +file(s) with the --config command line option. + + +PARAMETERS +---------- +The following parameters are accepted in the _service file. + URL + Remote repository URL. This is a mandatory parameter. + + TREEISH + Revision (tree-ish) to be built. Default is HEAD. + + [yes|no|auto] + Whether to build Deb package (i.e. export Deb packaging files with + gbp-buildpackage). Set to 'auto' for the service to guess whether to + run gbp-buildpackage or not. + + [yes|no|auto] + Whether to build RPM package (i.e. export RPM packaging files with + gbp-buildpackage-rpm). Set to 'auto' for the service to guess whether + to run gbp-buildpackage-rpm or not. + + VCS_TAG_FORMAT + Set/update the VCS: tag in the spec file. The parameter is a Python- + style format string and accepts substitution keys like '%(tagname)s' + and '%(commit)s'. See gbp-buildpackage-rpm manpage for all valid keys. + + This option only affects rpm packages. + + [yes|no] + Enable verbose output. Mainly meant for debugging purposes. + diff --git a/packaging/obs-service-git-buildpackage.spec b/packaging/obs-service-git-buildpackage.spec index 8fbe20b..eb7890a 100644 --- a/packaging/obs-service-git-buildpackage.spec +++ b/packaging/obs-service-git-buildpackage.spec @@ -78,7 +78,7 @@ rm -rf %{buildroot}%{python_sitelib}/*info %files %defattr(-,root,root,-) -%doc COPYING DEPLOYMENT +%doc COPYING DEPLOYMENT README %doc config/obs-service-git-buildpackage.example.config %dir /usr/lib/obs %dir /usr/lib/obs/service -- 2.7.4