forked from ansible/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add MANIFEST.in, ansible.spec, modify setup.py for rpm pkg creation
- Loading branch information
Showing
3 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include README.md AUTHORS.md ansible.spec | ||
recursive-include docs * | ||
include Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} | ||
|
||
Summary: Minimal SSH command and control | ||
Name: ansible | ||
Version: 1.0 | ||
Release: 1 | ||
Source0: ansible-%{version}.tar.gz | ||
License: MIT | ||
Group: Development/Libraries | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot | ||
Prefix: %{_prefix} | ||
BuildArch: noarch | ||
Url: http://github.com/mpdehaan/ansible/ | ||
BuildRequires: asciidoc | ||
|
||
%description | ||
Ansible is a extra-simple tool/API for doing 'parallel remote things' over SSH | ||
executing commands, running "modules", or executing larger 'playbooks' that | ||
can serve as a configuration management or deployment system. | ||
|
||
%prep | ||
%setup -n %{name}-%{version} | ||
|
||
%build | ||
python setup.py build | ||
make docs | ||
|
||
%install | ||
python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES | ||
mkdir -p $RPM_BUILD_ROOT/etc/ansible/ | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%files | ||
%doc README.md AUTHORS.md PKG-INFO | ||
%defattr(-,root,root) | ||
%{_mandir}/man1/*.gz | ||
%{_mandir}/man5/*.gz | ||
%{python_sitelib}/* | ||
%{_bindir}/ansible* | ||
%{_datadir}/ansible/* | ||
%{_sysconfdir}/ansible/ | ||
|
||
%changelog | ||
* Mon Mar 5 2012 Seth Vidal <skvidal at fedoraproject.org> | ||
- spec file | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
author='Michael DeHaan', | ||
author_email='[email protected]', | ||
url='http://github.com/mpdehaan/ansible/', | ||
license='MIT', | ||
license='GPLv3', | ||
package_dir = { 'ansible' : 'lib/ansible' }, | ||
packages=[ | ||
'ansible', | ||
|
@@ -25,10 +25,10 @@ | |
'library/template', | ||
'library/git', | ||
]), | ||
('man/man1', [ | ||
('/usr/share/man/man1', [ | ||
'docs/man/man1/ansible.1' | ||
]), | ||
('man/man5', [ | ||
('/usr/share/man/man5', [ | ||
'docs/man/man5/ansible-modules.5', | ||
'docs/man/man5/ansible-playbook.5' | ||
]) | ||
|