File ruby-polkit.spec of Package ruby-polkit

#
# spec file for package ruby-polkit (Version 0.0.1)
#
# 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:           ruby-polkit
Version:        0.0.1
Release:        2
License:        GPL v2 or later
Group:          Development/Libraries/Ruby
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  PolicyKit-devel dbus-1-devel gcc ruby-devel
Requires:       ruby
Source:         %{name}-%{version}.tar.bz2
#Source1:        %{name}-%{version}-rpmlintrc
Summary:        Ruby bindings for PolicyKit

%description
This extension provides PolicyKit integration. The library provides a
stable API for applications to use the authorization policies from
PolicyKit.



Authors:
--------
    Stefan Schubert <schubi@suse.de>
    Klaus Kaempf <kkaempf@suse.de>

%prep
%setup -n %{name}

%build
%{__make} DEFS="$RPM_OPT_FLAGS"
%{__make} doc

%check
#%{__make} test   # not yet working in buildenv

%install
%makeinstall

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%if 0%{?sles_version} == 10
%{_libdir}/ruby/site_ruby/%{rb_ver}/%{rb_arch}/polkit.so
%else
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/polkit.so
%endif
%doc src/rdoc
%changelog
* Thu Feb 05 2009 kkaempf@suse.de
- Initial release 0.0.1 for YaST rest-service
openSUSE Build Service is sponsored by