Mailinglist Archive: opensuse-buildservice (266 mails)
|< Previous||Next >|
Re: [opensuse-buildservice] using own macros
- From: Christopher Lang <christopher.lang@xxxxxxxxxx>
- Date: Wed, 26 Nov 2008 20:25:48 +0100
- Message-id: <200811262025.48171.christopher.lang@xxxxxxxxxx>
assuming that you have your own, local build server, the project configuration
for a certain project is stored in the directory: /srv/obs/projects
The configuration is contained in the files ending with .conf. This file
includes information about the build system, packages to install etc. as well
as some macos, that you might want to define.
You can edit the project configuration (remotely) with the command:
osc meta prjconf Fedora\:8 -e
That will allow you to edit for example the Fedora 8 project configuration,
assuming you have a Project called Fedora:8.
Always use osc to edit, I think manual changes in the file will not work.
Usually the Editor is vi, so have some vi commands ready (can be changed with
the EDITOR shell variable I suppose).
Here are some macros that are defined at the end of this file. These macros
will be available in spec files to use:
#From fedora buildsys-macros package
The above osc command without the "-e" will just print the project
configuration to stdout.
Also helpful is:
osc help meta prjconf
For more details see:
I hope this helps
On Wednesday 26 November 2008 19:06:16 Werner Flamme wrote:
Hi, I'm new to the build service and I still try to convince obs to
cooperate with me :-) - now I have a question about macros.
As a local user, I have a .rpmmacros file (including as a simple
sample "%packager Werner Flamme <werner.flamme@xxxxxx>"). In message
<20081111184033.GB7174@xxxxxxx> I read that macros have to be defined in
the project configuration file. Is this the file that is managed via
"osc meta prj -e"? If not, how do I modify the project configuration
file? Is it stored locally after an "osc co"?
Maybe this info is hidden somewhere in the Build Service web pages.
However, I did not find it, sorry.
Werner Flamme, Abt. WKDV
Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
Permoserstr. 15 - 04318 Leipzig
Tel.: (0341) 235-1921 - Fax (0341) 235-451921
http://www.ufz.de - eMail: werner.flamme@xxxxxx
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
|< Previous||Next >|