Fedora Linux Support Community & Resources Center
  #1  
Old 15th October 2008, 10:55 PM
uncholowapo's Avatar
uncholowapo Offline
Registered User
 
Join Date: Apr 2008
Location: /home/couch/PS3
Age: 21
Posts: 216
Can someone check my spec file?

I am trying to make an rpm of the updated 1.51-54 snes9x with the GTK interface. Here is the error I get when I try to build it:
Code:
(./configure seem to work and then get into make).............................
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/snes9x-1.51-54-root-Juan
error: Installed (but unpackaged) file(s) found:
   /bin/snes9x-gtk
   /share/applications/snes9x.desktop
   /share/pixmaps/snes9x.svg


RPM build errors:
    Installed (but unpackaged) file(s) found:
   /bin/snes9x-gtk
   /share/applications/snes9x.desktop
   /share/pixmaps/snes9x.svg
[Juan@localhost SPECS]$
If it helps I have already compiled it on my computer with success. I am also using Fedora 9.

I am still trying to learn and work this out. Here is the spec file:
Code:
Summary: Portable, freeware Super Nintendo Entertainment System (TM) emulator
Name: snes9x
Version: 1.51
Release: 54
License: Other
Group: Applications/Emulators
URL: http://www.snes9x.com/
Source: http://bearoso.googlepages.com/snes9x-1.51-src-gtk-54.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: portaudio, portaudio-devel
BuildRequires: gtkglext, gtkglext-devel
BuildRequires: nasm

%description
Snes9x is a portable, freeware Super Nintendo Entertainment System (SNES)
emulator. It basically allows you to play most games designed for the SNES
and Super Famicom Nintendo game systems on your computer. (This is the
build with the GTK interface)


%prep
%setup -n %{name}-%{version}-src


%build
%configure --prefix=/usr --with-netplay --with-opengl --with-gtk
make %{?_smp_mflags}

make clean



%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)



%changelog
Some help to a noob would be greatly appreciated. Thanks.
Reply With Quote
  #2  
Old 15th October 2008, 11:02 PM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello:
Add to your files section

%files
%defattr(-,root,root,-)
%{_bindir}/snes9x-gtk
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/snes9x.svg

or

%files
%defattr(-,root,root,-)
/bin/snes9x-gtk
/share/applications/snes9x.desktop
/share/pixmaps/snes9x.svg

Then give it a whirl again.

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #3  
Old 15th October 2008, 11:22 PM
uncholowapo's Avatar
uncholowapo Offline
Registered User
 
Join Date: Apr 2008
Location: /home/couch/PS3
Age: 21
Posts: 216
Whew! Thank you. The second one did the trick. I feel like I am on top of the world right now
EDIT: I can't figure out how to make put them up as attachments so I just uploaded them to rapidshare here. It installs fine and works. Enjoy! Again thank you very much.

Last edited by uncholowapo; 15th October 2008 at 11:31 PM.
Reply With Quote
Reply

Tags
check, file, spec

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 to have an RPM replace another in the SPEC file? uncholowapo Using Fedora 0 30th September 2009 05:48 AM
writing spec file munna_dude Servers & Networking 3 18th August 2007 10:54 AM
building a SPEC file jim Programming & Packaging 5 2nd October 2005 09:40 PM
About the spec file in emacs-21.4-2.src.rpm AlaxMAX Using Fedora 2 19th April 2005 08:41 AM


Current GMT-time: 01:38 (Saturday, 25-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