Results 1 to 9 of 9

Thread: RPM's

  1. Default RPM's

    How exactly , do you make an rpm package from your software?
    Is there a tutorial somewhere?

    I wrote two OpenGL screen savers called "Morphius" , solid and wireframe versions.
    I'd like to put them into an rpm package..

    https://sourceforge.net/projects/mor...es/Linux%2064/



    They're not exactly screensavers , just fullscreen apps.
    the mouse and startbar show up when they are running , you have to set startbar properties to "Allow windows to cover"

    So i've got some questions:
    1) how to make an rpm package?
    2) how to make a screensaver?
    3) where do screensavers go on the filesystem? , so the rpm can put the files in the right place.

  2. #2
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,050

    Default Re: RPM's

    On Mon, 03 Apr 2017 16:16:01 +0000, Albert Redditt wrote:

    > How exactly , do you make an rpm package from your software?
    > Is there a tutorial somewhere?
    >
    > I wrote two OpenGL screen savers called "Morphius" , solid and wireframe
    > versions.
    > I'd like to put them into an rpm package..'
    >
    > https://sourceforge.net/projects/mor...es/Linux%2064/'
    > (http://tinyurl.com/lvse7km)
    >
    >
    > They're not exactly screensavers , just fullscreen apps.
    > the mouse and startbar show up when they are running , you have to set
    > startbar properties to "Allow windows to cover"
    >
    > So i've got some questions:
    > 1) how to make an rpm package?
    > 2) how to make a screensaver?
    > 3) where do screensavers go on the filesystem? , so the rpm can put the
    > files in the right place.


    https://www.google.com/webhp?q=creat...q=create+rpm&* turns
    up some useful results for creating an RPM.

    But if you want to package RPMs, you might look at build.opensuse.org.

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  3. Default Re: RPM's

    I found an rpm build tutorial.

    http://www.linuxintro.org/wiki/Build...mbuild_command

    You install the rpm-build package , but the executable is called "rpmbuild" and not "rpm-build" like the package name, couldn't find rpm-build (took awhile to figure it out.)
    The tutorial is for making an auto-make source package, that self builds the program and installs it..and it's quite dated , for SUSE 11.3

    I just want to package two executables into a package..Not sure how to do it ?


    But before i can make a package , i,ve got to learn the X11 stuff , for properly making a real , bonafide screensaver.
    My Morphius apps work under Windows , you just give them a "scr" extension and stick it in the system32 folder and it shows up in the screensavers section.

    On Linux it's just a full screen , borderless app. and the mouse and startbar show up for some reason?

  4. Default Re: RPM's

    You should be able to just do something simple , like:

    rpmbuild -make_package [package_name] binary1 , binary2 , lib1 , lib2 , [docs] , spec-file [ what dirs to put apps and libs in ]

    With Linux though, there's always tons of switches to every app. and most console apps , are real hard to use.

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,669
    Blog Entries
    15

    Default Re: RPM's

    On Mon 03 Apr 2017 07:56:02 PM CDT, Albert Redditt wrote:

    You should be able to just do something simple , like:

    rpmbuild -make_package [package_name] binary1 , binary2 , lib1 , lib2
    , [docs] , spec-file [ what dirs to put apps and libs in ]

    With Linux though, there's always tons of switches to every app. and
    most console apps , are real hard to use.


    Hi
    If you want to use OBS, then you need to compile from source, no binary
    blobs..... please. Else my recommendation to anyone seeing this is
    don't go blindly download and install a binary blob. What license is
    this released under?

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE Leap 42.1|GNOME 3.16.2|4.1.38-50-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  6. #6
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,050

    Default Re: RPM's

    On Mon, 03 Apr 2017 18:26:01 +0000, Albert Redditt wrote:

    > I found an rpm build tutorial.
    >
    > http://tinyurl.com/m5uy9cw
    >
    > You install the rpm-build package , but the executable is called
    > "rpmbuild" and not "rpm-build" like the package name, couldn't find
    > rpm-build (took awhile to figure it out.)
    > The tutorial is for making an auto-make source package, that self builds
    > the program and installs it..and it's quite dated , for SUSE 11.3
    >
    > I just want to package two executables into a package..Not sure how to
    > do it ?


    I'd start with reading the spec file format and learn that.

    > But before i can make a package , i,ve got to learn the X11 stuff , for
    > properly making a real , bonafide screensaver.
    > My Morphius apps work under Windows , you just give them a "scr"
    > extension and stick it in the system32 folder and it shows up in the
    > screensavers section.
    >
    > On Linux it's just a full screen , borderless app. and the mouse and
    > startbar show up for some reason?


    That's a separate development question that's better for the development
    forum.



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  7. Default Re: RPM's

    The problem is , I'm using FreeBASIC 64 Linux to compile.

    So there's no ./configure , make , make install

    The program is just a single *.bas file.
    And FreeBASIC compiles to *.exe by default to the dir that the program is in.

    I could set FB to output C files or ASM files and put those into the SOURCE dir? ( But FB outputs , really ugly looking C code )
    And i'm not sure if it would include the libs code , in the ASM or C code. (I'd have to ask on the FB forum.)
    By default FB includes the lib code in the end executable (called static linking ) with "as" assembler and "ld" linker.

    So the only thing i can think of is to put precompiled binaries into the package , which ain't allowed. So i'm stuck!!!

    I'll ask on the FB Linux forum if anyone has ever had experience with making packages..

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,000

    Default Re: RPM's

    Maybe start using a programming language that has it's base in a Unix/Linux world?

    All the talking about .bas and .exe files is complete gibberish to me.
    Henk van Velden

  9. #9
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    1,918

    Default Re: RPM's

    Maybe go with AppImage instead of RPM to be Linux distro agnostic. The way Krita solved the problem
    https://krita.org/en/download/krita-desktop/

    Not sure if this is possible for FreeBASIC though as my knowledge on FreeBASIC as well as AppImage is limited.
    Best regards,
    Greg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •