Fedora Linux Support Community & Resources Center
  #1  
Old 5th August 2010, 05:48 PM
tajidinabd's Avatar
tajidinabd Offline
Registered User
 
Join Date: Dec 2004
Location: Germany
Posts: 378
linuxubuntumozilla
building faenza-icons-theme

Alright i was looking to build this icon theme i found. I got to the point of buiding the basic spec file so far. With the source is a install.sh it need prompts to install certain files depending on which distribution you have. How do you incorporate answering these prompts into the spec file under the %prep section? i will attach my spec file.


Code:
rpmbuild -ba faenza-icon-theme.spec
so when it starts its asking this at the prompt

Code:
+ cd /home/tajidin/rpmbuild/BUILD
+ rm -rf faenza-icon-theme-0.5.2
+ /usr/bin/unzip -qq /home/tajidin/rpmbuild/SOURCES/Faenza_Icons_by_tiheum.zip
replace Faenza.tar.gz? [y]es, [n]o, [A]ll, [N]one, [r]ename:
Attached Files
File Type: spec faenza-icon-theme.spec (1.3 KB, 89 views)
Reply With Quote
  #2  
Old 5th August 2010, 09:02 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
linuxfedorafirefox
Re: building faenza-icons-theme

Try

Code:
Name:           faenza-icon-theme
Version:        0.5.2
Release:        1%{?dist}
Summary:        Icon theme designed for Equinox GTK theme

Group:          User Interface/Desktops 
License:        GPL
URL:            http://gnome-look.org/content/show.php/Faenza?content=128143
Source0:        http://fc01.deviantart.net/fs71/f/2010/211/b/e/Faenza_Icons_by_tiheum.zip

BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
Contains icons for Equinox GTK theme

%prep
%setup -c -q -n Faenza_Icons_by_tiheum
tar xf Faenza.tar.gz
tar xf Faenza-Dark.tar.gz

%build
# nothing doing here :-)


%install
rm -rf $RPM_BUILD_ROOT
cd ./Faenza/places/scalable/ && ln -sf ./distributor-logo-fedora.svg distributor-logo.svg && cd ../../..
cd ./Faenza/places/48/ && ln -sf ./distributor-logo-fedora.png distributor-logo.png && cd ../../..
cd ./Faenza/places/32/ && ln -sf ./distributor-logo-fedora.png distributor-logo.png && cd ../../..
cd ./Faenza/places/24/ && ln -sf ./distributor-logo-fedora.png distributor-logo.png && cd ../../..
cd ./Faenza/places/22/ && ln -sf ./distributor-logo-fedora.png distributor-logo.png && cd ../../..
cd ./Faenza/places/16/ && ln -sf ./distributor-logo-fedora.png distributor-logo.png && cd ../../..
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons
cp -R ./Faenza/ $RPM_BUILD_ROOT%{_datadir}/icons
cp -R ./Faenza-Dark/ $RPM_BUILD_ROOT%{_datadir}/icons

%clean
rm -rf $RPM_BUILD_ROOT

%post
touch --no-create %{_datadir}/icons/Faenza 2>/dev/null ||:
gtk-update-icon-cache -q %{_datadir}/icons/Faenza 2> /dev/null ||:

%postrun
touch --no-create %{_datadir}/icons/Faenza 2> /dev/null ||:
gtk-update-icon-cache -q %{_datadir}/icons/Faenza 2> /dev/null ||: 

%files
%defattr(-,root,root,-)
%dir %{_datadir}/icons/Faenza
%{_datadir}/icons/Faenza/*
%dir %{_datadir}/icons/Faenza-Dark
%{_datadir}/icons/Faenza-Dark/*
%doc COPYING.txt



%changelog
* Thu Aug 05 2010 Tajidin Abd <tajidinabd@archlinux.us> - 0.5.2-1
- Intial RPM release
Reply With Quote
  #3  
Old 5th August 2010, 11:51 PM
tajidinabd's Avatar
tajidinabd Offline
Registered User
 
Join Date: Dec 2004
Location: Germany
Posts: 378
linuxubuntumozilla
Re: building faenza-icons-theme

thanks that did the trick btw this a nice icon set
Reply With Quote
  #4  
Old 11th August 2010, 02:10 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
linuxfedorafirefox
Re: building faenza-icons-theme

Quote:
Originally Posted by tajidinabd View Post
thanks that did the trick btw this a nice icon set
Well done for getting it into the official repo's


http://koji.fedoraproject.org/koji/userinfo?userID=1464
Reply With Quote
Reply

Tags
icon-theme build

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
Icons missing in Fedora icons theme? chris_flow Using Fedora 4 24th November 2009 08:08 PM
Human icons theme kieranhood Using Fedora 2 27th November 2006 03:08 PM
Most menu icons doesn't change if to use a icon theme from main theme sites PeTzZz Using Fedora 4 28th December 2005 11:04 PM
Help with locating icons and theme? TV-MA Using Fedora 3 7th April 2005 04:11 AM
Installed theme, icons unavailable, FC3 alacheesu Using Fedora 3 3rd April 2005 01:03 PM


Current GMT-time: 01:29 (Thursday, 23-05-2013)

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