How to properly make RPM for my program?

I have made small program in Qt4, and I’d like to make RPM for installation. I have read some documentation on the web, but it is confusing.
Is there a web page, which explains how to properly make RPM for openSUSE? Can you pass link?
Program consists of 1 executable and depends on Qt4 only.

Other question:
I use “Qt creator” from Nokia, which is very easy to use and really nice. However, i haven’t discovered where to place the icon for the application.

Thanks.

icons go in /usr/share/pixmaps

Packaging/SUSE Package Conventions/RPM Style - openSUSE

also, you can just grab an existing rpm spec file and modify it, then use it for your program

Thanks!

Well, icon, how to connect it with application?

Hi
Have a look on the OBS on the left there are some links to build
information and spec files https://build.opensuse.org

For the icon/menu entry you need to create a <somename>.desktop file,
here is a reference;
http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html

When you create the desktop item, the icons go in /usr/share/pixmaps

You need to provide the source? or is this a binary blob?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 2 days 15:30, 2 users, load average: 0.24, 0.32, 0.47
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

I don’t know… at 1st, I thought to make source available when make download links on my web. Initially, I thought as tar.gz, just compacted, and RPM to be installable binary (just one executable).

Since this is my 1st program for linux in c++ (will not count some python attempts and one in Lazarus), and 1st program in Qt, I don’t really know how to proceed

Hi
Why don’t you publish the source and ask/see if someone will build up a
spec file for you? (looks at microchip8… )


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 2 days 16:43, 2 users, load average: 1.12, 0.40, 0.19
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

In the build service of opensuse… should I put binary file, all source files or both.
Documentation is not so clear. Also, package name is like “Baires” or should be like “baires-0.1…”
?

@malcolmlewis
oh, I’d love to… I mean, I’d love to have someone to guide me into this. There is some minor things I need to put in the code, but generally, it is working. All will be set, probably tommorow. Sources, I mean.

If someone is having free time to help me, I would be grateful.

just send a link to your tgz source file, I’ll get it, investigate a bit and write a spec for it. Then you can choose; either I give you the spec and you build it yourself then provide it on your site or somewhere else, or I add it in my repo where packages are built for openSUSE and Fedora

Thank you. I will send you the link for files as soon as I can.

better send me a PM so I won’t miss it

Hi
Thanks for that :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 3 days 0:51, 2 users, load average: 0.15, 0.20, 0.21
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Thank you both.
I have sent PM to microchip with sources.

Program, for now, looks like this

http://www.beli.ws/storage/baires.png

Since me & my wife are taking a lot of photos, especially of our daughter and sending them to our families continents away, idea was to make something very simple, that will take all images from one directory, resize them, and place them to another. Since directories I use are almost always the same (camera → folder for sending), I needed something with 1 button click.
…so I made it.

Of course, program can and will grow.

I really hope it will be useful for someone else too :slight_smile:

Hi
Looks like a great little application, look forward to giving it a
run :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 9:50, 2 users, load average: 0.40, 0.30, 0.28
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

seems that @microchip8 already put it to his repo:
Index of /repositories/home:/microchip8/openSUSE_11.2

baires…