Saigkills Backtrace - Thoughts from the United States of Europe

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.

Amount: 

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

Mein Hörtipp

Apple Aktionen

Partner Services

Software & Programming Blogs - BlogCatalog Blog Directory Bloggeramt.de blogoscoop  Blogverzeichnis -  Blog Verzeichnis bloggerei.de RSS Newsfeeds Verzeichnis RSS-Scout - suchen und finden  Blog BlogPingR.de - Blog Ping-Dienst, Blogmonitor Computers Blogs 
Saigkills en openSUSE Blog - Blogged   Interessante Blogs Blog-Webkatalog.de - das Blogverzeichnis Buchtausch bei swapy.de Computer Blogs im RSS Verzeichnis 'hacker Say no! to software patentsI love Free Software!

TwitterCounter for @saigkill Flattr this

Open-Source-Blog-Netzwerk

Wikio - Top Blog - Open source

BlogTraffic

Ohloh profile for Sascha Manns

openSUSE, Packaging, KDE, Politics, Economy, Life with the Compiler and more

Community & Support Agent by open-slx GmbH (Germany)

Geschrieben von Sascha Manns am Freitag, 15 Juli 2011 in Build Service

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:

  1. fetch the data from scm
  2. recompress the *.tar to *.tar.gz
  3. make a temp spec file with changed versiontag (used that from the source)
  4. 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:

 

<services>
  <service name="tar_scm"><param name="url">git://anongit.kde.org/calligra</param><param name="scm">git</param>
<param name="versionprefix">2.3.80.git</param></service>
<service name="recompress"><param name="file">*.tar</param><param name="compression">gz</param></service><service name="set_version"/></services>  
 
The _services file is the control file for all services in that package. For adding the parameter "versionprefix" i've added the marked line.
 
After that i got my prefered format.
 
The Source Services are a mighty. You can download a special file and use it, or you can check the checksum with md5. I can see in this Source Services a very good potencial.
 
If you want to read more about that, just go to doc.openSUSE.org.
 
ATM it looks for me, that if you must start the services manually daily, if you want to update the sources. But all in all you can save time if you use that great tools.
 
If you liked this short intro or not, i'm happy about comments and trachbacks ;-)
 
Bewerte diesen Beitrag:
Tags: Array

I'm a Free Software and specially a openSUSE/Linux Enthusiast. So i'm working inside the openSUSE Community in Membership Application Team and the openSUSE Build Service.

Also i'm the Founder of the openSUSE medical team and the Medical Task Force.

My Employer is the open-slx gmbh who provides and sells the Balsam Professional Boxes (based on openSUSE), supports the Plasma Active UI for mobile devices and drives a german Plasma Active Communityboard.

Also i'm a founder of the "Weekly News" Format (Podcasting) in the Radiotux Team. After i started the openSUSE Weekly News, then comes the Fedora Weekly News, Ubuntu Wochenrückblick and Open Streetmap Weekly News.


Currently i'm studying business management.

Trackback URL für diesen Beitrag

Kommentare

  • Gast
    Filipe Fernandes Samstag, 23 Juli 2011

    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?

  • Sascha Manns
    Sascha Manns 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 :D

  • Gast
    Dj Mittwoch, 14 März 2012

    About automation

    Hi Sascha,
    Please help me in following question.
    I want that as soon as there is new commit in git, OBS service execution should be triggered and OBS RPM package building should be started.
    and thanks for above article. really helpful!!

  • Gast
    wvengen 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

Kommentar hinterlassen

Gast Donnerstag, 23 Mai 2013

Google Translate

Art LinkedIn Profile

Follow me on Linkedin

Google+

Networked Blogs

 
 

Running Polls

Survey Results

Blog Upp!

My Tweets

saigkill
open-slx Community Agent and writer of technical documentation
Europe/Germany
saigkill
saigkill Today stats: one new follower via Unfollowers.me

4 days ago via Unfollowers.me

saigkill
saigkill Today stats: 2 new followers and 2 new unfollowers via Unfollowers.me

1 week ago via Unfollowers.me

saigkill
saigkill Today stats: one new unfollower via Unfollowers.me

2 weeks ago via Unfollowers.me

saigkill
saigkill I have started using Unfollowers.me to let me know who unfollowed me on twitter.

2 weeks ago via Unfollowers.me

saigkill
saigkill open-slx Linux Podcast 4 goo.gl/fb/fWJgi #opensuse #german

3 weeks ago via Google

 

My Wishlist