forked from Apipie/apipie-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rubygem-apipie-rails.spec
83 lines (68 loc) · 2.2 KB
/
rubygem-apipie-rails.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
75
76
77
78
79
80
81
82
%global gemname apipie-rails
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
%if 0%{?rhel} == 6 || 0%{?fedora} < 17
%define rubyabi 1.8
%else
%define rubyabi 1.9
%endif
Summary: Rails API documentation tool and client generator.
Name: rubygem-%{gemname}
Version: 0.0.9
Release: 0%{?dist}
Group: Development/Libraries
License: MIT
URL: http://github.com/Pajk/apipie-rails
Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem
Requires: ruby(abi) >= %{rubyabi}
Requires: rubygems
BuildRequires: ruby(abi) >= %{rubyabi}
BuildRequires: rubygems
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
%description
This gem adds new methods to Rails controllers that can be used to describe
resources exposed by API. Informations entered with provided DSL are used
to generate documentation, client or to validate incoming requests.
%prep
%setup -q -c -T
mkdir -p .%{gemdir}
gem install --local --install-dir .%{gemdir} \
--force %{SOURCE0}
%build
%install
mkdir -p %{buildroot}%{gemdir}
cp -a .%{gemdir}/* \
%{buildroot}%{gemdir}/
%files
%{geminstdir}/app
%{geminstdir}/lib
%{geminstdir}/apipie-rails.gemspec
%{geminstdir}/Gemfile
%{geminstdir}/Gemfile.lock
%{geminstdir}/Rakefile
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%exclude %{geminstdir}/spec
%exclude %{geminstdir}/rel-eng
%exclude %{geminstdir}/.gitignore
%exclude %{geminstdir}/.rspec
%exclude %{geminstdir}/.rvmrc
%exclude %{geminstdir}/.travis.yml
%exclude %{geminstdir}/rubygem-apipie-rails.spec
%exclude %{geminstdir}/.yardoc
%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
%exclude %{gemdir}/doc/%{gemname}-%{version}
%doc %{geminstdir}/MIT-LICENSE
%doc %{geminstdir}/README.rdoc
%doc %{geminstdir}/APACHE-LICENSE-2.0
%doc %{geminstdir}/NOTICE
%changelog
* Thu Jul 26 2012 Pavel Pokorný <[email protected]> 0.0.8-3
- Require rubygems in spec file
* Thu Jul 26 2012 Pavel Pokorný <[email protected]> 0.0.8-2
- New version of apipie-rails gem
- Generated client improvements
* Thu Jul 26 2012 Pavel Pokorný <[email protected]> 0.0.7-2
- removed doc files from rpm
* Wed Jul 25 2012 Pavel Pokorný <[email protected]> 0.0.7-1
- new package built with tito