Le dimanche 02 septembre 2012 à 21:09 +0800, Marguerite Su a écrit :
On Sun, Sep 2, 2012 at 8:02 PM, Karl Ove Hufthammer
wrote: Thanks. I’ve now changed it to noarch, by changing BuildArch in the specfile and changing the meta configuration for the project. However, now *no* package seems to be built on OBS. Any ideas why, and how to fix this?
do no change meta. we have no "noarch" build host to build noarch packages.
if the build shows success, it must output packages. by the way, the package is not under x86_64 or i586 directory but noarch directory.
If in doubt, check for another noarch package which is known to work, and do the same. For example: https://build.opensuse.org/package/view_file?file=quilt.spec&package=quilt&project=openSUSE%3AFactory
The original package works fine as a command-line application, and I don’t want any unneeded dependencies on KDE. So I guess for the GUI part I should create a *new* package, with a new .spec file, with a ‘Requires’ line depending on the needed KDE packages and the command-line package (it uses the shell script and the data files). Is that correct, or can everything be written in *one* .spec file? And if I create a new package, is it possible for this to somehow use the original source tarball, so I don’t have to upload it twice every time a new version is released?
yes you can.
just create another spec file named a different name like kde-gui.spec
then "link" the package to a new package named kde-gui. OBS will automatically build using the kde-gui.spec. you can "link" a package by "branch package from other project" command under file section. but the "other project" should be your same project. the package name should be "kde-gui"
Later you only need to update your spec files in your shell script package. they'll be automatically sync-ed.
Alternatively (and IMHO it is more simple) you can simply define a subpackage in your original .spec file. See for example: https://build.opensuse.org/package/view_file?file=sensors.spec&package=sensors&project=openSUSE%3AFactory sensord depends on rrdtool but the rest does not. -- Jean Delvare Suse L3 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org