]> Frank Brehm's Git Trees - pixelpark/puppet-tools.git/commitdiff
Completing files necessary for package building
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 16 Feb 2023 10:24:17 +0000 (11:24 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 16 Feb 2023 10:24:17 +0000 (11:24 +0100)
MANIFEST.in [new file with mode: 0644]
etc/puppet-tools.yaml.default [new file with mode: 0644]
lib/dpx_puppettools/locale [new symlink]
setup.cfg
setup.py
template.spec [new file with mode: 0644]

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644 (file)
index 0000000..5702195
--- /dev/null
@@ -0,0 +1,5 @@
+include CHANGELOG
+include LICENSE
+include README.md
+recursive-include locale *
+recursive-include test *
diff --git a/etc/puppet-tools.yaml.default b/etc/puppet-tools.yaml.default
new file mode 100644 (file)
index 0000000..76c7a15
--- /dev/null
@@ -0,0 +1,24 @@
+---
+
+# common:
+#   verbose: 0
+#   console-timeout: ~
+#   logfile: ~
+#   var-dir: /var/lib/dpx-puppet-tools
+
+# puppet:
+#   deploy-root-dir: /etc/puppetlabs/code
+#   logdir: /var/log/dpx-puppet-tools
+#   deploy-root: /etc/puppetlabs/code
+
+# mail:
+#   from: ~
+#   recipient:
+#     - 'solution@pixelpark.com'
+#   cc: ~
+#   reply-to: 'solution@pixelpark.com'
+#   method: sendmail
+#   server: 'prd-mail.pixelpark.com'
+#   smtp-port: 25
+
+# vim: filetype=yaml
diff --git a/lib/dpx_puppettools/locale b/lib/dpx_puppettools/locale
new file mode 120000 (symlink)
index 0000000..853389b
--- /dev/null
@@ -0,0 +1 @@
+../../locale
\ No newline at end of file
index 577c4fd7f7e15c77912546d8d442597cc96d5b99..7e392e74f504bab317bcd7b876e97d6f250326d1 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -19,6 +19,7 @@ classifiers =
     Programming Language :: Python :: 3.8
     Programming Language :: Python :: 3.9
     Programming Language :: Python :: 3.10
+    Programming Language :: Python :: 3.11
     Topic :: Software Development :: Libraries :: Python Modules
 
 [options]
index cd0b005b603b2f389478046a5f7af22a18b559c8..025b8eb805f5eab2a8ff544070cfe094894940ce 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -140,7 +140,7 @@ for script in Path('bin').glob('*'):
 __data_files__ = []
 __admin_scripts__ = []
 
-# __data_files__.append(('/etc/pixelpark', ['etc/dns-deploy-zones.ini.default']))
+__data_files__.append(('/etc/pixelpark', ['etc//puppet-tools.yaml.default']))
 
 for f in __script_dir__.glob('*'):
     if f.is_file():
diff --git a/template.spec b/template.spec
new file mode 100644 (file)
index 0000000..1c94f75
--- /dev/null
@@ -0,0 +1,73 @@
+# vim: filetype=spec
+
+%define version @@@Version@@@
+%define builddir python@@@py_version_nodot@@@_dpx-puppettools-%{version}
+
+Name:           dpx-puppettools
+Version:        %{version}
+Release:        @@@Release@@@%{?dist}
+Summary:        CGI- and CLI-Scripts and modules for admin tasks on DPX Puppet servers
+
+Group:          Development/Languages/Python
+License:        AGPLv3
+Distribution:   Frank Brehm
+URL:            https://git.pixelpark.com/ppadmin/puppet-tools
+Source0:        dpx-puppettools.%{version}.tar.gz
+
+BuildRequires:  gettext
+BuildRequires:  python@@@py_version_nodot@@@
+BuildRequires:  python@@@py_version_nodot@@@-libs
+BuildRequires:  python@@@py_version_nodot@@@-devel
+BuildRequires:  python@@@py_version_nodot@@@-setuptools
+BuildRequires:  python@@@py_version_nodot@@@-babel
+BuildRequires:  python@@@py_version_nodot@@@-pytz
+BuildRequires:  python@@@py_version_nodot@@@-six
+BuildRequires:  python@@@py_version_nodot@@@-fb-logging
+BuildRequires:  python@@@py_version_nodot@@@-fb-tools >= 2.1.0
+Requires:       python@@@py_version_nodot@@@
+Requires:       python@@@py_version_nodot@@@-libs
+Requires:       python@@@py_version_nodot@@@-babel
+Requires:       python@@@py_version_nodot@@@-psutil
+Requires:       python@@@py_version_nodot@@@-pytz
+Requires:       python@@@py_version_nodot@@@-requests
+Requires:       python@@@py_version_nodot@@@-six
+Requires:       python@@@py_version_nodot@@@-fb-logging
+Requires:       python@@@py_version_nodot@@@-fb-tools >= 2.1.0
+BuildArch:      noarch
+
+%description
+This is a collection of CLI and CGI scripts and their appropriate libraries,
+which should help on administrating and maintaining Puppet servers (Compilers, CAs and PuppetDB).
+
+This package is intended to use with Python@@@py_version_nodot@@@.
+
+In this package are contained the following scripts:
+ * get-forge-module
+ * update-puppet-env
+
+%prep
+%setup -n %{builddir}
+
+%build
+cd ../%{builddir}
+python@@@py_version_dot@@@ setup.py build
+
+%install
+cd ../%{builddir}
+echo "Buildroot: %{buildroot}"
+python@@@py_version_dot@@@ setup.py install --prefix=%{_prefix} --root=%{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%license LICENSE
+%doc LICENSE README.md requirements.txt debian/changelog
+%dir /etc/pixelpark
+%config /etc/pixelpark/dns-deploy-zones.ini.default
+%{_bindir}/*
+%{python3_sitelib}/*
+%dir /var/log/dpx-puppet-tools
+%dir /var/lib/dpx-puppet-tools
+%dir /usr/libexec/dpx-puppet-tools
+/usr/libexec/dpx-puppet-tools/*
+
+%changelog