File skvm.spec of Package skvm

#
# spec file for package slock (Version 0.9)
#
# Copyright 2008 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.

Summary: Simple, fast and efficient X display locker
Name: skvm
Version: 07212009+hg
Release: 1
Source0: %{name}+hg.tar.bz2
#Source1: http://code.suckless.org/dl/tools/%{name}-%{version}.tar.gz
Patch0: %{name}+hg-paths.patch
Vendor: %{vendor}
URL: http://tools.suckless.org/%{name}
License: X11/MIT
Group: System/Daemons
BuildRequires: hal-devel dbus-1-devel
BuildRoot: %{_builddir}/%{name}-%{version}-build


%description
SKVM is a lightweight volume manager for GNU/
Linux. It depends on hal and dbus.
It is meant to be simple to use, efficient an
d functional. 

It has been tested and working on Arch linux
and Debian.


%prep
%setup -q -n %{name}
#if [ "`arch`" = "x86_64" ]
#then
#%patch1 -p1
#else
%patch0 -p1
#fi


%build
%{__make} %{?jobs:-j%jobs}
%debug_package


%install
%{__install} -d -m 0755 %{buildroot}%{_bindir} 
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/init.d 
%{__make} DESTDIR=$RPM_BUILD_ROOT install 
%{__install} -d -m 0755 %{buildroot}/%{_docdir}/%{name}
%{__install} -m 0644 README LICENSE %{buildroot}/%{_docdir}/%{name}


%clean
%{__rm} -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%attr(0755,root,root)%{_bindir}/%{name}
%{_sysconfdir}/init.d/%{name}
%doc README LICENSE
%doc %{_mandir}/man1/skvm.1.gz


%preun
%stop_on_removal

%postun
%insserv_cleanup

%changelog
* Thu Jul 9 2009 Mario GarcĂ­a H. <code933k@gmail.com> - 07212009+hg
- Initial package.
openSUSE Build Service is sponsored by