rpms/rubygem-hawler/EL-5 import.log, NONE, 1.1 rubygem-hawler-0.3.4-fix-tests.patch, NONE, 1.1 rubygem-hawler.COPYING, NONE, 1.1 rubygem-hawler.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Jeroen van Meeuwen kanarip at fedoraproject.org
Tue Nov 3 09:22:12 UTC 2009


Author: kanarip

Update of /cvs/pkgs/rpms/rubygem-hawler/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv4813/EL-5

Modified Files:
	.cvsignore sources 
Added Files:
	import.log rubygem-hawler-0.3.4-fix-tests.patch 
	rubygem-hawler.COPYING rubygem-hawler.spec 
Log Message:
0.3-5


--- NEW FILE import.log ---
rubygem-hawler-0_3-5_fc12:EL-5:rubygem-hawler-0.3-5.fc12.src.rpm:1257240101

rubygem-hawler-0.3.4-fix-tests.patch:
 lib/hawlerhelper.rb     |    1 +
 test/ts_hawlerhelper.rb |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

--- NEW FILE rubygem-hawler-0.3.4-fix-tests.patch ---
--- lib/hawlerhelper.rb.debug	1970-01-01 09:00:00.000000000 +0900
+++ lib/hawlerhelper.rb	2009-10-26 00:42:05.000000000 +0900
@@ -30,6 +30,7 @@
 #
 # Jon Hart <jhart at spoofed.org>
 
+require 'set'
 require 'hpricot'
 
 module HawlerHelper
--- test/ts_hawlerhelper.rb.debug	1970-01-01 09:00:00.000000000 +0900
+++ test/ts_hawlerhelper.rb	2009-10-26 00:43:30.000000000 +0900
@@ -5,7 +5,7 @@
 require 'hawlerhelper'
 require 'test/unit'
 require 'test/unit/assertions'
-
+require 'net/http'
 
 class TestHawlerHelper < Test::Unit::TestCase
 



--- NEW FILE rubygem-hawler.COPYING ---
Copyright (c) 2008, Jon Hart 
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.
    * Neither the name of the <organization> nor the
      names of its contributors may be used to endorse or promote products
      derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY Jon Hart ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Jon Hart BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


--- NEW FILE rubygem-hawler.spec ---
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname hawler
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}

Summary:        Hawler, the ruby HTTP crawler
Name:           rubygem-%{gemname}
Version:        0.3
Release:        5%{?dist}
Group:          Development/Languages
License:        BSD
URL:            http://spoofed.org/files
Source0:        http://spoofed.org/files/hawler/gems/%{gemname}-%{version}.gem
# From http://spoofed.org/files/hawler/src/COPYING
Source1:        rubygem-hawler.COPYING
Patch0:         rubygem-hawler-0.3.4-fix-tests.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:       ruby(abi) = 1.8
Requires:       rubygems
Requires:       rubygem(hpricot)
BuildRequires:  rubygems
BuildRequires:  rubygem(hpricot)
BuildArch:      noarch
Provides:       rubygem(%{gemname}) = %{version}

%description
Hawler, the Ruby HTTP crawler. Written to ease satisfying
curiousities about the way the web is woven.

%prep

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
gem install --local --install-dir %{buildroot}%{gemdir} \
            --force --rdoc %{SOURCE0}

pushd %{buildroot}/%{geminstdir}
patch -p0 < %{PATCH0}
popd

install -p -m644 %{SOURCE1} %{buildroot}/%{geminstdir}/COPYING

# Remove backup files
find %{buildroot}/%{geminstdir} -type f -name "*~" -delete

# Fix anything executable that does not have a shebang
for file in `find %{buildroot}/%{geminstdir} -type f -perm /a+x`; do
    [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
done

# Find files with a shebang that do not have executable permissions
for file in `find %{buildroot}/%{geminstdir} -type f ! -perm /a+x -name "*.rb"`; do
    [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
done

# Find files that have non-standard-executable-perm
find %{buildroot}/%{geminstdir} -type f -perm /g+wx -exec chmod -v g-w {} \;

# Find files that are not readable
find %{buildroot}/%{geminstdir} -type f ! -perm /go+r -exec chmod -v go+r {} \;

# Remove these hidden files
rm -rf %{buildroot}/%{geminstdir}/.project
rm -rf %{buildroot}/%{geminstdir}/.loadpath

%check
pushd %{buildroot}/%{geminstdir}
ruby test/ts_hawlee.rb || :
ruby test/ts_hawlerhelper.rb || :
ruby test/ts_hawler.rb || :
popd

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root, -)
%doc %{gemdir}/doc/%{gemname}-%{version}
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%dir %{geminstdir}
%doc %{geminstdir}/README
%doc %{geminstdir}/COPYING
%{geminstdir}/lib/
%{geminstdir}/test/

%changelog
* Sun Nov  1 2009 Jeroen van Meeuwen <j.van.meeuwen at ogd.nl> - 0.3-5
- Fix tests (mtasaka, #530204)
- Add requirement for rubygem-hpricot

* Sun Oct 25 2009 Jeroen van Meeuwen <j.van.meeuwen at ogd.nl> - 0.3-4
- License is BSD
- Included License file
- Updated description
- Enabled tests

* Wed Oct 21 2009 Jeroen van Meeuwen <j.van.meeuwen at ogd.nl> - 0.3-2
- The license is actually unknown to me

* Sat Oct 17 2009 Jeroen van Meeuwen <j.van.meeuwen at ogd.nl> - 0.3-1
- First package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-hawler/EL-5/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	3 Nov 2009 04:35:51 -0000	1.1
+++ .cvsignore	3 Nov 2009 09:22:11 -0000	1.2
@@ -0,0 +1 @@
+hawler-0.3.gem


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-hawler/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	3 Nov 2009 04:35:52 -0000	1.1
+++ sources	3 Nov 2009 09:22:11 -0000	1.2
@@ -0,0 +1 @@
+bf65c3d93bb5983ebdfed95fe4f179b1  hawler-0.3.gem




More information about the fedora-extras-commits mailing list