File krb5-ticket-watcher.spec of Package krb5-ticket-watcher

#
# spec file for package krb5-ticket-watcher (Version 1.0.3)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           krb5-ticket-watcher
Url:            http://sourceforge.net/projects/krb5ticketwatch
%if 0%{?suse_version}
BuildRequires:  cmake krb5-devel libqt4-devel update-desktop-files
%endif
%if 0%{?fedora_version}
BuildRequires:  cmake gcc-c++ krb5-devel qt-devel
%endif
%if 0%{?mandriva_version}
%ifarch x86_64
BuildRequires:  cmake gcc-c++ lib64krb53-devel lib64qt4-devel
%else
BuildRequires:  cmake gcc-c++ libkrb53-devel libqt4-devel
%endif
%endif
License:        GPL v2 or later
Group:          System/GUI/Other
AutoReqProv:    on
Summary:        A Tray Applet for Watching, Renewing, and Reinitializing Kerberos Tickets
Version:        1.0.3
Release:        1
Source0:        %{name}-%{version}.tar.bz2
#Source1:        krb5-ticket-watcher-po.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A tray applet for watching, renewing, and reinitializing Kerberos
tickets.



Authors:
--------
    Michael Calmer <Michael.Calmer@gmx.de>

%if 0%{?suse_version}
%endif

%prep
%setup -n %{name}-%{version} 
#%setup -a 1 -T -D -n %{name}-%{version}

%build
%if 0%{?mandriva_version}
export PATH=/usr/lib/qt4/bin:${PATH}
%endif
mkdir build
cd build
export CFLAGS=$RPM_OPT_FLAGS
export CXXFLAGS="$CFLAGS"
cmake -DCMAKE_INSTALL_PREFIX=/usr .. 
make %{?jobs:-j %jobs} VERBOSE=1

%install
cd build
make install DESTDIR=$RPM_BUILD_ROOT
%if 0%{?suse_version}
%suse_update_desktop_file %{name} System Network
%endif
cd ..
%{find_lang} krb5-ticket-watcher

%files -f krb5-ticket-watcher.lang
%defattr(-,root,root)
%doc COPYING Changes News TODO 
/usr/bin/*
/usr/share/applications/%{name}.desktop
/usr/share/pixmaps/*.png

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
openSUSE Build Service is sponsored by