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 next 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 151 times)

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

Report message to a moderator

Re: Parallelism with spec files for building U++ (OpenSUSE related) + tutorial for building RPM [message #41274 is a reply to message #40585] Fri, 22 November 2013 20:13 Go to previous message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
Update: WORKS FOR MAGEIA TOO!!*

Install rpm-build package, then run the rpmbuild command above and it will complain about the dependencies. Install the dependencies.

Then run the rpmbuild command again.

It'll will start compiling.

Have fun!

I'm pleased surprised with Mageia on my lower end machine. KDE runs smooth. Installation was fast too.

* Worked with U++ stable version.

[Updated on: Fri, 29 November 2013 15:24]

Report message to a moderator

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


Current Time: Tue Dec 10 07:26:59 CET 2019

Total time taken to generate the page: 0.01153 seconds