Code Monkey home page Code Monkey logo

obs-package-from-git's Introduction

OBS package from Git

This tool automates making an openSUSE Build Service package from a Git repository. It is used for Snapper and Libstorage.

You see, sometimes it is enough to simply tar up the Git repo with git archive or a similar tool. We can do that for YaST since its build scripts are ready for that. But more often the distribution tarball is expected to contain a configure script which you do not want to commit to Git.

Naturally there is a standard way, which is to run make dist. But this requires that you have the development dependencies installed. Why on Earth would you not have them installed? Because you are a colleague of the regular maintainer who just needs to fix one line. Or because you are a Continuous Integration server, which did have the dependencies right initially, but Progress, so now you have an outdated set.

Therefere this tool exists to bootstrap the dependencies by an osc build run.

Example

This is copied from a Makefile in Snapper:

.PHONY: package
package: obs-package-from-git
	./$^ \
		-P YaST:Head -p snapper \
		-o .obsdir \
		-c 'make -f Makefile.repo && make package'

# A script that is shared with other projects and should be always refreshed
URL=https://raw.githubusercontent.com/openSUSE/obs-package-from-git/master/obs-package-from-git
.PHONY: always_out_of_date
obs-package-from-git: always_out_of_date
	wget -O $@ $(URL) && chmod +x $@

obs-package-from-git's People

Contributors

mvidner avatar

Watchers

Spencer Tom Tafadzwa Chirume avatar  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.