Skip to content

Instantly share code, notes, and snippets.

@fandingo
Last active December 19, 2015 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fandingo/5978700 to your computer and use it in GitHub Desktop.
Save fandingo/5978700 to your computer and use it in GitHub Desktop.
Fedora 19 changed how Ruby requirements are specified. This is a dummy package to ease the transition of Fedora 18 => Fedora 19 third-party packages.
########################################################################
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
########################################################################
# Dummy ruby-abi spec file for Fedora 19.
#
# In Fedora 19, the packaging team decided to change the long-standing RPM spec file requirement statement from
#
#
# Requires: ruby(abi)
#
# to
#
# Requires: ruby(release)
#
#
# All of the RPM spec files for packages provided by Fedora have been updated accordingly.
# However, at this writing many third-party repositories only have packages available for Fedora 18,
# which means they are using ruby(abi).
#
# In order to avoid rebuilding lots of Fedora 18 packages that are otherwise compatible with Fedora 19,
# I have created a RPM that just satisfies this ruby(abi) requirement.
#
# This solves errors like
#
# Error: Package: puppet-3.2.2-1.fc18.noarch (puppetlabs-products)
# Requires: ruby(abi) >= 1.8
#
#
# Error: Package: 1:foreman-installer-1.2.0-1.fc18.noarch (foreman)
# Requires: ruby(abi)
#
# ============================
#
# Build instructions:
#
# yum install rpmdevtools
#
# rpmdev-setuptree
#
# Download ruby-abi.spec to ~/rpmdev/SPECS/
#
# rpmbuild -ba ~/rpmdev/SPECS/ruby-abi.spec
#
# # Install the package
# rpm -iv ~/rpmdev/RPMS/noarch/ruby-abi-2.0.0-1.fc19.noarch.rpm
Name: ruby-abi
Version: 2.0.0
Release: 1%{?dist}
Summary: Dummy package to satisfy ruby(abi) RPM requirements in legacy packages.
License: Public Domain
BuildArch: noarch
Requires: ruby(release)
Provides: ruby(abi) = 2.0.0
%description
Fedora 19 switched from using ruby(abi) for RPM requirements to
ruby(release). Some third-party packages still use the old
requirement and refuse to install. This package only
satisfies that requirement in name only and does not install
any files.
%prep
%setup -q -T -c
%build
echo "This package exists solely to satisfy the requires: ruby(abi)."
%install
%clean
#The following line is packager voo-doo against hostile
#upstream packagers and careless folks building as root
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%changelog
* Thu Jul 11 2013 Justin Brown <justin.brown@fandingo.org>.
- Created spec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment