Skip to content

Instantly share code, notes, and snippets.

@tchollingsworth
Created July 16, 2013 08:59
Show Gist options
  • Save tchollingsworth/6007074 to your computer and use it in GitHub Desktop.
Save tchollingsworth/6007074 to your computer and use it in GitHub Desktop.
%_assetdir %{_datadir}/assets
%_jsdir %{_datadir}/javascript
%js_includes() %{expand: \
%(
ver=$(rpm -q --qf='%%{version}' -- %1)
if [[ $? -eq 0 ]]; then
echo "Provides: js-includes(%1) = $ver"
else
echo "Provides: js-includes(%1)"
fi
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment