summaryrefslogtreecommitdiffstats
path: root/rubygem-ruby-yadis.spec
blob: f340b375730dad0dab690afc6e288ebe2818a2c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Generated from ruby-yadis-0.3.4.gem by gem2rpm -*- rpm-spec -*-
%global gem_name ruby-yadis
%global rubyabi 1.9.1

Summary: A library for performing Yadis service discovery
Name: rubygem-%{gem_name}
Version: 0.3.4
Release: 1%{?dist}
Group: Development/Languages
License: ASL 2.0
URL: http://www.openidenabled.com/yadis/libraries/ruby
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Requires: ruby(abi) = %{rubyabi}
Requires: ruby(rubygems) 
BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires: rubygems-devel 
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}

%description
A library for performing Yadis service discovery


%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}

%prep
%setup -q -c -T
mkdir -p .%{gem_dir}
gem install --local --install-dir .%{gem_dir} \
            --force %{SOURCE0}

# Remove extra gemspec file
#rm -rf .%{gem_instdir}/%{gem_name}.gemspec

%build

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/


# The test suite makes a number of HTTP calls, which is unsuitable for
# Fedora's build system.
#%check
#pushd .%{gem_instdir}
# # The tests assume that cwd is the "test" directory.
# cd test
# #testrb2 -I../lib .
#popd


%files
%dir %{gem_instdir}
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README
%doc %{gem_instdir}/INSTALL
%doc %{gem_instdir}/COPYING
%{gem_instdir}/test
%{gem_instdir}/examples

%changelog
* Fri Aug 03 2012 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.3.4-1
- Initial package, created by gem2rpm 0.8.1