Giter Club home page Giter Club logo

obs-git-update's Introduction

obs-git-update

Used to easily build nightly packages on Open Build Service (OBS) (and could be adapted for stable releases using tags).

usage

The script depends on the .spec file being setup to read the version information from two files: {PACKAGE}.version (git describe) and {PACKAGE}.hash (git commit hash).

$ obs-git-update PACKAGE SOURCE_DIR PACKAGING_DIR
# run from openage git clone directory
$ obs-git-update openage . ~/path/to/obs/checkout/openage

spec file

The spec file should be setup similarly to the following (example for package openage).

# Big numbers to abvoid other entries, must precede version declaration.
Source17: openage.version
Source18: openage.hash

# Load version information from files. This allows for sharing for deb
# building, cp to openage_version file, and removes needless changes to spec.
Version:     %(tr -d '\n' < %{SOURCE17})
%define hash %(tr -d '\n' < %{SOURCE18})

Source: https://github.com/SFTtech/openage/archive/%{hash}.tar.gz

# rest of .spec

# If using github or similarly formatted tarballs.
%prep
%setup -q -n %{name}-%{hash}

Full example of openage.spec.

obs service file

Open Build Service (OBS) supports _service files for retrieving source code and verifying instead of checking the source directly into the repository. The script makes use of this mechanism for including source tarball.

To trigger manually osc add {URL}.

obs-git-update's People

Contributors

boombatower avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.