Fedora Linux Support Community & Resources Center
  #1  
Old 15th May 2017, 07:05 PM
ThanosApostolou Offline
Registered User
 
Join Date: Nov 2016
Location: Athens, Greece
Posts: 17
linuxfedorafirefox
Trying to build and package gtkhash 1.1 with nemo support

I want build and create a package for the latest **gtkhash** version with nemo support. The gtkhash from fedora's repositories is on version 0.6 and has support only for thunar and nautilus. The spec file is this: http://pkgs.fedoraproject.org/cgit/r...e/gtkhash.spec

However, I cannot understand what exactly is going on there. The equivalent PKGBUILD on AUR seems much more simple (https://aur.archlinux.org/cgit/aur.g...UILD?h=gtkhash).

If I understood correctly then from one spec file, there get created more than one packages. Can you send me any guides describing this procedure because I didn't find anything on the fedora's documentation (I might just missed it). Or if anyone can explain with simple words what sections of the spec file do I need to modify in order to get the latest version and add nemo support.

The upsrteam project is here: https://github.com/tristanheaven/gtkhash (it has some general building instructions on the Readme file).
Reply With Quote
  #2  
Old 15th May 2017, 09:16 PM
mschwendt Offline
Registered User
 
Join Date: Jun 2010
Posts: 370
linuxfedorafirefox
Re: Trying to build and package gtkhash 1.1 with nemo support

http://rpm5.org/docs/max-rpm.pdf
https://fedoraproject.org/wiki/Categ...ge_Maintainers
Reply With Quote
  #3  
Old 15th May 2017, 09:42 PM
srakitnican Offline
Registered User
 
Join Date: Oct 2011
Posts: 1,358
linuxchrome
Re: Trying to build and package gtkhash 1.1 with nemo support

In theory, all you need to do is to setup rpm build tree, drop-in spec file and sources, source tarball named according to spec file, bump the version and reset the rpm release number.

While you can use rpmbuild directly to build the package, it is expected that you install build dependencies into your base system. The preferred solution is to use mock that builds the package into a chroot environment using a source rpm package. Rpmbuild is then used only to build a source package. That way you don't clog your base system, and have a more consistent packages since you test build dependencies as well.

If you want to know more about it, I suggest you start from basics of how rpm building works and then move onto Fedora specific documentation. Something like this should give you an idea: http://www.tldp.org/HOWTO/RPM-HOWTO/
Reply With Quote
  #4  
Old 16th May 2017, 01:03 AM
ThanosApostolou Offline
Registered User
 
Join Date: Nov 2016
Location: Athens, Greece
Posts: 17
linuxfedorafirefox
Re: Trying to build and package gtkhash 1.1 with nemo support

Thank you both for your suggestions. I couldn't figure out what exactly is going on at the original spec file (the one from fedora's repositories), so I started from scratch.

I've successfully created a copr repository for anyone who wants to try it: https://copr.fedorainfracloud.org/co...tolou/gtkhash/. I've built it only for fedora 26 and rawhide because it needs libgcrypt >= 1.7, which can be disabled when the source is configured but I don't know how important it is, so I left it enabled.

The final spec file is this: https://pastebin.com/xezqUY8U. If anyone finds any improvements then please tell me.


Last edited by ThanosApostolou; 16th May 2017 at 01:23 AM.
Reply With Quote
Reply

Tags
build, gtkhash, nemo, package, support

Thread Tools Search this Thread
Search this Thread:

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I find the build configuration for a package? Mack Using Fedora 6 14th March 2013 04:45 AM
build-essential package leorex Using Fedora 7 28th April 2011 05:42 AM
can't build rpm package skytux Using Fedora 9 10th March 2010 04:48 AM
How to build multilib RPM package in X86-64 helloworld1 Using Fedora 1 5th December 2009 07:47 PM
ATI ver8.5 Can't build package fot X550(F9)? thinkdeeply Hardware & Laptops 3 22nd May 2008 07:40 PM


Current GMT-time: 14:08 (Thursday, 29-06-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat