Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
lectus is currently offline  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 296 times)

[Updated on: Sun, 18 August 2013 21:46]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Serialization technique
Next Topic: How to build U++ for PCLinuxOS?
Goto Forum:
  


Current Time: Sat Apr 27 07:10:35 CEST 2024

Total time taken to generate the page: 5.96204 seconds