[ale] OBS howto for your first project

Greg Freemyer greg.freemyer at gmail.com
Fri Apr 17 13:30:07 EDT 2009


On Fri, Apr 17, 2009 at 12:37 PM, Michael B. Trausch
<mbt at zest.trausch.us> wrote:
> On Fri, 17 Apr 2009 09:39:15 -0400
> Greg Freemyer <greg.freemyer at gmail.com> wrote:
>
>> Mike,
>>
>> I assume AllTray has a open source license.  If so, you're good to go.
>
> Ayup... GPLv3.  :)
>
> The only thing I'll have to worry about is updated deps in the core
> application---I've modernized it quite a bit and tried to make it so
> that it doesn't rely on so many lower-level calls, since I don't see
> the point of an application talking on several different layers of
> abstraction for something that is supposed to be simple to begin
> with.  :)
>
> [snip lots of good info]
>> As long as the questions are easy, you can ask me here.  Just put OBS
>> in the start of the subject.  If they get hard you will need to join
>> the obs mailing list.
>>
>> http://lists.opensuse.org/opensuse-buildservice/
>
> Thanks for the information and the pointer.  As I get closer to the
> next stable release, I will look at using OBS to generate package for
> other systems.  Though one of the things you said made me wonder: Do I
> have to know how to use RPM's package specification to build RPMs?  Or
> does OBS have an abstracted equivalent to things like Debian control
> files and the like?
>
> If the former, then it won't be as useful as I thought it would be; if
> the latter, then it'd be _immensely_ useful, since packaging for the
> various distributions would be taken care of by a single thing to
> manage and not more than that.

At least for now you still have to know how to package.  The build
service just keeps you from having to have your own farm of different
distros.  It also will build all the various versions automatically
each time you update a file.

If you look at my open2300 project you'll see about 6 files I think:

....tar.gz     tarball like you're used to
....dsc        simple debian description file
debian.control   simple debian control file
debian.changlog simple changelog file
debian.rules     this is the complex file that really controls a debian build

...spec   the single control file for rpm based builds

For my simple project, a single set of 4 debian control files allowed
debs to be built for all the obs supported deb environments.

Alternatively, my spec file is working for "most" of the rpm based
environments.  The exception for now is the 64-bit version of fedora
requires an extra flag that I have not tried to set yet.

I have only really looked in any detail at the spec file for building
rpms.  It allows if / then logic.  Thus if you need a slightly
different setup for a fedora build than for a opensuse build, you
still have a single spec file, but it contains logic to do slightly
different things on different distros.

Greg
-- 
Greg Freemyer
Head of EDD Tape Extraction and Processing team
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
First 99 Days Litigation White Paper -
http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com



More information about the Ale mailing list