openSUSE Forums > Looking For Something Other Than Support? » help creating rpm's using cpack

Go Back   openSUSE Forums > Looking For Something Other Than Support?
Forums FAQ Members List Search Today's Posts Mark Forums Read


Looking For Something Other Than Support? If you are looking for manuals, books, repositories, hardware, software, etc. this is the place to see if someone can help you find it.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23-Aug-2009, 17:09
google01103
Guest
 
Posts: n/a
Default 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
Reply With Quote
  #2 (permalink)  
Old 24-Aug-2009, 01:48
goldie
Guest
 
Posts: n/a
Default Re: help creating rpm's using cpack

> 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.
Reply With Quote
  #3 (permalink)  
Old 24-Aug-2009, 06:13
google01103
Guest
 
Posts: n/a
Default Re: help creating rpm's using cpack

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
Reply With Quote
  #4 (permalink)  
Old 24-Aug-2009, 06:33
goldie
Guest
 
Posts: n/a
Default Re: help creating rpm's using cpack

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
Reply With Quote
  #5 (permalink)  
Old 24-Aug-2009, 07:10
google01103
Guest
 
Posts: n/a
Default Re: help creating rpm's using cpack

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
Reply With Quote
  #6 (permalink)  
Old 24-Aug-2009, 08:52
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,686
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: help creating rpm's using cpack

Quote:
Originally Posted by google01103
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)
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

--
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

Reply With Quote
  #7 (permalink)  
Old 24-Aug-2009, 08:54
goldie
Guest
 
Posts: n/a
Default Re: help creating rpm's using cpack

> 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
Reply With Quote
  #8 (permalink)  
Old 24-Aug-2009, 10:55
google01103
Guest
 
Posts: n/a
Default Re: help creating rpm's using cpack

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
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2