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
4f0ed202
Commit
4f0ed202
authored
Apr 19, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #182 from tbielawa/moveManifest
Move manifest
parents
3a0c5c0b
516df5f6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
Makefile
+8
-3
packaging/distutils/MANIFEST.in
+1
-0
packaging/distutils/setup.py
+0
-0
packaging/rpm/ansible.spec
+4
-2
No files found.
Makefile
View file @
4f0ed202
...
@@ -16,6 +16,11 @@ RPMVERSION := $(shell awk '/Version/{print $$2; exit}' < $(RPMSPEC) | cut -d "%"
...
@@ -16,6 +16,11 @@ RPMVERSION := $(shell awk '/Version/{print $$2; exit}' < $(RPMSPEC) | cut -d "%"
RPMRELEASE
:=
$(
shell
awk
'/Release/{print $$2; exit}'
<
$(RPMSPEC)
| cut
-d
"%"
-f1
)
RPMRELEASE
:=
$(
shell
awk
'/Release/{print $$2; exit}'
<
$(RPMSPEC)
| cut
-d
"%"
-f1
)
RPMDIST
=
$(
shell
rpm
--eval
'%dist'
)
RPMDIST
=
$(
shell
rpm
--eval
'%dist'
)
RPMNVR
=
"
$(NAME)
-
$(RPMVERSION)
-
$(RPMRELEASE)$(RPMDIST)
"
RPMNVR
=
"
$(NAME)
-
$(RPMVERSION)
-
$(RPMRELEASE)$(RPMDIST)
"
# Python distutils options
DUDIR
=
packaging/distutils
DUSETUP
=
$(DUDIR)
/setup.py
DUMANIFEST
=
$(DUDIR)
/MANIFEST.in
all
:
clean python
all
:
clean python
...
@@ -65,15 +70,15 @@ clean:
...
@@ -65,15 +70,15 @@ clean:
rm
-rf
MANIFEST rpm-build
rm
-rf
MANIFEST rpm-build
python
:
python
:
python
setup.py
build
python
$(DUSETUP)
build
install
:
install
:
mkdir
-p
/usr/share/ansible
mkdir
-p
/usr/share/ansible
cp ./library/
*
/usr/share/ansible/
cp ./library/
*
/usr/share/ansible/
python
setup.py
install
python
$(DUSETUP)
install
sdist
:
clean
sdist
:
clean
python ./
setup.py sdist
python ./
$(DUSETUP)
sdist
-t
$(DUMANIFEST)
rpmcommon
:
sdist
rpmcommon
:
sdist
@
mkdir
-p
rpm-build
@
mkdir
-p
rpm-build
...
...
MANIFEST.in
→
packaging/distutils/
MANIFEST.in
View file @
4f0ed202
include README.md packaging/rpm/ansible.spec
include README.md packaging/rpm/ansible.spec
include examples/hosts
include examples/hosts
include packaging/distutils/setup.py
recursive-include docs *
recursive-include docs *
recursive-include library *
recursive-include library *
include Makefile
include Makefile
setup.py
→
packaging/distutils/
setup.py
View file @
4f0ed202
File moved
packaging/rpm/ansible.spec
View file @
4f0ed202
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%endif
%endif
%define _dusetup packaging/distutils/setup.py
Name: ansible
Name: ansible
Release: 1%{?dist}
Release: 1%{?dist}
...
@@ -33,10 +35,10 @@ are transferred to managed machines automatically.
...
@@ -33,10 +35,10 @@ are transferred to managed machines automatically.
%setup -q
%setup -q
%build
%build
%{__python}
setup.py
build
%{__python}
%{_dusetup}
build
%install
%install
%{__python}
setup.py
install -O1 --root=$RPM_BUILD_ROOT
%{__python}
%{_dusetup}
install -O1 --root=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/ansible/
mkdir -p $RPM_BUILD_ROOT/etc/ansible/
cp examples/hosts $RPM_BUILD_ROOT/etc/ansible/
cp examples/hosts $RPM_BUILD_ROOT/etc/ansible/
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
...
...
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