File kde3-keurocalc.spec of Package kde3-keurocalc

#
# spec file for package kde3-keurocalc (Version  0.9.7)
#
# Copyright (c) 2009 Kyrill Detinov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild

%define _prefix /opt/kde3

Name:		kde3-keurocalc
Version:	0.9.7
Release:	0
URL:		http://opensource.bureau-cornavin.com/keurocalc/
License:	GPL-2.0
Source0:	%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE kde3-keurocalc-0.9.7-desktop.patch lazy.kent.suse@gmail.com
# -- correct desktop-file
Patch0:		kde3-keurocalc-0.9.7-desktop.patch
Group:		Productivity/Office/Finance
Summary:	Currency Converter and Calculator
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  kdelibs3-devel fdupes
Requires:	%{name}-lang = %{version}
Conflicts:	keurocalc

%description
KEuroCalc is a universal currency converter and calculator. It can convert from
and to many currencies, either with a fixed conversion rate or a variable
conversion rate. It directly downloads the latest variable rates through the
Internet.

Authors:
--------
    Éric Bischoff <e.bischoff@noos.fr>
    Melchior Franz <a8603365@unet.univie.ac.at>
    Bas Willems <cybersurfer@euronet.nl>
    Gil Gross <ptit.ours@gmail.com>

%package doc
Group:		Documentation/HTML
Summary:	KEuroCalc Documentation
Requires:	%{name} = %{version}

%description doc
Provides help documentation for the package kde3-keurocalc.

Authors:
--------
    Éric Bischoff <e.bischoff@noos.fr>
    Melchior Franz <a8603365@unet.univie.ac.at>
    Bas Willems <cybersurfer@euronet.nl>
    Gil Gross <ptit.ours@gmail.com>

%lang_package

%prep
%setup -q -n keurocalc-%{version}
%patch -P 0
. /etc/opt/kde3/common_options
update_admin --no-unsermake

%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final
%{__make} %{?jobs:-j %jobs}

%install
. /etc/opt/kde3/common_options
%{makeinstall}
# Change locale from sr@Latn to sr@latin
%if 0%{?suse_version} > 1100
%{__mv} %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%endif
%fdupes %{buildroot}
%find_lang keurocalc
kde_post_install

%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS TODO
%{_bindir}/*
%{_datadir}/apps/keurocalc
#{_datadir}/applications/kde/keurocalc.desktop
%{_datadir}/*/*/*.desktop
%{_datadir}/icons/hicolor/*/apps/keurocalc.png

%files lang -f keurocalc.lang
%defattr(-,root,root)
%exclude %{_datadir}/doc/HTML/*/keurocalc
%dir %{_datadir}/locale/br
%dir %{_datadir}/locale/br/LC_MESSAGES
%dir %{_datadir}/locale/ka
%dir %{_datadir}/locale/ka/LC_MESSAGES
%dir %{_datadir}/locale/ga
%dir %{_datadir}/locale/ga/LC_MESSAGES
%files doc
%defattr(-,root,root)
%doc %{_datadir}/doc/HTML/*/keurocalc

%changelog
openSUSE Build Service is sponsored by