Hi, I'm trying to package dolphin emulator, I made the spec file from scratch since i could not find a SRPM:
%define name dolphin-emulator
%define version r7348
%define release %mkrel 1
%define major 1
%define libsoil %mklibname soil %{major}
%define libsoildev %mklibname soil %{major} -d
Name: %{name}
Version: %{version}
Release: %{release}
Group: Emulators
License: GPLv2
Source0: %{name}-%{version}.tar.xz
URL: http://www.dolphin-emulator.com/
Summary: Dolphin is a Gamecube and Wii emulator.
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires: subversion
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libwxgtk2.8-devel
BuildRequires: libgtk+2.0_0-devel
BuildRequires: libCg-devel
BuildRequires: libbluez-devel
BuildRequires: libxrandr2-devel
BuildRequires: libxext6-devel
BuildRequires: libreadline5-devel
BuildRequires: libalsa2-devel
BuildRequires: libglew-devel
BuildRequires: liblzo2_2-devel
BuildRequires: libSDL-devel
BuildRequires: libsfml-system-devel
BuildRequires: libpulseaudio-devel
BuildRequires: libsfml-network-devel
BuildRequires: libgomp-devel
Requires: libwxgtk2.8
Requires: libgtk+2.0_0
Requires: libCg
Requires: libbluez3
Requires: libxrandr2
Requires: libxext6
Requires: libreadline5
Requires: libalsa2
Requires: libglew1.5
Requires: liblzo2_2
Requires: libSDL1.2_0
Requires: libsfml-system1.6
Requires: libpulseaudio0
Requires: libsfml-network1.6
Requires: libgomp1
%description
Dolphin is a Gamecube and Wii emulator. Most games run perfectly or with minor
bugs. Games are playable at HD quality, up to 1080p. Dolphin comes with many
features. Some are even not available on the original Wii gaming console.
* You can save a running game whenever you want and reload a state.
* Anti-Aliasing and Anisotropic Filtering makes the games more
brilliant and realistic. Typically a game looks much better on Dolphin
than on the original Wii console. Actual quality depends on the graphics card.
* Play on maximum resolution in high definition up to 1080p. This is a remarkable
feature the original Wii console lacks of.
* Connect your Wiimote and Nunchuck to your computer for a better gaming experience.
%package -n %{libsoil}
Summary: SOIL dynamic libraries
Group: System/Libraries
Provides: %{libsoil} = %{major}
%description -n %{libsoil}
SOIL dynamic libraries
%package -n %{libsoildev}
Summary: SOIL header files
Group: Development/C++
Provides: %{libsoildev} = %{major}
%description -n %{libsoildev}
Includes files for developing programs based on libsoil
%prep
%setup -q -n %{name}-%{version}
%build
%cmake
%make
%install
rm -fr $RPM_BUILD_ROOT
%makeinstall_std -C build
%post
%update_menus
%postun
%clean_menus
%clean
rm -fr $RPM_BUILD_ROOT
%changelog
* Mon Mar 14 2011 xyz_D <wero.dan at gmail.com> r7345-1pclos2010
-create
Everything goes fine, it preps ok, compiles ok but when trying to link the final binary it fails. This happens only while trying to compile in the RPM environment, if I try to compile as usual it compiles and links ok. Thanks in advance.