[opensuse-buildservice] Building packages using the tar_scm source service

Hello! I have created a package which automatically checks out it's sources using svn. It creates a tar-ball. I have two questions: * When the revision number changes, I guess, the file-name changes, too; is there a way to automatically detect the current number? * RPMLINT tells me "Files bigger than 100k should be bzip2'ed in order to save space."; is there a way to compress the tar automatically? Best regards, Johannes Weberhofer -- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On 2010-10-18 11:02:41 +0200, Johannes Weberhofer wrote:
I have created a package which automatically checks out it's sources using svn. It creates a tar-ball.
I have two questions:
* When the revision number changes, I guess, the file-name changes, too; is there a way to automatically detect the current number?
If you specified a version parameter in the _service file for the tar_scm service the filename doesn't change otherwise the filename is changed. In order to update your spec file version with the current filename version you can use the "set_version" service (this may only work with a trivial spec file).
* RPMLINT tells me "Files bigger than 100k should be bzip2'ed in order to save space."; is there a way to compress the tar automatically?
You can use the "recompress" service to bzip2 etc. the checked out file. The best is to have a look at some existing _service files, for instance openSUSE:Tools:Unstable/osc/_service. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

Am Montag, 18. Oktober 2010, 12:36:36 schrieb Marcus Hüwe:
On 2010-10-18 11:02:41 +0200, Johannes Weberhofer wrote: ..
* RPMLINT tells me "Files bigger than 100k should be bzip2'ed in order to save space."; is there a way to compress the tar automatically?
You can use the "recompress" service to bzip2 etc. the checked out file.
The best is to have a look at some existing _service files, for instance openSUSE:Tools:Unstable/osc/_service.
Yep, or try to use the webui. You should see there the recompress service as well. If that is not working good enough, please tell and we will improve it. thanks adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

Am 18.10.2010 12:36, schrieb Marcus Hüwe:
On 2010-10-18 11:02:41 +0200, Johannes Weberhofer wrote:
I have created a package which automatically checks out it's sources using svn. It creates a tar-ball.
I have two questions:
* When the revision number changes, I guess, the file-name changes, too; is there a way to automatically detect the current number?
If you specified a version parameter in the _service file for the tar_scm service the filename doesn't change otherwise the filename is changed. In order to update your spec file version with the current filename version you can use the "set_version" service (this may only work with a trivial spec file).
In my case I get "Version: 59593" set in the new file, which isn't too good. I've tried to set "version" and "version-prefix" as service parameter, but that parameters don't work for svn sources, do they?
* RPMLINT tells me "Files bigger than 100k should be bzip2'ed in order to save space."; is there a way to compress the tar automatically?
You can use the "recompress" service to bzip2 etc. the checked out file.
Wow. That works nicely! I didn't know that wild-cards are accepted!
The best is to have a look at some existing _service files, for instance openSUSE:Tools:Unstable/osc/_service.
Marcus
-- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Adrian Schröter
-
Johannes Weberhofer
-
Marcus Hüwe