Author Topic: Simple package to just install a single file?  (Read 1311 times)

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3787
Simple package to just install a single file?
« on: August 16, 2009, 04:31:46 PM »
I am trying to create a package that just puts soundbank-deluxe.gm into /usr/lib/jvm/java-1.6.0-sun-1.6.0.14/jre/lib/audio. It is downloaded as a tar.gz, but it is not wrapped in a folder. I have tried to use trial and error to figure out what all of the automatic scripts do when building from a spec file, but I am stumped.

I also looked for a src.rpm either for this file or for a similar type of installation. Does anyone know of a package that does a similar type of installation, or a tutorial on spec-helper or what ever script runs from pkgutils?

Galen

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3787
Re: Simple package to just install a single file?
« Reply #1 on: August 18, 2009, 11:21:00 PM »
Ok, I've got a package to install soundbank-deluxe.pm. I have a question about where it should be installed. I put it in {javadir}. But with so many versions of java installed at the same time, how do I make sure it is in the right place for updates, other programs, etc.?

For instance the following all exist on my system:
/usr/lib/jvm/java-1.6.0-sun-1.6.0.12/jre/lib/audio
/usr/lib/jvm/java-1.6.0-sun-1.6.0.14/jre/lib/audio
/usr/lib/jvm/java-1.6.0-sun-1.6.0.15/jre/lib/audio

There is also:
/usr/lib/java
/usr/lib/java-1.4.0
/usr/lib/java-1.4.1
/usr/lib/java-1.4.2
/usr/lib/java-1.5.0
/usr/lib/java-1.6.0
/usr/lib/java-1.7.0
/usr/lib/java-ext

Galen

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Simple package to just install a single file?
« Reply #2 on: August 19, 2009, 06:07:33 AM »
Perhaps, as in your first post, /usr/lib/jvm/java-1.6.0-sun-1.6.0.14/jre/lib/audio is where it should be put. Or you might try /usr/lib/jvm/jre/lib/audio. (I don't know that this will work out, but you could try it.)




Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3787
Re: Simple package to just install a single file?
« Reply #3 on: August 19, 2009, 09:38:39 AM »
Perhaps, as in your first post, /usr/lib/jvm/java-1.6.0-sun-1.6.0.14/jre/lib/audio is where it should be put. Or you might try /usr/lib/jvm/jre/lib/audio. (I don't know that this will work out, but you could try it.)

This location works for now. The question I meant to ask is, "Does the variable {javadir} change when new versions of java are installed?" The problem that I foresee, is installing soundbank-deluxe.gm in one location, installing a program that asks for it, sees it already and install, builds using a new {javadir} location and not finding soundbank-deluxe.gm there. Maybe, I'm making it more complicated than needs to be.

Thanks for the reply.

Galen

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Simple package to just install a single file?
« Reply #4 on: August 19, 2009, 12:40:41 PM »
Galen,
We can hope that doesn't happen and do all possible to set up so it doesn't happen, but it may happen anyway. So do the best you know, and if later it needs some adjustment, the %mkrel can be upped one and the 'fix' included.



Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3787
Re: Simple package to just install a single file?
« Reply #5 on: August 19, 2009, 01:14:28 PM »
Thanks for the reply, Neal. I would have just done it that way, but I wanted to be sure I was doing it the pclos way.

 :)

Galen

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Simple package to just install a single file?
« Reply #6 on: August 19, 2009, 01:30:37 PM »
Thanks for the reply, Neal. I would have just done it that way, but I wanted to be sure I was doing it the pclos way.

 :)

Galen

 :D :D :D Understood. :D :D :D