forked from Apipie/apipie-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rubygem-apipie-rails.spec
122 lines (101 loc) · 3.47 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
%global gem_name apipie-rails
%if 0%{?rhel} == 6 || 0%{?fedora} < 17
%define rubyabi 1.8
%else
%define rubyabi 1.9.1
%endif
%if 0%{?rhel} == 6
%global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}
%global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem
%global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}
%global gem_libdir %{gem_dir}/gems/%{gem_name}-%{version}/lib
%endif
Summary: Rails API documentation tool and client generator
Name: rubygem-%{gem_name}
Version: 0.0.11
Release: 3%{?dist}
Group: Development/Libraries
License: MIT
URL: http://github.com/Pajk/apipie-rails
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
Requires: ruby(abi) >= %{rubyabi}
Requires: rubygems
%if 0%{?fedora}
BuildRequires: rubygems-devel
%endif
BuildRequires: ruby(abi) >= %{rubyabi}
BuildRequires: rubygems
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description
This gem adds new methods to Rails controllers that can be used to describe
resources exposed by API. Information entered with provided DSL are used
to generate documentation, client or to validate incoming requests.
%package doc
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Summary: Documentation for rubygem-%{gem_name}
%description doc
This package contains documentation for rubygem-%{gem_name}.
%prep
%setup -q -c -T
mkdir -p .%{gem_dir}
gem install --local --install-dir .%{gem_dir} \
--force %{SOURCE0} --no-rdoc --no-ri
%build
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%files
%dir %{gem_instdir}
%{gem_instdir}/app
%{gem_instdir}/lib
%exclude %{gem_instdir}/Gemfile.lock
%exclude %{gem_cache}
%{gem_spec}
%doc %{gem_instdir}/MIT-LICENSE
%doc %{gem_instdir}/APACHE-LICENSE-2.0
%exclude %{gem_instdir}/spec
%exclude %{gem_instdir}/rel-eng
%exclude %{gem_instdir}/.gitignore
%exclude %{gem_instdir}/.rspec
%exclude %{gem_instdir}/.rvmrc
%exclude %{gem_instdir}/.travis.yml
%exclude %{gem_instdir}/rubygem-apipie-rails.spec
%exclude %{gem_dir}/cache/%{gem_name}-%{version}.gem
%files doc
%doc %{gem_instdir}/MIT-LICENSE
%doc %{gem_instdir}/README.rdoc
%doc %{gem_instdir}/NOTICE
%{gem_instdir}/Rakefile
%{gem_instdir}/Gemfile
%{gem_instdir}/%{gem_name}.gemspec
%changelog
* Fri Sep 07 2012 Miroslav Suchý <[email protected]> 0.0.11-3
- summary should not end with dot ([email protected])
- fix spelling ([email protected])
- do not package Gemfile.lock ([email protected])
* Fri Aug 17 2012 Ivan Necas <[email protected]> 0.0.11-2
- fix building for F17 reusing the macros from rubygem- devel
* Wed Aug 15 2012 Pavel Pokorný <[email protected]> 0.0.11-1
- apipie-rails v0.0.11
- cli client improvements
* Tue Jul 31 2012 Pavel Pokorný <[email protected]> 0.0.9-2
- exclude documentation from rpm
* Tue Jul 31 2012 Pavel Pokorný <[email protected]> 0.0.9-1
- New version of apipie-rails gem ([email protected])
- fixed client generator
- resource level error descriptions
- response supported formats
* 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