File kandasd.spec of Package kandasd

# norootforbuild

Name:      kandasd
BuildRequires: libkde4-devel
Url:       http://code.google.com/p/kandas/
Version:   0.2.0
Release:   1
License:   GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group:     Productivity/Network
Summary:   Information management for NDAS devices
Source:    %{name}-%{version}.tar.bz2
Packager:  Stefan Majewsky <majewsky@gmx.net>

%if %suse_version >= 1030
BuildRequires: licenses
Requires:licenses
%endif

%description
KaNDASd is an information management server for the Linux NDAS driver which allows to gather information about, connect to, and disconnect from NDAS devices.

Authors:
--------
Stefan Majewsky <majewsky@gmx.net>

%debug_package
%prep
%setup -q

%build
%cmake_kde4
%make_jobs

%install
%if %suse_version >= 1030
for FILE in COPYING; do
 MD5SUM=$(md5sum $FILE | sed 's/ .*//')
 if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
  ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
 fi
done
%endif
%makeinstall

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%doc COPYING
/usr/sbin/kandasd
/usr/include/kandasd
/usr/include/kandasd/definitions.h
/usr/include/kandasd/org.kandas.xml
/etc/dbus-1/system.d/kandas.conf
/etc/init.d/kandas-daemon

%changelog
* Fri Apr 18 2008 - Stefan Majewsky <majewsky@gmx.net>
- initial spec file
openSUSE Build Service is sponsored by