LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ruby-shadow.spec of Package ruby-shadow (Project home:skettler:puppet)

%define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")

%define real_name shadow

Summary: Ruby bindings for shadow password access
Name: ruby-shadow
Version: 1.4.1
Release: 2%{?dist}
License: Public Domain
Group: System Environment/Libraries
URL: http://ttsky.net/

Source: http://ttsky.net/src/ruby-shadow-%{version}.tar.gz
Patch0: ruby-shadow-1.4.1-cflags.patch
Patch1: ruby-shadow-1.4.1-struct.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: ruby-devel
BuildRequires: ruby >= 1.8
Requires: ruby >= 1.8
Provides: ruby(shadow) = %{version}-%{release}

Ruby bindings for shadow password access

%setup -n %{real_name}-%{version}
%patch0 -p1
%patch1 -p1

### Fix generated Makefile problem on EL4
%{__rm} -f depend

ruby extconf.rb --with-cflags="%{optflags}"
%{__make} %{?_smp_mflags}

%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

%{__rm} -rf %{buildroot}

%defattr(-, root, root, 0755)

* Thu Jun 17 2010 Sascha Kettler <kettler@gmx.net> - 1.4.1-2
- Updated requirements to be satisfied by SLE 10
* Fri Sep 14 2007 Dag Wieers <dag@wieers.com> - 1.4.1-1
- Added fix to generate Makefile on EL4. (Andreas Rogge)
- Added _without_ruby_api macro for EL4 and older. (Andreas Rogge)
- Initial package. (using DAR)