|
# Developer environment |
|
|
# This gets symlinked into /etc/rpm/macros |
|
|
|
|
1 |
## Build directory |
## Build directory |
2 |
%_topdir %(echo $HOME)/rpms |
%_topdir %(echo $HOME)/rpms |
3 |
|
|
15 |
|
|
16 |
%distversion %(rpm -qf --qf='%{VERSION}' /etc/redhat-release) |
%distversion %(rpm -qf --qf='%{VERSION}' /etc/redhat-release) |
17 |
%distname %(grep -i fedora /etc/redhat-release >/dev/null && echo "Fedora Core" || echo "Red Hat Linux") |
%distname %(grep -i fedora /etc/redhat-release >/dev/null && echo "Fedora Core" || echo "Red Hat Linux") |
18 |
%disttag el%{distversion} |
%distver el%{distversion} |
19 |
%dist .2.%disttag.sme |
%disttag .%{distver}.sme |
20 |
%smerelease() %{?1}%{?dist} |
%smerelease() %(echo "%{?1}%{?disttag}.%{?2}" | sed -e's|\\.$||') |
21 |
|
|
22 |
#--------------------------------------------------------------------- |
#--------------------------------------------------------------------- |
23 |
|
|