File kfritz.spec of Package kfritz

#
# 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.
#

# norootforbuild

Name:               kfritz
Summary:            A KDE program for AVMs Fritz!Box to get call signaling and other functions
Version:            0.0.14
Release:            1
License:            GPL-2.0
Group:              System/GUI/KDE
Source0:            %name-%version.tar.gz
Patch0:             kfritz_desktop.patch
Url:                http://kde-apps.org/content/show.php/KFritz?content=120190
BuildRoot:          %{_tmppath}/%{name}-%{version}-build
BuildRequires:      libkde4-devel
BuildRequires:      update-desktop-files
BuildRequires:      libgcrypt-devel
BuildRequires:      libopenssl-devel
BuildRequires:      oxygen-icon-theme
BuildRequires:      commoncpp2-devel
BuildRequires:      glibc-devel
%if 0%{?suse_version} >= 1500
BuildRequires:      libboost_system-devel libboost_date_time-devel libboost_regex-devel libboost_thread-devel
%else
BuildRequires:      boost-devel
%endif
Recommends:         kfritz-lang = %{version}-%{release}
%kde4_runtime_requires
%lang_package

%description
A KDE program for users of AVMs Fritz!Box to get call signaling and other functions.
It provides:
- Call notification
- Phone book support
- Call list


%prep
%setup -q -n %{name}-%{version}
%patch0 -p1


%build
%__mkdir builddir
pushd builddir
cmake -DCMAKE_INSTALL_PREFIX=%_prefix ..
%make_jobs
popd

%install
pushd builddir
%kde4_makeinstall
popd
%__strip %buildroot%_bindir/kfritz
%__install -d -m 755 %buildroot%_datadir/pixmaps
ln -sf %_kde4_iconsdir/oxygen/128x128/apps/kfritz-tray.png %buildroot%_datadir/pixmaps/kfritz.png
%kde_post_install

%find_lang %{name}

%clean
rm -rf %buildroot

%files 
%defattr(644,root,root,755)
%doc HISTORY COPYING
%attr(755,root,root) %_bindir/kfritz
%_kde4_applicationsdir/kfritz.desktop
%dir %_kde_share_dir/apps/kfritz
%_kde_share_dir/apps/kfritz/kfritz.notifyrc
%_kde_share_dir/apps/kfritz/kfritzui.rc
%_kde_share_dir/config.kcfg/kfritz.kcfg
%_datadir/pixmaps/kfritz.png
%_kde4_iconsdir/oxygen/128x128/status/incoming-call.png
%_kde4_iconsdir/oxygen/128x128/status/missed-call.png
%_kde4_iconsdir/oxygen/128x128/status/new-call.png
%_kde4_iconsdir/oxygen/128x128/status/outgoing-call.png
%_kde4_iconsdir/oxygen/128x128/apps/kfritz-tray.png
%_kde4_iconsdir/oxygen/16x16/status/incoming-call.png
%_kde4_iconsdir/oxygen/16x16/status/missed-call.png
%_kde4_iconsdir/oxygen/16x16/status/new-call.png
%_kde4_iconsdir/oxygen/16x16/status/outgoing-call.png
%_kde4_iconsdir/oxygen/22x22/status/incoming-call.png
%_kde4_iconsdir/oxygen/22x22/status/missed-call.png
%_kde4_iconsdir/oxygen/22x22/status/new-call.png
%_kde4_iconsdir/oxygen/22x22/status/outgoing-call.png
%_kde4_iconsdir/oxygen/32x32/status/incoming-call.png
%_kde4_iconsdir/oxygen/32x32/status/missed-call.png
%_kde4_iconsdir/oxygen/32x32/status/new-call.png
%_kde4_iconsdir/oxygen/32x32/status/outgoing-call.png
%_kde4_iconsdir/oxygen/48x48/status/incoming-call.png
%_kde4_iconsdir/oxygen/48x48/status/missed-call.png
%_kde4_iconsdir/oxygen/48x48/status/new-call.png
%_kde4_iconsdir/oxygen/48x48/status/outgoing-call.png
%_kde4_iconsdir/oxygen/64x64/status/incoming-call.png
%_kde4_iconsdir/oxygen/64x64/status/missed-call.png
%_kde4_iconsdir/oxygen/64x64/status/new-call.png
%_kde4_iconsdir/oxygen/64x64/status/outgoing-call.png
%_kde4_iconsdir/oxygen/scalable/status/incoming-call.svgz
%_kde4_iconsdir/oxygen/scalable/status/missed-call.svgz
%_kde4_iconsdir/oxygen/scalable/status/new-call.svgz
%_kde4_iconsdir/oxygen/scalable/status/outgoing-call.svgz



%files lang -f %{name}.lang

%changelog

openSUSE Build Service is sponsored by