Projects
home:rottame:rubygems
rubygem-json-2.7
rubygem-json.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rubygem-json.spec of Package rubygem-json-2.7 (Revision 2)
Currently displaying revision
2
,
Show latest
%define mod_name json %define mod_full_name %{mod_name}-%{version} Name: rubygem-json Version: 2.7.6 Release: 0 Summary: This is a JSON implementation as a Ruby extension in C License: Apache-2.0 Group: Development/Languages/Ruby URL: http://flori.github.com/json Source: https://rubygems.org/gems/%{mod_full_name}.gem BuildRequires: %{ruby >= 1.9} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 BuildRequires: %{rubydevel >= 2.0.0} %description This is a JSON implementation as a Ruby extension in C %prep %build %install %gem_install \ --no-rdoc --no-ri \ --doc-files="README.md" \ -f # --- CLEAN UP BUILD ARTIFACTS AND DUPLICATES (fixes rpmlint errors) --- # 1) Remove logs that contain $RPM_BUILD_ROOT find %{buildroot} -type f -name mkmf.log -delete # 2) Remove hidden/zero-length timestamp markers find %{buildroot} -type f -name '.sitearchdir*ext.time' -delete find %{buildroot} -type f -size 0 -name '*.time' -delete find %{buildroot} -type f -size 0 -name 'gem.build_complete' -delete # 3) Keep only the C-extension .so under the RubyGems "extensions" dir. # Drop the copies under the gem's ext/ and lib/json/ext/ trees. find %{buildroot}%{_libdir}/ruby/gems -path '*/gems/json-*/ext/*' -type f -name '*.so' -delete find %{buildroot}%{_libdir}/ruby/gems -path '*/gems/json-*/lib/json/ext' -type f -name '*.so' -delete # 4) Hardlink any remaining dupes to save space %fdupes -s %{buildroot} %gem_packages %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.