[packages/ruby-net-ldap] build noarch, refreshen .spec; license is MIT for 0.3 series
glen
glen at pld-linux.org
Wed Apr 24 21:46:05 CEST 2013
commit 92c36601d0355958f592b746a30914318de2963e
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Apr 24 22:42:22 2013 +0300
build noarch, refreshen .spec; license is MIT for 0.3 series
ruby-net-ldap.spec | 42 +++++++++++++++++++++++++-----------------
1 file changed, 25 insertions(+), 17 deletions(-)
---
diff --git a/ruby-net-ldap.spec b/ruby-net-ldap.spec
index c8072ab..c98110b 100644
--- a/ruby-net-ldap.spec
+++ b/ruby-net-ldap.spec
@@ -3,16 +3,16 @@ Summary: LDAP module for Ruby
Summary(pl.UTF-8): Moduł LDAP dla języka Ruby
Name: ruby-%{pkgname}
Version: 0.3.1
-Release: 1
-License: GPL
+Release: 2
+License: MIT
Group: Development/Languages
Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
# Source0-md5: 96c39c91619446256936b3c81b554c93
-URL: http://rubyforge.org/projects/net-ldap/
-BuildRequires: rpmbuild(macros) >= 1.484
-BuildRequires: ruby >= 1:1.9
-BuildRequires: ruby-modules
-%{?ruby_mod_ver_requires_eq}
+URL: http://rubygems.org/gems/net-ldap
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
+BuildRequires: ruby >= 1:1.8.7
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -46,20 +46,19 @@ ri documentation for %{pkgname}.
Dokumentacji w formacie ri dla %{pkgname}.
%prep
-%setup -q -c
-%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
+%setup -q -n %{pkgname}-%{version}
%build
rdoc --ri --op ri lib
rdoc --op rdoc lib
-rm -r ri/{Array,Bignum,FalseClass,Fixnum,IO,OpenSSL,String,StringIO,TrueClass}
+rm -r ri/{Array,Bignum,FalseClass,Fixnum,IO,OpenSSL,String,StringIO,TrueClass,Net/cdesc-Net.ri}
rm ri/created.rid
+rm ri/cache.ri
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
-
-cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_ridir},%{ruby_rdocdir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
@@ -68,9 +67,16 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README*
-%{ruby_rubylibdir}/net-ldap.rb
-%{ruby_rubylibdir}/net/*
+%doc README.rdoc License.rdoc History.rdoc Hacking.rdoc Contributors.rdoc
+%{ruby_vendorlibdir}/net-ldap.rb
+%{ruby_vendorlibdir}/net/ber.rb
+%{ruby_vendorlibdir}/net/ldap.rb
+%{ruby_vendorlibdir}/net/snmp.rb
+%{ruby_vendorlibdir}/net/ber
+%{ruby_vendorlibdir}/net/ldap
+
+# TODO: package in ruby base dirs?
+%dir %{ruby_vendorlibdir}/net
%files rdoc
%defattr(644,root,root,755)
@@ -78,6 +84,8 @@ rm -rf $RPM_BUILD_ROOT
%files ri
%defattr(644,root,root,755)
-%{ruby_ridir}/Net
+%{ruby_ridir}/Net/BER
+%{ruby_ridir}/Net/LDAP
+# yes, it packages some snmp libs to
%{ruby_ridir}/SNMP
%{ruby_ridir}/SnmpPdu
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-net-ldap.git/commitdiff/92c36601d0355958f592b746a30914318de2963e
More information about the pld-cvs-commit
mailing list