This is for new development and discussions.

Moderators: slax, siamer

Re: PCLinuxOS RPM packaging crash-course

Postby mmesantos1 » Mon Sep 12, 2011 7:24 am

Thank you very much Dragynn. :D
Image
mmesantos1
User avatar
Full Member
Full Member
 
Posts: 67
Joined: Thu Mar 12, 2009 5:44 pm
Location: Virginia, USA

Re: PCLinuxOS RPM packaging crash-course

Postby mmesantos1 » Mon Sep 12, 2011 9:00 am

Ok Slax in case you do not want to go with a light theme here is a Dark one for you. :D
Image
Large Image: https://lh6.googleusercontent.com/-r5qk ... enshot.png

Image
Large Image: https://lh6.googleusercontent.com/--cYI ... nshot1.png

Wall Link: http://mmesantos1.deviantart.com/#/d49mygd
Image
mmesantos1
User avatar
Full Member
Full Member
 
Posts: 67
Joined: Thu Mar 12, 2009 5:44 pm
Location: Virginia, USA

Re: PCLinuxOS RPM packaging crash-course

Postby rsd220 » Mon Sep 12, 2011 12:29 pm

good work Mmesantos

i wish see gnome3 very soon
rsd220
Full Member
Full Member
 
Posts: 120
Joined: Mon Jun 07, 2010 3:35 am

Re: PCLinuxOS RPM packaging crash-course

Postby mmesantos1 » Mon Sep 12, 2011 1:09 pm

Thank you rsd220, in time I am sure. :D
Image
mmesantos1
User avatar
Full Member
Full Member
 
Posts: 67
Joined: Thu Mar 12, 2009 5:44 pm
Location: Virginia, USA

Re: PCLinuxOS RPM packaging crash-course

Postby slax » Mon Sep 12, 2011 2:24 pm

Ok, ok i saw the screenshots in the other topic, no need to repost here :)
This is our place to learn some packagin' :)

And the best example to use will be packaging those themes for zen-mini :)
slax
User avatar
Site Admin
Site Admin
 
Posts: 724
Joined: Wed Aug 18, 2010 2:55 pm
Location: ...somewhere out in space...

Re: PCLinuxOS RPM packaging crash-course

Postby mmesantos1 » Mon Sep 12, 2011 2:29 pm

Ok Slax, will post all screenies in screenshot section from now on. Sorry about that. :oops:
Image
mmesantos1
User avatar
Full Member
Full Member
 
Posts: 67
Joined: Thu Mar 12, 2009 5:44 pm
Location: Virginia, USA

Re: PCLinuxOS RPM packaging crash-course

Postby slax » Mon Sep 12, 2011 2:33 pm

No worries mate, it's not a big deal, just want to keep the thread clean so it'll be easier to follow :)
slax
User avatar
Site Admin
Site Admin
 
Posts: 724
Joined: Wed Aug 18, 2010 2:55 pm
Location: ...somewhere out in space...

Re: PCLinuxOS RPM packaging crash-course

Postby mmesantos1 » Mon Sep 12, 2011 3:06 pm

Ok Slax installed packages for build environment so will now try and build a rpm package with the theme packages. Well here goes nothing. :D
Image
mmesantos1
User avatar
Full Member
Full Member
 
Posts: 67
Joined: Thu Mar 12, 2009 5:44 pm
Location: Virginia, USA

Re: PCLinuxOS RPM packaging crash-course

Postby mmesantos1 » Mon Sep 12, 2011 3:32 pm

Ok Slax so I have the theme file I downloaded from the maker, it is a .gz when downloaded and not an RPM. This means no .spec file to refer to and reading the guide on making a spec file is looking like greek to me and since I only read English this is not a good thing. :wink: :)
So in short not really sure what to do at this point so need your help please.
Image
mmesantos1
User avatar
Full Member
Full Member
 
Posts: 67
Joined: Thu Mar 12, 2009 5:44 pm
Location: Virginia, USA

Re: PCLinuxOS RPM packaging crash-course

Postby slax » Tue Sep 13, 2011 1:22 pm

Ok, ok :) we have to go slowly....
First you need to describe me complete process you did before we can recreate those actions in package.

Something like, where you copied files from archive, how many archives there were in the first place.... was it just a gtk theme, or also gdm, etc...

later, we can see if there is a similar .spec file we can use, or we have to make a new one. :)
slax
User avatar
Site Admin
Site Admin
 
Posts: 724
Joined: Wed Aug 18, 2010 2:55 pm
Location: ...somewhere out in space...

Re: PCLinuxOS RPM packaging crash-course

Postby mmesantos1 » Tue Sep 13, 2011 5:38 pm

Hi Slax,
Ok so just starting simple so I can learn this. Downloaded GTK theme only. Currently GTK theme in downloads folder. I have not copied them any were, got stuck on .spec file and the fact the it does not have one so that is were I am at for the moment. So at this point what should I do next. Do I need to copy the file into a specific location or do I need to create the spec file first? Thanks for your help Slax. :oops: :D
Image
mmesantos1
User avatar
Full Member
Full Member
 
Posts: 67
Joined: Thu Mar 12, 2009 5:44 pm
Location: Virginia, USA

Re: PCLinuxOS RPM packaging crash-course

Postby mmesantos1 » Tue Sep 13, 2011 7:04 pm

Ok Slax re-read some of the guide so looks like I place the source and I think this means the theme folder in this location: ~/src/rpm/SOURCES
And the spec file is in ~/src/rpm/SPECS
Of course once I have the .spec file created. Let me know if this is correct. If so I may just get this. :shock: :D
Image
mmesantos1
User avatar
Full Member
Full Member
 
Posts: 67
Joined: Thu Mar 12, 2009 5:44 pm
Location: Virginia, USA

Re: PCLinuxOS RPM packaging crash-course

Postby slax » Wed Sep 14, 2011 11:53 am

By describing your actions, i meant on how you installed the theme in the first place :)
But nonetheless, it is correct to put the archive file in the ~/src/rpm/SOURCES

in what format is the archive? .zip, .tar.gz? PCLOS standard is to use .xz, so if you are using pkgutils-thunar, when you right click on the archive you'll see the option "convert to .xz".

Next step is to create .spec file. Since there are a lot of gtk themes already packaged, we can use some other similar package's .spec file.

As soon as i finish some work on zen-mini-finall, i'll continue to the next step ;)
Be patient.
slax
User avatar
Site Admin
Site Admin
 
Posts: 724
Joined: Wed Aug 18, 2010 2:55 pm
Location: ...somewhere out in space...

Re: PCLinuxOS RPM packaging crash-course

Postby mmesantos1 » Wed Sep 14, 2011 1:30 pm

Ok Slax I got it, the theme file is .gz and now I know what the convert to .xz is for. :D I will wait for the next step and thank you for helping me learn this process. :D
And just to answer your initial question when I install a GTK theme that I download I normaly copy the un-archived theme folder to the /usr/share/themes folder. Sorry I misunderstood. :oops: :)
Image
mmesantos1
User avatar
Full Member
Full Member
 
Posts: 67
Joined: Thu Mar 12, 2009 5:44 pm
Location: Virginia, USA

Re: PCLinuxOS RPM packaging crash-course

Postby Dragynn » Thu Sep 15, 2011 8:43 am

Very interested in this subject too, thanks for getting this step-by-step info out here!

So Slax, let me ask about general theory here, when you say "describe your actions", i'm guessing that means like a list of changes made to colors, backgrounds, themes etc.? Something like this kinda?:

1. changed wallpaper
2. changed panel background color to #FFFFFF and set opacity to 80%
3. changed terminal colors to #***** for user, #**** for root
etc etc...

And then how is that applied by the rpm file? Is it a script that is activated that writes the changes?
Image
Dragynn
User avatar
Hero Member
Hero Member
 
Posts: 1018
Joined: Sat Oct 23, 2010 4:36 pm
Location: Deep in the heart o' Texas

PreviousNext
Forum Statistics

Who is online

Users browsing this forum: No registered users and 1 guest

Options

Return to Developer's board