diff --git a/rubygem-json.spec b/rubygem-json.spec index 376169c..da4d5d2 100644 --- a/rubygem-json.spec +++ b/rubygem-json.spec @@ -1,3 +1,14 @@ +# NOTE: This package has been failing the EPEL dependency checks for months on +# EL6. There was a bug filed long ago (probably about a year) asking GTK to +# not be a dependency. This was split into a seperate package, however since +# ruby-gtk2 was not available in EPEL6, failures still happened. After waiting +# and wanting JSON in EPEL for quite a while, I decided to take action. In +# this spec I have commented out the -gui package. This removes the +# requirements for ruby-gtk2 and then we get json. +# As of today, there is still no ruby-gtk2 available in EL6 or EPEL. +# stahnma 2011-Dec-27 + + %{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")} %{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")} @@ -8,8 +19,8 @@ Name: rubygem-%{gemname} -Version: 1.4.3 -Release: 3%{?dist} +Version: 1.4.6 +Release: 1%{?dist} Summary: A JSON implementation in Ruby Group: Development/Languages @@ -52,25 +63,25 @@ Provides: ruby(%{gemname}) = %{version}-%{release} %description -n ruby-%{gemname} This package provides non-Gem support for %{gemname}. -%package -n rubygem-%{gemname}-gui -Summary: Gtk2 based Editor for ruby JSON. -Group: User Interface/Desktops +#%package -n rubygem-%{gemname}-gui +#Summary: Gtk2 based Editor for ruby JSON. +#Group: User Interface/Desktops -Requires: %{name} = %{version}-%{release} -Requires: ruby(gtk2) +#Requires: %{name} = %{version}-%{release} +#Requires: ruby(gtk2) -%description -n rubygem-%{gemname}-gui -This package provides UI editor for rubygem-%{gemname}. +#%description -n rubygem-%{gemname}-gui +#This package provides UI editor for rubygem-%{gemname}. -%package -n ruby-%{gemname}-gui -Summary: Gtk2 based editor for Ruby JSON -Group: User Interface/Desktop +#%package -n ruby-%{gemname}-gui +#Summary: Gtk2 based editor for Ruby JSON +#Group: User Interface/Desktop -Requires: ruby-%{gemname} = %{version}-%{release} -Requires: ruby(gtk2) +#Requires: ruby-%{gemname} = %{version}-%{release} +#Requires: ruby(gtk2) -%description -n ruby-%{gemname}-gui -This package provides UI editor for ruby-%{gemname}. +#%description -n ruby-%{gemname}-gui +#This package provides UI editor for ruby-%{gemname}. %prep %setup -q -c -T @@ -159,6 +170,11 @@ popd create_symlink_rec %{geminstdir}/lib %{ruby_sitelib} +# Removing GTK as a requirement +rm -f %{buildroot}%{_bindir}/edit_json.rb +rm -f %{buildroot}%{geminstdir}/lib/%{gemname}/editor.rb +rm -f %{buildroot}%{ruby_sitelib}/%{gemname}/editor.rb + %clean rm -rf $RPM_BUILD_ROOT @@ -211,17 +227,21 @@ rm -rf $RPM_BUILD_ROOT %{ruby_sitelib}/%{gemname}/version.rb %{ruby_sitelib}/%{gemname}.rb -%files -n rubygem-%{gemname}-gui -%defattr(-,root,root,-) -%{_bindir}/edit_json.rb -%{geminstdir}/lib/%{gemname}/editor.rb - -%files -n ruby-%{gemname}-gui -%defattr(-,root,root,-) -%{ruby_sitelib}/%{gemname}/editor.rb +#%files -n rubygem-%{gemname}-gui +#%defattr(-,root,root,-) +#%{_bindir}/edit_json.rb +#%{geminstdir}/lib/%{gemname}/editor.rb +# +#%files -n ruby-%{gemname}-gui +#%defattr(-,root,root,-) +#%{ruby_sitelib}/%{gemname}/editor.rb %changelog +* Wed Dec 28 2011 - 1.4.6-1 +- Update to 1.4.6. (where rawhide is) +- rebuilt to remove dependency (and subpackage) for gui + * Fri Jun 11 2010 Xavier Lamien - 1.4.3-3 - Move ruby's site_lib editor to ruby-json-gui. diff --git a/sources b/sources index 7c4fe42..069b739 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0bcd3fbcb41c84077b8bfac952c7e6ca json-1.4.3.gem +10a923c1c031c55d2bac861664431301 json-1.4.6.gem