rpms/ruby-ldap/F-8 ruby-ldap.spec,NONE,1.1

Michael Stahnke (stahnma) fedora-extras-commits at redhat.com
Wed Oct 31 01:14:58 UTC 2007


Author: stahnma

Update of /cvs/extras/rpms/ruby-ldap/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17263/F-8

Added Files:
	ruby-ldap.spec 
Log Message:
Adding spec files


--- NEW FILE ruby-ldap.spec ---
%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}

Name:           ruby-ldap
Version:        0.9.7 
Release:        3%{?dist}
Summary:        Ruby LDAP libraries
Group:          Development/Languages
License:        BSD 
URL:            http://%{name}.sourceforge.net/   
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  ruby ruby-devel openldap-devel openssl-devel 
Requires:       ruby(abi) = 1.8 
Provides:       ruby(ldap) = %{version}-%{release}


%description
Ruby/LDAP is an extension library for Ruby. It provides the interface to
some LDAP libraries (e.g. OpenLDAP, UMich LDAP, Netscape SDK,
ActiveDirectory). The common API for application development
is described in RFC1823 and is supported by Ruby/LDAP.


%prep
%setup -q
find example/ -type f | xargs %{__chmod} 0644


%build
export CFLAGS="$RPM_OPT_FLAGS"
ruby extconf.rb
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc TODO README ChangeLog example FAQ
# For noarch packages: ruby_sitelib
%{ruby_sitelib}/ldap
# For arch-specific packages: ruby_sitearch
%{ruby_sitearch}/ldap.so


%changelog
* Mon Oct 29 2007 Michael Stahnke <mastahnke at gmail.com> - 0.9.7-3
- More modifications from bug 346241

* Sun Oct 28 2007 Michael Stahnke <mastahnke at gmail.com> - 0.9.7-2
- Package modifications from bug 346241

* Mon Oct 22 2007 Michael Stahnke <mastahnke at gmail.com> - 0.9.7-1
- Initial Package for Fedora 




More information about the fedora-extras-commits mailing list