File lemonpos.spec of Package lemonpos
#
# spec file for package lemonpos (Version 0.9.3)
#
# Copyright (c) 2010 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments via http://www.suse.de/feedback/
#
%define vsuffix 0
%define rversion 0.9.5
Name:		lemonpos
Version:	0.9.5.%{vsuffix}
Release:	0
Summary:	Point Of Sale Application For KDE4
Source0:	%{name}-%{rversion}.%{vsuffix}.tar.gz
URL:		https://github.com/miguelchavez/lemonpos/
Group:		Productivity/Other
License:	GPL-2.0+
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
BuildRequires:	cmake kdebase4-workspace-devel libkde4-devel libkdecore4-devel libqt4-devel update-desktop-files fdupes hicolor-icon-theme
#Requires:       mysql-community-server
%kde4_runtime_requires
%description
Lemon is an open source POS (point of sale) for Linux, and other Unix.
It is a general POS, not targetet to a specific business.
It has been developed for ease of use and customization, and to support
barcode scanners and ticket printers. At this point, it has been tested
with a parallel port ticket printer (Star Micronics, SP500).
More information on http://www.lemonpos.org/
Authors:
--------
     Miguel Chávez Gamboa <miguel.chavez.gamboa@gmail.com>
%prep
%setup -q
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%makeinstall
%suse_update_desktop_file -r "lemon" KDE Office Finance
%suse_update_desktop_file -r "squeeze" KDE System Database
# Delete unnecessary files (translations not shipped)
rm -r %{buildroot}%{_datadir}/locale/cz
%fdupes $RPM_BUILD_ROOT
%kde_post_install
%post
/sbin/ldconfig
/usr/bin/update-desktop-database
%postun
/sbin/ldconfig
/usr/bin/update-desktop-database
%clean
%{__rm} -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc COPYING NOTES README USING database_resources doc/*
%{_bindir}/lemon
%{_bindir}/squeeze
%{_datadir}/applications/kde4/*.desktop
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/kde4/apps/*/*.*
%{_datadir}/kde4/apps/*/*/*.*
%{_datadir}/kde4/apps/*/*/*/*.*
%{_datadir}/kde4/config.kcfg/*.kcfg
%{_datadir}/kde4/config/lemonrc
%{_datadir}/locale/*/*/*.mo
%{_datadir}/kde4/apps/lemon
%{_datadir}/kde4/apps/lemon/images
%{_datadir}/kde4/apps/lemon/styles
%{_datadir}/kde4/apps/lemon/styles/elegant
%{_datadir}/kde4/apps/lemon/styles/simple
%{_datadir}/kde4/apps/squeeze
%{_datadir}/kde4/apps/squeeze/images
%{_datadir}/kde4/apps/squeeze/styles
%{_datadir}/kde4/apps/squeeze/styles/simple
%changelog