/
rubygem-Antwrap.spec
74 lines (60 loc) · 2.65 KB
/
rubygem-Antwrap.spec
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
# Generated from Antwrap-0.7.0.gem by gem2rpm -*- rpm-spec -*-
%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname Antwrap
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
Summary: A Ruby module that wraps the Apache Ant build tool. Antwrap can be used to invoke Ant Tasks from a Ruby or a JRuby script
Name: rubygem-%{gemname}
Version: 0.7.0
Release: 2%{?dist}
Group: Development/Languages
License: ASL 2.0
URL: http://rubyforge.org/projects/antwrap/
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby(abi) = 1.8
Requires: rubygems
Requires: rubygem(rjb) >= 1.0.3
Requires: rubygem(hoe) >= 1.3.0
BuildRequires: rubygems
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
%description
A Ruby module that wraps the Apache Ant build tool. Antwrap can be used to
invoke Ant Tasks from a Ruby or a JRuby script. == FEATURES/PROBLEMS:
Antwrap runs on the native Ruby interpreter via the RJB (Ruby Java Bridge gem)
and on the JRuby interpreter. Antwrap is compatible with Ant versions 1.5.4,
1.6.5 and 1.7.0. For more information, see the Project Info
(http://rubyforge.org/projects/antwrap/) page. == SYNOPSIS: Antwrap is a
Ruby library that can be used to invoke Ant tasks. It is being used in the
Buildr (http://incubator.apache.org/buildr/) project to execute Ant
(http://ant.apache.org/) tasks in a Java project. If you are tired of fighting
with Ant or Maven XML files in your Java project, take some time to check out
Buildr!
%prep
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
gem install --local --install-dir %{buildroot}%{gemdir} \
--force --rdoc %{SOURCE0}
mkdir -p %{buildroot}/usr/share/doc/%{gemdir}-%{version}
mv %{buildroot}%{geminstdir}/History.txt %{buildroot}/usr/share/doc/%{gemdir}-%{version}
mv %{buildroot}%{geminstdir}/Manifest.txt %{buildroot}/usr/share/doc/%{gemdir}-%{version}
mv %{buildroot}%{geminstdir}/README.txt %{buildroot}/usr/share/doc/%{gemdir}-%{version}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%{gemdir}/gems/%{gemname}-%{version}/
%doc /usr/share/doc/%{gemdir}-%{version}
%doc %{gemdir}/doc/%{gemname}-%{version}
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%changelog
* Tue May 11 2010 Adam Young <ayoung@ayoung.boston.devel.redhat.com> - 0.7.0-2
- Changed define to global
- Removed duplicate files entries
- Added ABI dependency
* Wed Mar 31 2010 Adam Young <ayoung@ayoung.boston.devel.redhat.com> - 0.7.0-1
- Initial package