File knfoviewer.spec of Package knfoviewer
#
# spec file for package knfoviewer (Version 0.3.3)
#
# Copyright (c) 2010 Kyrill Detinov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define _prefix /opt/kde3
Name: knfoviewer
Version: 0.3.3
Release: 0
License: GPL-2.0
Summary: NFO File Viewer for KDE3
URL: http://kde-apps.org/content/show.php/KNfoViewer?content=71309
Group: Productivity/Text/Utilities
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE knfoviewer-0.3.3-install_icon.patch lazy.kent@opensuse.org
# install icon to the right place
Patch0: knfoviewer-0.3.3-install_icon.patch
BuildRequires: kdelibs3-devel
BuildRequires: cmake
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
KNfoViewer is an application for viewing NFO files.
Authors:
--------
Lawrence Lee <valheru@facticius.net>
%prep
%setup -qn %{name}
%patch -P 0
%{__sed} -i 's/x-nfo/x-nfo;/;/MultipleArgs=false/d' \
src/knfoviewer.desktop
%build
%{__mkdir} build
cd build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_SKIP_BUILD_RPATH=TRUE
%{__make} %{?_smp_mflags}
%install
pushd build
%{makeinstall}
popd
%{__install} -Dm 0644 src/icons/knfoviewer_orig.png \
%{buildroot}%{_datadir}/icons/hicolor/128x128/apps/knfoviewer.png
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_libdir}/kde3/*
%{_prefix}/lib/kde3/*
%{_datadir}/apps/%{name}
%{_datadir}/services/*.desktop
%doc %{_datadir}/doc/HTML/en/%{name}
%{_datadir}/mimelnk/application/x-nfo.desktop
%{_datadir}/applications/kde/%{name}.desktop
%{_datadir}/icons/hicolor/*
%dir /opt/kde3/lib
%dir /opt/kde3/lib/kde3
%changelog
# kate: space-indent on; indent-width 4;