File romdigger-kde4.spec of Package romdigger-kde4
Name: romdigger-kde4
License: GPL v2 or later
Group: Applications/Emulators
BuildRequires: libkde4-devel romdigger-devel
Requires: libkde4 romdigger
Summary: RomDigger library KDE4 integration
Version: 0.2.0
Release: 1
URL: http://romdigger.sf.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2
%description
Uses romdigger library to get the rom file info it can find. Text parameters - like game title, developer, publisher, year, - are shown in the rom file properties dialog; rom preview image is shown as thumbnail in konqueror, and also visible in file properties dialog.
%prep
# extract the source and go into the romdigger-kde4-x.x.x directory
%setup -q
%build
# build strigi endanalyser
pushd .
cd strigi/src
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR=%{_libdir} .
%make_jobs
popd
# build thumbcreator
pushd .
cd kthumbcreator/src
%cmake_kde4 -d build
%make_jobs
popd
%install
#install strigi endanalyser
pushd .
cd kthumbcreator/src/build
%makeinstall
popd
#install kthumbcreator
pushd .
cd strigi/src
%makeinstall
popd
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%{_libdir}/strigi/strigiea_romdigger.so
%{_libdir}/kde4/romdiggerthumbnail.so
%{_datadir}/kde4/services/romdiggerthumbnail.desktop