]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Adding pp-admintools.spec.template
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 9 Dec 2021 10:53:10 +0000 (11:53 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 9 Dec 2021 10:53:10 +0000 (11:53 +0100)
pp-admintools.spec.template [new file with mode: 0644]

diff --git a/pp-admintools.spec.template b/pp-admintools.spec.template
new file mode 100644 (file)
index 0000000..e2dee64
--- /dev/null
@@ -0,0 +1,69 @@
+# vim: filetype=spec
+
+%define version @@@Version@@@
+%define builddir python@@@py_version_nodot@@@_pp-admintools-%{version}
+
+Name:           python@@@py_version_nodot@@@-pp-admintools
+Version:        %{version}
+Release:        @@@Release@@@%{?dist}
+Summary:        Scripts and modules for admin tasks of DPX Betriebs-Department
+
+Group:          Development/Languages/Python
+License:        LGPL-3
+Distribution:   Frank Brehm
+URL:            https://git.pixelpark.com/ppadmin/admin-tools
+Source0:        pp-admintools.%{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
+BuildRequires:  python@@@py_version_nodot@@@-fb-pdnstools
+Requires:       python@@@py_version_nodot@@@
+Requires:       python@@@py_version_nodot@@@-libs
+Requires:       python@@@py_version_nodot@@@-babel
+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
+Requires:       python@@@py_version_nodot@@@-fb-pdnstools
+BuildArch:      noarch
+
+%description
+Scripts and modules for admin tasks of DPX Betriebs-Department
+
+This is the Python@@@py_version_nodot@@@ version.
+
+In this package are contained the following scripts:
+ * dns-deploy-zones
+
+%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
+%{_bindir}/dns-deploy-zones
+%{python3_sitelib}/*
+
+%changelog
+*   Thu Dec 09 2021 Frank Brehm <frank.brehm@pixelpark.com> 0.3.0-1
+-   Initial Build of a RPM package
+