Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.10
ruby-ldap
ruby-ldap.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ruby-ldap.spec of Package ruby-ldap
%global gem_name ruby-ldap # Package should be named rubygem-ruby-ldap # Fix at a later stage. Name: %{gem_name} Version: 0.9.16 Release: 20%{?dist} Summary: Ruby LDAP libraries License: BSD URL: http://ruby-ldap.sourceforge.net/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: openldap-devel BuildRequires: openssl-devel BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby-devel BuildRequires: gcc %if 0%{?fc20} || 0%{?el7} Requires: ruby(release) Requires: ruby(rubygems) %endif # Historical should be removed. Provides: ruby(ldap) = %{version}-%{release} %if 0%{?fc20} || 0%{?el7} Provides: rubygem(%{gem_name}) = %{version} %endif %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. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} # Well, this gem has some peculiar directory structure: # Usually C extension files are under ext/%%gem_name, # however this gem puts .c/.h files on the same directory # of README or so... # Once save the files to be installed to some other directory rm -rf .INSTALL_FILES mkdir .INSTALL_FILES cp -a * .INSTALL_FILES pushd .INSTALL_FILES rm -rf \ *.c \ *.h \ extconf.rb \ %{nil} popd gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build # Create the gem as gem install only works on a gem file gem build %{gem_name}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ # special treatment: once clean up %%gem_instdir and # install "clean" files rm -rf %{buildroot}%{gem_instdir} cp -a ./.INSTALL_FILES/ \ %{buildroot}%{gem_instdir}/ mkdir -p %{buildroot}%{gem_extdir_mri}/ # TODO: move the extensions mv ./%{gem_extdir_mri}/ldap* %{buildroot}%{gem_extdir_mri}/. %if 0%{?fedora} >= 21 mv .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/. %endif # Prevent dangling symlink in -debuginfo (rhbz#878863). rm -rf %{buildroot}%{gem_instdir}/extconf.rb/ %check pushd .%{gem_instdir} popd %files %dir %{gem_instdir} %{gem_libdir} %{gem_extdir_mri} %exclude %{gem_cache} %{gem_spec} %doc %{gem_instdir}/COPYING %files doc %doc %{gem_docdir} #%%doc TODO README ChangeLog FAQ %doc %{gem_instdir}/test %doc %{gem_instdir}/win %{gem_instdir}/ChangeLog %{gem_instdir}/FAQ %{gem_instdir}/NOTES %{gem_instdir}/README %{gem_instdir}/TODO
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor