Author Topic: packing question.  (Read 684 times)

Offline w2ibc

  • Jr. Member
  • **
  • Posts: 25
packing question.
« on: March 06, 2012, 07:58:04 PM »
Ok. this is what I have. I have a source "binary" its directory structure is.

/usr/bin/crqlog
/usr/share/applications/
/usr/share/crqlog/
/usr/share/icons/
/usr/share/man/
/usr/share/pixmaps/

So if I am to build a rpm of it. how to I do it? the "cheat sheet" i have (one on the forums post up a couple) goes on about sources with ./config make ect ect.

so all that would be needed is the spec file telling it where these files need to go.

hope that makes sense. thanks

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: packing question.
« Reply #1 on: March 06, 2012, 08:13:46 PM »
Ok. this is what I have. I have a source "binary" its directory structure is.

/usr/bin/crqlog
/usr/share/applications/
/usr/share/crqlog/
/usr/share/icons/
/usr/share/man/
/usr/share/pixmaps/

So if I am to build a rpm of it. how to I do it? the "cheat sheet" i have (one on the forums post up a couple) goes on about sources with ./config make ect ect.

so all that would be needed is the spec file telling it where these files need to go.

hope that makes sense. thanks



you need to write a RPM specfile ... but it seems to me you are missing the point:
in the specfile you need to specify (as a basic list), a sequence of action you want to perform when installing an rpm package, i.e.:
- preparation (extraction from a tarball file)
- building (you could skip this, as your files are already ready)
- installation i.e. which action you want to perform to install you files, where, using which permissions, which ownership ...
and several other things ...

you best path is start to evaluate some simple package, reading and understanding how the specfile is written, trying to modify the specfile ... not a very short path ...  surely you can learn about ... but you can't skip all going straight to the end  :D ;)

AS

Offline KernelKarter

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 270
Re: packing question.
« Reply #2 on: March 07, 2012, 02:32:43 AM »
Ok. this is what I have. I have a source "binary" its directory structure is.

/usr/bin/crqlog
/usr/share/applications/
/usr/share/crqlog/
/usr/share/icons/
/usr/share/man/
/usr/share/pixmaps/

So if I am to build a rpm of it. how to I do it? the "cheat sheet" i have (one on the forums post up a couple) goes on about sources with ./config make ect ect.

so all that would be needed is the spec file telling it where these files need to go.

hope that makes sense. thanks


I don't understand what you mean by a source "binary", please elaborate  :)
To build a rpm package, you need the sources, which are usually in either a source rpm (SRPM) or a source tarball.

Let's take it from there  :)

-- Eddie
pclinuxos-kde-2013.04 | kernel-3.2.18-pclos2.pae.bfs
- AMD Athlon 64 X2 5000+ CPU
- 4Gb RAM | nVidia 8500GT GPU

Offline w2ibc

  • Jr. Member
  • **
  • Posts: 25
Re: packing question.
« Reply #3 on: March 07, 2012, 02:40:39 AM »
Ok. this is what I have. I have a source "binary" its directory structure is.

/usr/bin/crqlog
/usr/share/applications/
/usr/share/crqlog/
/usr/share/icons/
/usr/share/man/
/usr/share/pixmaps/

So if I am to build a rpm of it. how to I do it? the "cheat sheet" i have (one on the forums post up a couple) goes on about sources with ./config make ect ect.

so all that would be needed is the spec file telling it where these files need to go.

hope that makes sense. thanks


I don't understand what you mean by a source "binary", please elaborate  :)
To build a rpm package, you need the sources, which are usually in either a source rpm (SRPM) or a source tarball.

Let's take it from there  :)

-- Eddie

upstrem has a tar.gz "source" but its already compiled (I can extract and run it right from the extracted folder) so there is no config or make files. so to install would be a simple cp from the extracted folder to /usr/ then update the menu.

hope im explaining it correctly.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3735
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: packing question.
« Reply #4 on: March 07, 2012, 02:55:41 AM »
read this..

http://pclosmag.com/html/Issues/201007/page15.html

and you will understand...

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: packing question.
« Reply #5 on: March 07, 2012, 03:01:50 AM »
read this..

http://pclosmag.com/html/Issues/201007/page15.html

and you will understand...


Remembering that since we moved to rpm 4.8 "rpm -ba" is now "rpmbuild -ba"   ;)  ;D ;D

Terry
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3735
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: packing question.
« Reply #6 on: March 07, 2012, 03:04:04 AM »
read this..

http://pclosmag.com/html/Issues/201007/page15.html

and you will understand...


Remembering that since we moved to rpm 4.8 "rpm -ba" is now "rpmbuild -ba"   ;)  ;D ;D

Terry


yes, indeed...  ;D
I heard, it will come a new rpm package guide, but it is ready, when it is ready  ;)

Offline KernelKarter

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 270
Re: packing question.
« Reply #7 on: March 07, 2012, 04:00:56 AM »
Ok. this is what I have. I have a source "binary" its directory structure is.

/usr/bin/crqlog
/usr/share/applications/
/usr/share/crqlog/
/usr/share/icons/
/usr/share/man/
/usr/share/pixmaps/

So if I am to build a rpm of it. how to I do it? the "cheat sheet" i have (one on the forums post up a couple) goes on about sources with ./config make ect ect.

so all that would be needed is the spec file telling it where these files need to go.

hope that makes sense. thanks


I don't understand what you mean by a source "binary", please elaborate  :)
To build a rpm package, you need the sources, which are usually in either a source rpm (SRPM) or a source tarball.

Let's take it from there  :)

-- Eddie

upstrem has a tar.gz "source" but its already compiled (I can extract and run it right from the extracted folder) so there is no config or make files. so to install would be a simple cp from the extracted folder to /usr/ then update the menu.

hope im explaining it correctly.

From what you've posted so far, I'm assuming that the application in question is crqlog but if I google for it, the results are mostly for cqrlog. Please clarify which one it is and where you got the tar.gz "source". If you can run it, you haven't got the source.

-- Eddie
pclinuxos-kde-2013.04 | kernel-3.2.18-pclos2.pae.bfs
- AMD Athlon 64 X2 5000+ CPU
- 4Gb RAM | nVidia 8500GT GPU

Offline w2ibc

  • Jr. Member
  • **
  • Posts: 25
Re: packing question.
« Reply #8 on: March 07, 2012, 01:14:30 PM »
http://www.cqrlog.com/

http://www.cqrlog.com/download

"Complete application directory for other distributions:"
http://www.cqrlog.com/?q=webfm_send/228/1 <- i386


noticed I did botch the spelling of it. its cqrlog... finger goof up on the spelling lol

Offline w2ibc

  • Jr. Member
  • **
  • Posts: 25
Re: packing question.
« Reply #9 on: March 07, 2012, 07:12:06 PM »
HAHA im not a total idiot I guess lol

got it to package. bit tricky for some reason it would extract to BUILD but wouldnt move over to BUILDROOT (idk)

I copied the extracted file folder over from BUILD to BUILDROOT naming is cqrlog-1.3.1-1w2ibc2012.i586 and bingo rpm built and its installable.

still got to figure out getting it to list in the menu (had to add it manually) but the rpm dose work.

so at least I seem to be heading in the right direction.

Offline KernelKarter

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 270
Re: packing question.
« Reply #10 on: March 08, 2012, 04:47:54 AM »
OK, I've had a look at this and it would appear that what you've actually got is the binary tarball. The source tarball is here: http://www.cqrlog.com/?q=webfm_send/232/1. Although the filename gives the impression that it's for debian-based distros, that's somewhat misleading. I've had a look inside the tarball and there doesn't appear to be anything that gives me the impression that it cannot be built for rpm-based distros.

-- Eddie
pclinuxos-kde-2013.04 | kernel-3.2.18-pclos2.pae.bfs
- AMD Athlon 64 X2 5000+ CPU
- 4Gb RAM | nVidia 8500GT GPU

Offline w2ibc

  • Jr. Member
  • **
  • Posts: 25
Re: packing question.
« Reply #11 on: March 08, 2012, 02:15:47 PM »
OK, I've had a look at this and it would appear that what you've actually got is the binary tarball. The source tarball is here: http://www.cqrlog.com/?q=webfm_send/232/1. Although the filename gives the impression that it's for debian-based distros, that's somewhat misleading. I've had a look inside the tarball and there doesn't appear to be anything that gives me the impression that it cannot be built for rpm-based distros.

-- Eddie



he mainly makes it for debian/ubuntu however he dose toss the binary tarball which dose work on pclos.

I did manage to get the binary tarball to build into a rpm everything installed where it should have. ill give it a good test this weekend.. only thing that didnt happen was getting it listed in the menu (had to manually add it in the menu) so got to figure out how to tell it to put in the menu (more reading lol) but im learning lol