forked from pool/rubygem-hpricot
- specfile and rpmlintrc cleanup
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-hpricot?expand=0&rev=6
This commit is contained in:
parent
13035c797f
commit
f480a3852c
@ -1,4 +1 @@
|
||||
addFilter("devel-file-in-non-devel-package")
|
||||
addFilter("no-soname")
|
||||
addFilter("non-executable-script")
|
||||
addFilter("unstripped-binary-or-object")
|
||||
|
@ -22,15 +22,12 @@ Release: 0
|
||||
%define mod_name hpricot
|
||||
#
|
||||
Group: Development/Languages/Ruby
|
||||
License: GPLv2+ or Ruby
|
||||
License: MIT
|
||||
#
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: rubygems_with_buildroot_patch
|
||||
Requires: rubygems >= 1.3.5
|
||||
BuildRequires: ragel
|
||||
%if 0%{?suse_version} >= 1100
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
BuildRequires: dos2unix
|
||||
#
|
||||
Url: http://code.whytheluckystiff.net/hpricot/
|
||||
@ -39,21 +36,18 @@ Source1: rubygem-%{mod_name}-rpmlintrc
|
||||
#
|
||||
Summary: A swift, liberal HTML parser with a fantastic library
|
||||
%description
|
||||
A swift, liberal HTML parser with a fantastic library
|
||||
Hpricot is a fast, flexible HTML parser written in C. It's designed to be very
|
||||
accomodating (like Tanaka Akira's HTree) and to have a very helpful library (like
|
||||
some JavaScript libs -- JQuery, Prototype -- give you.)
|
||||
|
||||
%prep
|
||||
%build
|
||||
%install
|
||||
%gem_install %{S:0}
|
||||
%gem_cleanup
|
||||
|
||||
### rpmlint stuff
|
||||
# wrong-script-end-of-line-encoding
|
||||
dos2unix %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/test/nokogiri-bench.rb
|
||||
# files-duplicate
|
||||
%if 0%{?suse_version} >= 1100
|
||||
%fdupes %{buildroot}
|
||||
%endif
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
Loading…
Reference in New Issue
Block a user