Add README file test-devel
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 18 Sep 2014 13:46:00 +0000 (16:46 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 18 Sep 2014 13:46:00 +0000 (16:46 +0300)
Change-Id: Ic25a5d12a0555d96315d53a24f6a0aa57a3ea146
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
README [new file with mode: 0644]
packaging/obs-service-git-buildpackage.spec

diff --git a/README b/README
new file mode 100644 (file)
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.
+    <parameter name="url">URL</parameter>
+        Remote repository URL. This is a mandatory parameter.
+
+    <parameter name="revision">TREEISH</parameter>
+        Revision (tree-ish) to be built. Default is HEAD.
+
+    <parameter name="deb">[yes|no|auto]</parameter>
+        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.
+
+    <parameter name="rpm">[yes|no|auto]</parameter>
+        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.
+
+    <parameter name="spec-vcs-tag">VCS_TAG_FORMAT</parameter>
+        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.
+
+    <parameter name="verbose">[yes|no]</parameter>
+        Enable verbose output. Mainly meant for debugging purposes.
+
index 8fbe20b..eb7890a 100644 (file)
@@ -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