Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
d79e5978
Commit
d79e5978
authored
Apr 18, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #166 from tbielawa/integration
Integration
parents
f4080602
66f294d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
Makefile
+8
-6
packaging/rpm/ansible.spec
+0
-0
No files found.
Makefile
View file @
d79e5978
...
...
@@ -10,8 +10,10 @@ MANPAGES := docs/man/man1/ansible.1 docs/man/man1/ansible-playbook.1
SITELIB
=
$(
shell
python
-c
"from distutils.sysconfig import get_python_lib; print get_python_lib(
)
"
)
VERSION
:=
$(
shell
cat
VERSION
)
# These are for building the RPM.
RPMVERSION
:=
$(
shell
awk
'/Version/{print $$2; exit}'
< ansible.spec | cut
-d
"%"
-f1
)
RPMRELEASE
:=
$(
shell
awk
'/Release/{print $$2; exit}'
< ansible.spec | cut
-d
"%"
-f1
)
RPMSPECDIR
=
packaging/rpm
RPMSPEC
=
$(RPMSPECDIR)
/ansible.spec
RPMVERSION
:=
$(
shell
awk
'/Version/{print $$2; exit}'
<
$(RPMSPEC)
| cut
-d
"%"
-f1
)
RPMRELEASE
:=
$(
shell
awk
'/Release/{print $$2; exit}'
<
$(RPMSPEC)
| cut
-d
"%"
-f1
)
RPMDIST
=
$(
shell
rpm
--eval
'%dist'
)
RPMNVR
=
"
$(NAME)
-
$(RPMVERSION)
-
$(RPMRELEASE)$(RPMDIST)
"
...
...
@@ -82,9 +84,9 @@ srpm: rpmcommon
--define
"_builddir %{_topdir}"
\
--define
"_rpmdir %{_topdir}"
\
--define
"_srcrpmdir %{_topdir}"
\
--define
"_specdir
%{_topdir}
"
\
--define
"_specdir
$(RPMSPECDIR)
"
\
--define
"_sourcedir %{_topdir}"
\
-bs
ansible.spec
-bs
$(RPMSPEC)
@
echo
"#############################################"
@
echo
"Ansible SRPM is built:"
@
echo
" rpm-build/
$(RPMNVR)
.src.rpm"
...
...
@@ -95,9 +97,9 @@ rpm: rpmcommon
--define
"_builddir %{_topdir}"
\
--define
"_rpmdir %{_topdir}"
\
--define
"_srcrpmdir %{_topdir}"
\
--define
"_specdir
%{_topdir}
"
\
--define
"_specdir
$(RPMSPECDIR)
"
\
--define
"_sourcedir %{_topdir}"
\
-ba
ansible.spec
-ba
$(RPMSPEC)
@
echo
"#############################################"
@
echo
"Ansible RPM is built:"
@
echo
" rpm-build/noarch/
$(RPMNVR)
.noarch.rpm"
...
...
ansible.spec
→
packaging/rpm/
ansible.spec
View file @
d79e5978
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment