summaryrefslogtreecommitdiffstats
path: root/rubygem-factory_girl.spec
blob: 1d70c8dbc08a1bcf8fe9128b58e486eb5aa56d92 (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
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
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname factory_girl
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}

Summary: Framework and DSL for defining and using model instance factories
Name: rubygem-%{gemname}
Version: 2.3.2
Release: 2%{?dist}
Group: Development/Languages
License: MIT
URL: http://thoughtbot.com/projects/factory_girl
Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem
Requires: rubygems
Requires: ruby(abi) = 1.8
BuildRequires: rubygems
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}

%description
Framework and DSL for defining and using factories - less error-prone,
more explicit, and all-around easier to work with than fixtures.

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

%description doc
Documentation for %{name}


%prep
%setup -q -c -T
mkdir -p ./%{gemdir}
gem install --local --install-dir ./%{gemdir} -V --force --rdoc %{SOURCE0}
pushd .%{geminstdir}
popd


%build


%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
rm ./%{geminstdir}/.autotest
rm ./%{geminstdir}/.gitignore
rm ./%{geminstdir}/.rspec
rm ./%{geminstdir}/.travis.yml
rm ./%{geminstdir}/Appraisals
rm ./%{geminstdir}/Gemfile
rm ./%{geminstdir}/Gemfile.lock
rm ./%{geminstdir}/.yardopts
rm -rf ./%{geminstdir}/gemfiles
cp -va ./%{gemdir}/* %{buildroot}%{gemdir}


%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root, -)
%dir %{geminstdir}
%{geminstdir}/lib
%doc %{geminstdir}/README.md
%doc %{geminstdir}/LICENSE
%doc %{geminstdir}/Changelog
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec

%files doc
%defattr(-, root, root, -)
%{gemdir}/doc/%{gemname}-%{version}
%{geminstdir}/features
%{geminstdir}/spec
%{geminstdir}/Rakefile
%{geminstdir}/cucumber.yml
%{geminstdir}/CONTRIBUTION_GUIDELINES.md
%{geminstdir}/GETTING_STARTED.md


%changelog
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Dec 13 2011 Michal Fojtik <mfojtik@redhat.com> - 2.3.2-1
- Version bump

* Tue Jul 05 2011 Chris Lalancette <clalance@redhat.com> - 1.3.2-5
- Fixes to build in rawhide

* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Thu Oct 14 2010 Michal Fojtik <mfojtik@redhat.com> - 1.3.2-3
- Replaced path with path macro

* Wed Oct 13 2010 Michal Fojtik <mfojtik@redhat.com> - 1.3.2-2
- Rakefile fixing moved to a separate patch
- Fixed unneeded Requires
- Fixed directory ownership on doc subpackage
- README and LICENSE moved back to main package

* Sat Oct 02 2010 Michal Fojtik <mfojtik@redhat.com> - 1.3.2-1
- Initial package