help creating rpm's using cpack

Supposedly rpm’s can be made with cmake by running
something like “cpack -G RPM” but of course it
doesn’t for me - the executable gets created (as if
make was used) but the resulting rpm is pretty much
empty.

Does anyone have a how to (needs to be simple as
I’m not a developer, just trying to create rpms
from things dl’ed from kde-apps.org)? or has this
even worked for you?

Checkinstall tends to mess my system since I
upgraded to kde4 (I assume it’s cmake related vrs
configure/make/make install)

openSuse 11.1 x64bit, KDE4.x Factory, Opera weekly

> needs to be simple as I’m not a developer, just trying to create
> rpms from things dl’ed from kde-apps.org

what kind of “things” are you downloading that then need to be put
into an rpm before they are useful to your machine?

if you are not a developer then why are you trying to use “developer
tools” without understanding how…and looking for someone to put all
the how-to into easy, non-developer user lingo, for you?

i am NOT saying you can’t do whatever you wish–that is one of the
powerful things about open source and Linux…but, instead of looking
for someone to make a simple how-to to use cpack i’d say you would be
a lot better off putting in the effort needed to understand the whole
process…

ymmv…


goldie
Give a hacker a fish and you feed him for a day.
Teach man and you feed him for a lifetime.

goldie wrote:

<snip>
> what kind of “things” are you downloading that
then need to be put into an rpm before they are
useful to your machine?
things not available in rpm form because no one
packages them (yes such things exist) or things a
bit on the cutting edge (like amarok 2.2 which just
appeared in the playgrond repo)


openSuse 11.1 x64bit, KDE4.x Factory, Opera weekly

ok, “things” such as ‘programs’ like Amarok 2.2 …

now, i will guess: you are downloading programs released as source
code; or compiled executables in a debian format; or executables not
in a rpm format; or what?

no, i won’t guess: instead i say if you are downloading source code
which you wish to compile and install on your machine, then you do NOT
need to create an rpm…so, why try?

if you are downloading debian packages then use alien…

or, if you are asking for help in compiling, then…well…i can’t
guess your needs…


goldie

goldie wrote:

> ok, “things” such as ‘programs’ like Amarok 2.2

>
> now, i will guess: you are downloading programs
released as source
> code; or compiled executables in a debian
format; or executables not
> in a rpm format; or what?
>
> no, i won’t guess: instead i say if you are
downloading source code
> which you wish to compile and install on your
machine, then you do NOT
> need to create an rpm…so, why try?
>
> if you are downloading debian packages then use
alien…
>
> or, if you are asking for help in compiling,
then…well…i can’t
> guess your needs…
>
Instead of guessing you could just ask, I would
be happy to tell you. If you think my request was
unclear than just ask for clarification. If you
don’t wish to assist then there’s no need to
respond.


openSuse 11.1 x64bit, KDE4.x Factory, Opera
weekly

Hi
Why not grab from the OpenSUSE build service? If the latest and
greatest isn’t there send the builder an email and ask if they could
build the latest for you? Else use the build service mailing list or
openFATE to assist you :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 3 days 20:49, 2 users, load average: 1.29, 1.32, 1.14
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

> If you think my request was
> unclear than just ask for clarification.

your request is unclear…

i have asked twice!

first post: what kind of “things” are you downloading that then need
to be put into an rpm before they are useful to your machine?

second post: downloading programs released as source code; or compiled
executables in a debian format; or executables not in a rpm format; or
what?

> If you don’t wish to assist then there’s no need to
> respond.

if i was unwilling to assist i would not have asked the first time…


goldie

ok - let me try again

I occasionally dl and install programs from kde-
apps.org or other sources (like Amarok svn) that
do not have rpm’s available for openSuse or do
not have the most current versions available.
Note: the Amarok 2.2’s just got rpm’ed in
playground and haven’t been updated since the
15th (per the Amarok forums the dailys get a lot
of activity).

When I compile from source I prefer to have them
result in rpm packages so that they are easier to
manage (for instance they show in Yast sw mgt
module) - just seems to be the proper thing to do
using a rpm based distro.

I’ve used both .debs (with Alien)and rpm’s from
other distro’s (Fedora and Mandriva) with mixed
success.

I used to use checkinstall but I’m having
problems with using it since kde4 and cmake
(verses configure) in that when compiling and
creating the Amarok rpm the process is dumping
various work directories and .h files in the root
directory. Also, I do this within my /home
directory and the process somehow changes the
owner of ~ to root - obviously for what ever
reason checkinstall has become problematic for
me.

Somewhere/somehow I saw cpack and decided to give
it a go (using the latest k9copy as my test
app.). Using cpack the executable is created fine
but the .rpm is not populated.

Basically what I did was:
cd build_dir
cmake .
cpack -D CPACK_RPM_PACKAGE_NAME=xxxxxxx -D
CPACK_RPM_PACKAGE_VERSION=nn.nn -G RPM

I also tried:
cd build_dir
cmake .
make package

Neither populated either the .tar or .rpm
created.

So what I’d like to know is:

  1. has anyone used cpack for this purpose with
    success?
  2. does cpack work but requires additional steps
    I’m missing
  3. if I should go back to checkinstall and figure
    out what Is causing the issues I’m experiencing.
  4. ???

thanks,

openSuse 11.1 x64bit, KDE4.x Factory, Opera
weekly

I know this message is old.
But if anyone has trouble creating RPM with CPack just post a message
to CMake ML: CMake - Cross Platform Make.

Usually if your “package” is empty with any CPack generator
(RPM, DEB, ZIP, TGZ,…) the reason is you forgot to add appropriate
“INSTALL” command in your CMakeLists.txt