Login Form
Donate anything
If you like the english openslx Weekly News, the german open-slx Wochenrückblick or the open-slx Linux Podcast just donate anything.
Powered by OSTraining.com
My last Podcasts
-
open-slx Linux Podcast 4
by open-slx GmbH
open-slx Linux Podcast 4 mit: Portalumstellung,Milestone 2,gcc,Nouveau,Wasteland 2 und Humble Bundle
Erstellt am 2012-03-29 13:08:52 -
open-slx Linux Podcast 3
by open-slx GmbH
open-slx Linux Podcast mit: Spielen mit WINE, Linux im öffentlichen Bereich, open Data Handbook, openSUSE Maintanance, kde 4.8.1
Erstellt am 2012-03-14 18:43:25 -
open-slx Linux Podcast 2
by open-slx GmbH
Themen: Plasma Active Tablet PC, Adobe Flash Player Beta 4, KDE SC 4.8.0, Owncloud 3 und mehr...
Erstellt am 2012-02-02 15:24:31 -
open-slx Linux Podcast 1
by open-slx GmbH
Einführung des Podcasts, Sebastian Sieberts Flash Player Script, Shutter, Bluefish, Kernel News, Linux Foundation, Neues aus den Projekten rund um mobile Devices
Erstellt am 2012-01-19 18:03:34
Site Statistics
- Current Active Users73
- Active Guests73
- Active Registered0
- Unique Visits Today471
- Unique Visits Yesterday367
- Visits This Week2190
- Visits Previous Week1903
- Total Articles38
My Social Media
Apple Aktionen
openSUSE, Packaging, KDE, Politics, Economy, Life with the Compiler and more
Community & Support Agent by open-slx GmbH (Germany)
- Aufrufe: 3674
- 4 Kommentare
- Updates abonnieren
How to use three Open Build Service Source Services to simplify the packaging
This is a short HowTo about using the OBS Source Services.
Sometimes a packager has a package who changes the Sourcecode very often. So the packager has to choose: On the first hand he can checkout the code from git or svn makes a tar.gz or bz2 from it or he can use the Source Services from the Buildservice. But how to do that?
In the following Example i'm using calligra from the KDE:Active Repository.
First of all i have uploaded the needed specs and *.changes files and all optional Sources. Then i'm going to the "Sources" Tab.In my case it looks like:

There we have two ranges. The first is called "Source Services" and the second "Source Files". If you are creating an new package this range is empty.
In my case i have filled the "Source Files" Range with my files. All my uploaded Files are in Section (2) from the Image. The Files in Section (3) will be automaticly created by the Source Services. But in your case this is empty Range.
But let us show the "Source Service" Section:

If you go to (1) "Add Service for Source Processing" you see this:

In this Overview you can choose your wanted Source Processor. In my case i choosed: tar_scm, recompress and update_sources.
If you choose tar_scm you can fill out a little form. It looks like:

In the field "url" you can add the full git adress. In my case it is "git://anongit.kde.org/calligra". Other Repositories like "git://anongit.kde.org/scratch/cschumac/polka.git" are possible too. In the field "scm" you can choose the Version Control System like git, svn, hg and bzr.
In the Standardform the field "versionprefix" isn't available. But it works.
The Source Services recompress and update_sources coming out without any configuration and working out of the box. So the OBS works like:
- fetch the data from scm
- recompress the *.tar to *.tar.gz
- make a temp spec file with changed versiontag (used that from the source)
- make a build
My Problem was now that i got a File like %{name}-%{gitversion} so it looks like calligra-1234567.tar.gz But my goal was to get calligra-2.3.90.git1234567.tar.gz. So i must set the versionprefix.
For doing that you must edit the file "_service". You can just click on it and choose "Edit File". The File itself is a simple XML File, so it is human readable. :-)
That's my file content:
Kommentare
-
Montag, 25 Juli 2011
Hi Filipe,
that i haven't tried our yet. But in doc.o.o i haven't found this too.
Maybe you can ask on the openSUSE-buildservice list. I think that people knowing more.
Thanks for comment
-
Donnerstag, 05 Juli 2012
triggering OBS service execution
Hi Dj, I just wrote a little script to accommodate that.
https://github.com/wvengen/obs-trigger
Art LinkedIn Profile
Follow me on LinkedinGoogle+
Networked Blogs
Running Polls
Survey Results
Blog Tag Cloud
Blog Categories
Blog Upp!
My Tweets

















Hi, nice tip. I'm trying to do the same but with svn. Do you know how to change the source name from "trunk" to the package name?