Skip to content

Instantly share code, notes, and snippets.

@migonzalvar
Created October 30, 2013 19:12
Show Gist options
  • Save migonzalvar/7238367 to your computer and use it in GitHub Desktop.
Save migonzalvar/7238367 to your computer and use it in GitHub Desktop.
%define git_version %(git describe --tags 2> /dev/null || echo 0.0-`git log --oneline | wc -l`-g`git describe --always`)
%define git_get_ver %(echo %{git_version} | sed 's/^v\\?\\(.*\\)-\\([0-9]\\+\\)-g.*$/\\1/;s/-//')
%define git_get_rel %(echo %{git_version} | sed 's/^v\\?\\(.*\\)-\\([0-9]\\+-g.*\\)$/\\2/;s/-/_/')
Name: xsce-virtual
Summary: XSCE virtual package to isolate xs-config and xs-tools dependencies
Version: %git_get_ver
Release: %git_get_rel
License: GPLv3
Group: Applications/System
Source: %{expand:%%(pwd)}
BuildArch: noarch
Provides: xs-config xs-tools
URL: http://github.com/XSCE/xsce.git
Provides: xsce-virtual
%description
Virtual package that provides xs-config xs-tools packages for testing XSCE ansible implmentation.
%files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment