|
|
Home » Developing U++ » U++ Developers corner » Parallelism with spec files for building U++ (OpenSUSE related) + tutorial for building RPM
Parallelism with spec files for building U++ (OpenSUSE related) + tutorial for building RPM [message #40585] |
Sun, 18 August 2013 21:18  |
lectus
Messages: 329 Registered: September 2006 Location: Brazil
|
Senior Member |
|
|
I'm now running OpenSUSE and U++ builds well after removing bzip2-devel as dependency from the spec file.
It seems this package installs under OpenSUSE 12.3 with a different name.
The RPM builds fine and U++ works after the RPM is installed.
Now, my question is: is there any way to tweak the file to add parallelism to the build process?
I came across this: http://cat-in-136.blogspot.com.br/2010/07/rpmbuild-setting-f or-multi-core-cpu.html
I'm not sure if it's working though. We should definitely take advantage of multi CPUs.
I'm attaching the spec file as requested by dolik.rce.
Bulding tutorial
1. Download latest U++ .tar.gz source package.
2. Install rpmbuild if you haven't yet:
$ su
# zypper install rpm-build
# exit
3. Extract the tar.gz file:
$ tar xvzf upp-x11-src-6245.tar.gz
4, Edit the spec file and remove the bzip2-devel dependency:
$ cd upp-x11-src-6245
$ vim upp.spec
$ cd ..
5. Rename the upp-x11-src-6245.tar.gz and repack the directory as upp-x11-src-6245.tar.gz.
6. Install the required dependencies:
$ su
# zypper install gcc gcc-c++ gtk2-devel pango-devel atk-devel cairo-devel libnotify-devel patch make xorg-x11-devel freetype2-devel libexpat-devel libbz2-devel
# exit
7. Build the rpm:
$ rpmbuild -tb --define 'version 6245' --define "date $(LC_TIME=En date '+%a %b %d %Y')" upp-x11-src-6245.tar.gz
-
Attachment: upp.spec
(Size: 5.12KB, Downloaded 368 times)
[Updated on: Sun, 18 August 2013 21:46] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Thu May 01 05:38:33 CEST 2025
Total time taken to generate the page: 0.00396 seconds
|
|
|