--- /home/makerpm/rpmbuild/SPECS/rubygem-taskjuggler.spec 2012-09-06 06:35:35.000000000 +1000
+++ rubygem-taskjuggler.spec 2012-10-16 01:21:18.043596990 +1000
@@ -1,19 +1,17 @@
# Generated from taskjuggler-3.3.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name taskjuggler
%global version 3.3.0
-%global release 1
+%global release 2
%global rubyabi 1.9.1
Summary: A Project Management Software
Name: rubygem-%{gem_name}
Version: %{version}
-Release: %{release}
-Group: Development/Ruby
+Release: %{release}%{?dist}
License: GPLv2
URL: http://www.taskjuggler.org
-Source0: %{gem_name}-%{version}.gem
-
+Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
Requires: ruby(abi) = %{rubyabi}
Requires: rubygems
Requires: rubygem-mail >= 2.4.3
@@ -21,10 +19,11 @@
Requires: rubygem-rspec >= 2.5.0
BuildRequires: rubygems-devel
BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: rubygem-minitest
BuildArch: noarch
Provides: ruby(taskjuggler) = %{version}
-%define gembuilddir %{buildroot}%{gem_dir}
+%global gembuilddir %{buildroot}%{gem_dir}
%description
TaskJuggler is a modern and powerful, Free and Open Source Software project
@@ -43,18 +42,16 @@
%build
%install
-%{__rm} -rf %{buildroot}
mkdir -p %{gembuilddir}
gem install --local --install-dir %{gembuilddir} --force --no-rdoc %{SOURCE0}
mkdir -p %{buildroot}/%{_bindir}
mv %{gembuilddir}/bin/* %{buildroot}/%{_bindir}
rmdir %{gembuilddir}/bin
-%clean
-%{__rm} -rf %{buildroot}
+%check
+testrb -Ilib %{buildroot}/%{gem_instdir}/test
%files
-%defattr(-, root, root)
# bin files
%{_bindir}/tj3
%{_bindir}/tj3client
@@ -83,6 +80,11 @@
%changelog
+* Tue Oct 16 2012 Tomas Dabasinskas <tomas@redhat.com> - 3.3.0-2
+- Fixing issues raised during package review
+ * Source
+ * deprecated parts in the spec file
+
* Thu Sep 06 2012 Tomas Dabasinskas <tomas@redhat.com> - 3.3.0-1
- Initial packaging effort