File moneyplex.spec of Package moneyplex

#
# spec file for package moneyplex
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           moneyplex
Version:        12.0.20869
Release:        0
Summary:        moneyplex openSUSE Edition
License:        SUSE-NonFree
Group:          Productivity/Office/Finance
ExclusiveArch:  %ix86 x86_64
BuildRequires:  update-desktop-files
Url:            http://www.matrica.de

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        moneyplex-suse-%{version}.tar.gz
Source1:        moneyplex-daten-%{version}.tar.gz
Source100:      moneyplex-rpmlintrc

%description
Mit moneyplex® wird die Verwaltung Ihrer privaten und geschäftlichen 
Finanzen zum Kinderspiel. Überweisungen, Lastschriften und Daueraufträge
sind durch auf dem Bildschirm realistisch nachgebildete Formulare im 
Handumdrehen erstellt.

Mit moneyplex® erledigen Sie ab sofort Ihre Bankgeschäfte von zu Hause. 
Multiple Kontenverwaltung, Terminzahlungen, Vermögens- entwicklung sind 
nur ein paar Leistungsmerkmale dieser wirklich einfach und intuitiv zu 
bedienenden Software der Spitzenklasse.

%package -n moneyplex-suse
Summary:        moneyplex (SUSE Version) %{_target_cpu}
Group:          Productivity/Office/Finance
Requires:       moneyplex-daten >= 12.0
Provides:       moneyplex-anwendung = %{version}
Obsoletes:      moneyplex
Provides:       moneyplex
Conflicts:      moneyplex-kaufversion

%description -n moneyplex-suse
moneyplex Homebanking Anwendung (SUSE Version) kompiliert fuer %{_target_cpu}

%package -n moneyplex-daten
Summary:        Daten fuer moneyplex
Group:          Productivity/Office/Finance
Requires:       moneyplex-anwendung >= 12.0
BuildArch:      noarch

%description -n moneyplex-daten
Bankdaten und andere Dateien

%prep
%setup -c -a 1
rm moneyplex-daten-%{version}/moneyplex-daten.spec

%build
# nothing to do here

%install
mkdir -p %{buildroot}/opt/moneyplex %{buildroot}/usr/share/applications %{buildroot}/usr/share/pixmaps %{buildroot}/usr/share/icons/hicolor/48x48/apps

cp -r  moneyplex-daten-%{version}/* %{buildroot}/opt/moneyplex/
mv %{buildroot}/opt/moneyplex/system/mpx256.png %{buildroot}/usr/share/pixmaps/moneyplex.png
mv %{buildroot}/opt/moneyplex/system/mpx48.png %{buildroot}/usr/share/icons/hicolor/48x48/apps/moneyplex.png

mkdir -p %{buildroot}/opt/moneyplex %{buildroot}%{_bindir}
cp -r moneyplex-suse-%{version}/%{_target_cpu}/* %{buildroot}/opt/moneyplex/
ln -s /opt/moneyplex/prestart %{buildroot}%{_bindir}/moneyplex

cat <<EOF >%{buildroot}/usr/share/applications/moneyplex.desktop
[Desktop Entry]
Name=Moneyplex
GenericName=Homebanking
Comment=HBCI Onlinebanking
Exec=moneyplex
Icon=moneyplex
Terminal=false
Type=Application
Categories=Applications;Office;Finance;
EOF

%files -n moneyplex-suse
%defattr(-,root,root,-)
%dir /opt/moneyplex
/opt/moneyplex/prestart
/opt/moneyplex/moneyplex
/opt/moneyplex/mpxalarm.int
/opt/moneyplex/mpxalarm
%{_bindir}/moneyplex

%files -n moneyplex-daten
%defattr(-,root,root,-)
%dir /opt/moneyplex
/opt/moneyplex/*.txt
/opt/moneyplex/system
/opt/moneyplex/reports
/usr/share/applications/moneyplex.desktop
/usr/share/pixmaps/moneyplex.png
%dir /usr/share/icons/hicolor
%dir /usr/share/icons/hicolor/48x48
%dir /usr/share/icons/hicolor/48x48/apps
/usr/share/icons/hicolor/48x48/apps/moneyplex.png

%changelog
openSUSE Build Service is sponsored by