Browse code

add MANIFEST.in, ansible.spec, modify setup.py for rpm pkg creation

Seth Vidal authored on 2012/03/06 02:15:24
Showing 3 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,3 @@
0
+include README.md AUTHORS.md ansible.spec
1
+recursive-include docs *
2
+include Makefile
0 3
new file mode 100644
... ...
@@ -0,0 +1,48 @@
0
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
1
+
2
+Summary: Minimal SSH command and control
3
+Name: ansible
4
+Version: 1.0
5
+Release: 1
6
+Source0: ansible-%{version}.tar.gz
7
+License: MIT
8
+Group: Development/Libraries
9
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
10
+Prefix: %{_prefix}
11
+BuildArch: noarch
12
+Url: http://github.com/mpdehaan/ansible/
13
+BuildRequires: asciidoc
14
+
15
+%description
16
+Ansible is a extra-simple tool/API for doing 'parallel remote things' over SSH
17
+executing commands, running "modules", or executing larger 'playbooks' that
18
+can serve as a configuration management or deployment system.
19
+
20
+%prep
21
+%setup -n %{name}-%{version}
22
+
23
+%build
24
+python setup.py build
25
+make docs
26
+
27
+%install
28
+python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
29
+mkdir -p $RPM_BUILD_ROOT/etc/ansible/
30
+
31
+%clean
32
+rm -rf $RPM_BUILD_ROOT
33
+
34
+%files
35
+%doc README.md AUTHORS.md PKG-INFO
36
+%defattr(-,root,root)
37
+%{_mandir}/man1/*.gz
38
+%{_mandir}/man5/*.gz
39
+%{python_sitelib}/*
40
+%{_bindir}/ansible*
41
+%{_datadir}/ansible/*
42
+%{_sysconfdir}/ansible/
43
+
44
+%changelog
45
+* Mon Mar  5 2012 Seth Vidal <skvidal at fedoraproject.org>
46
+- spec file
47
+
... ...
@@ -8,7 +8,7 @@ setup(name='ansible',
8 8
       author='Michael DeHaan',
9 9
       author_email='michael.dehaan@gmail.com',
10 10
       url='http://github.com/mpdehaan/ansible/',
11
-      license='MIT',
11
+      license='GPLv3',
12 12
       package_dir = { 'ansible' : 'lib/ansible' },
13 13
       packages=[
14 14
          'ansible',
... ...
@@ -25,10 +25,10 @@ setup(name='ansible',
25 25
              'library/template',
26 26
              'library/git',
27 27
          ]),
28
-         ('man/man1', [
28
+         ('/usr/share/man/man1', [
29 29
                 'docs/man/man1/ansible.1'
30 30
          ]),
31
-         ('man/man5', [
31
+         ('/usr/share/man/man5', [
32 32
                 'docs/man/man5/ansible-modules.5',
33 33
                 'docs/man/man5/ansible-playbook.5'
34 34
          ])