File sesam_srv.spec of Package sesam_srv
#
# spec file for package sesam_srv
#
# Copyright (c) 2011 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: sesam_srv
BuildRequires: java2-devel-packages unixODBC update-desktop-files xorg-x11
%if 0%{?suse_version} > 1020
BuildRequires: fdupes
%endif
Version: 3.0.1
Release: 174
License: NON-OSI-COMPLIANT(royalties)
ExclusiveArch: %ix86
Summary: SEP sesam Server for Linux
Group: System/Management
Url: http://www.sep.de/
AutoReq: yes
AutoProv: no
Source0: sesam_srv-suse.tgz
Patch0: sesam_srv-suse.diff
Provides: sesam
Provides: libsm.so
Requires: XFree86 java java-jdbc unixODBC
Conflicts: sesam_cli sesam_gui
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
SEP sesam is an automatic data backup system for heterogenous network
environments.
%prep
%install
mkdir -p $RPM_BUILD_ROOT
cd $RPM_BUILD_ROOT
tar xfzv %SOURCE0 --atime-preserve
patch -p1 < %PATCH0
chmod 644 `find %buildroot/%_defaultdocdir/sesam/ -type f`
%suse_update_desktop_file Sesam-GUI
%if 0%{?suse_version} > 1020
%fdupes -s %buildroot
%endif
%postun
%insserv_cleanup
if [ $1 -eq 0 ]
then
test -d var/opt/sesam && rm -rf var/opt/sesam
test -f etc/sesam2000.ini && rm -rf etc/sesam2000.ini
fi
exit 0
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,0755)
%doc %{_docdir}/sesam
%dir /opt/sesam
%dir /opt/sesam/bin
/opt/sesam/bin/db
%dir /opt/sesam/bin/gui
/opt/sesam/bin/gui/sesam_gui
%verify(not mode) /opt/sesam/bin/gui/sm_rmigui.jar
/opt/sesam/bin/sesam
/opt/sesam/bin/sms
/opt/sesam/skel
/etc/init.d/sesam
/usr/sbin/rcsesam
/usr/share/applications/Sesam-GUI.desktop
%verify(not mode) /usr/share/pixmaps/sepsesam_kde.xpm
%changelog