public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Slavek Kabrda <bkabrda@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/distgen] epel10: Initial import (#1489257)
Date: Mon, 14 Sep 2026 11:57:15 GMT [thread overview]
Message-ID: <178938703582.1.13612467206721043548.rpms-distgen-9f2df2bee9f7@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/distgen
Branch : epel10
Commit : 9f2df2bee9f7d63a35b2afc32d24e78476d7d2ca
Author : Slavek Kabrda <bkabrda@redhat.com>
Date : 2017-09-08T14:59:40+02:00
Stats : +191/-3 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/distgen/c/9f2df2bee9f7d63a35b2afc32d24e78476d7d2ca?branch=epel10
Log:
Initial import (#1489257)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8e69581
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/distgen-0.14.tar.gz
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..e3210bf
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,38 @@
+FROM {{ config.docker.from }}
+
+LABEL MAINTAINER ...
+
+ENV NAME=mycontainer VERSION=0 RELEASE=1 ARCH=x86_64
+
+LABEL summary="A container that tells you how awesome it is." \
+ com.redhat.component="$NAME" \
+ version="$VERSION" \
+ release="$RELEASE.$DISTTAG" \
+ architecture="$ARCH" \
+ usage="docker run -p 9000:9000 mycontainer" \
+ help="Runs mycontainer, which listens on port 9000 and tells you how awesome it is. No dependencies." \
+ description="{{ spec.description }}" \
+ vendor="{{ spec.vendor }}" \
+ org.fedoraproject.component="postfix" \
+ authoritative-source-url="{{ spec.authoritative_source_url }}" \
+ io.k8s.description="{{ spec.description }}" \
+ io.k8s.display-name="Awesome container with SW version {{ spec.software_version }}" \
+ io.openshift.expose-services="9000:http" \
+ io.openshift.tags="some,tags"
+
+EXPOSE 9000
+
+# We don't actually use the "software_version" here, but we could,
+# e.g. to install a module with that ncat version
+RUN {{ commands.pkginstaller.install(['nmap-ncat']) }} && \
+ {{ commands.pkginstaller.cleancache() }}
+
+RUN echo {{ spec.spam }}
+RUN echo {{ spec.version }}
+
+# add help file
+# NOTE: this file is rendered from help.md, it's not actually templated (help.md is)
+COPY root/help.1 /
+COPY script.sh /usr/bin/
+
+CMD ["/usr/bin/script.sh"]
diff --git a/README.md b/README.md
deleted file mode 100644
index 59f6aeb..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# distgen
-
-The distgen package
\ No newline at end of file
diff --git a/distgen.spec b/distgen.spec
new file mode 100644
index 0000000..2c095d0
--- /dev/null
+++ b/distgen.spec
@@ -0,0 +1,113 @@
+#%%global postrel dev1
+%global posttag %{?gitrev:.git%{gitrev}}
+%global snapshot %{version}%{posttag}
+
+%global pybin %{?fedora:%{__python3}}%{!?fedora:%{__python}}
+%global pylib %{?fedora:%{python3_sitelib}}%{!?fedora:%{python_sitelib}}
+%global pypkg %{?fedora:python3}%{!?fedora:python}
+
+Name: distgen
+Summary: Templating system/generator for distributions
+Version: 0.14%{?postrel:.%{postrel}%{posttag}}
+Release: 1%{?dist}
+Group: Applications/Communications
+License: GPLv2+
+URL: https://github.com/devexp-db/distgen
+BuildArch: noarch
+
+%global both_requires %{pypkg}-jinja2, %{pypkg}-six, %{?fedora:%{pypkg}-}PyYAML
+
+Requires: %both_requires
+BuildRequires: %{pypkg}-setuptools %{pypkg}-devel %{?fedora:%{pypkg}-}pytest %both_requires
+
+%if 0%{?postrel:1}
+Source0: %{name}-%{version}.tar.gz
+%else
+Source0: https://pypi.python.org/packages/85/67/c5eda06be88a44767ce75acda4f301f5cf210de335be2276f70e198a71d2/%{name}-%{version}.tar.gz
+# These files were unintentionally omitted from official release and will be present in the future release
+Source1: https://raw.githubusercontent.com/devexp-db/distgen/ad60eaf35655fc1e72c391cdae78ab0c7c3e3938/tests/unittests/fixtures/generator/simple/Dockerfile
+Source2: https://raw.githubusercontent.com/devexp-db/distgen/ad60eaf35655fc1e72c391cdae78ab0c7c3e3938/tests/unittests/fixtures/generator/simple/expected_output
+%endif
+
+%description
+Based on given template specification (configuration for template), template
+file and preexisting distribution metadata generate output file.
+
+
+%prep
+%setup -q
+cp %{SOURCE1} %{SOURCE2} tests/unittests/fixtures/generator/simple
+
+
+%build
+%{pybin} setup.py build
+
+
+%install
+%{pybin} setup.py install --root=%{buildroot}
+
+
+%check
+make PYTHON=%{pybin} check
+
+
+%files
+%license LICENSE
+%doc docs/
+%{_bindir}/dg
+%{pylib}/distgen
+%{pylib}/%{name}-*.egg-info
+%{_datadir}/%{name}
+
+
+%changelog
+* Wed Sep 06 2017 Slavek Kabrda <bkabrda@redhat.com> - 0.14-1
+- update to 0.14
+
+* Fri Aug 18 2017 Pavel Raiskup <praiskup@redhat.com> - 0.13.dev1-1
+- fix build on RHEL7
+
+* Fri Aug 18 2017 Slavek Kabrda <bkabrda@redhat.com> - 0.12.dev1-1
+- new release scheme
+
+* Tue Aug 15 2017 Pavel Raiskup <praiskup@redhat.com> - 0.11~dev-1
+- multiple --spec options
+
+* Mon Aug 14 2017 Pavel Raiskup <praiskup@redhat.com> - 0.10~dev-1
+- rebase
+
+* Thu May 19 2016 Pavel Raiskup <praiskup@redhat.com> - 0.9~dev-1
+- rebase
+
+* Sat Feb 06 2016 Pavel Raiskup <praiskup@redhat.com> - 0.8~dev-1
+- rebase
+
+* Wed Jan 27 2016 Pavel Raiskup <praiskup@redhat.com> - 0.7~dev-1
+- rebase
+
+* Fri Nov 20 2015 Pavel Raiskup <praiskup@redhat.com> - 0.6~dev-1
+- rebase
+
+* Mon Oct 26 2015 Pavel Raiskup <praiskup@redhat.com> - 0.5~dev-1
+- rebase
+
+* Thu Sep 10 2015 Pavel Raiskup <praiskup@redhat.com> - 0.4~dev-1.git33125
+- rebase
+
+* Tue Sep 01 2015 Pavel Raiskup <praiskup@redhat.com> - 0.3~dev-1.git76d41
+- rebase
+
+* Wed May 20 2015 Pavel Raiskup <praiskup@redhat.com> - 0.2~dev-1.git32635
+- new release, enable testsuite
+
+* Mon May 11 2015 Pavel Raiskup <praiskup@redhat.com> - 0.1~dev-4.gitf6fc9
+- fixes to allow build of PostgreSQL Docker image correctly
+
+* Mon May 11 2015 Pavel Raiskup <praiskup@redhat.com> - 0.1~dev-3.git97392
+- bump version (better example)
+
+* Sun May 10 2015 Pavel Raiskup <praiskup@redhat.com> - 0.1~dev-2.gitdefcd
+- Add 'dg' option parser
+
+* Sun May 10 2015 Pavel Raiskup <praiskup@redhat.com> - 0.1~dev-1.git64bbe
+- Initial packaging
diff --git a/expected_output b/expected_output
new file mode 100644
index 0000000..7f95fd9
--- /dev/null
+++ b/expected_output
@@ -0,0 +1,38 @@
+FROM fedora:26
+
+LABEL MAINTAINER ...
+
+ENV NAME=mycontainer VERSION=0 RELEASE=1 ARCH=x86_64
+
+LABEL summary="A container that tells you how awesome it is." \
+ com.redhat.component="$NAME" \
+ version="$VERSION" \
+ release="$RELEASE.$DISTTAG" \
+ architecture="$ARCH" \
+ usage="docker run -p 9000:9000 mycontainer" \
+ help="Runs mycontainer, which listens on port 9000 and tells you how awesome it is. No dependencies." \
+ description="This is a simple container that just tells you how awesome it is. That's it." \
+ vendor="Fedora Project" \
+ org.fedoraproject.component="postfix" \
+ authoritative-source-url="some.url.fedoraproject.org" \
+ io.k8s.description="This is a simple container that just tells you how awesome it is. That's it." \
+ io.k8s.display-name="Awesome container with SW version " \
+ io.openshift.expose-services="9000:http" \
+ io.openshift.tags="some,tags"
+
+EXPOSE 9000
+
+# We don't actually use the "software_version" here, but we could,
+# e.g. to install a module with that ncat version
+RUN dnf -y install nmap-ncat && \
+ dnf -y clean all --enablerepo='*'
+
+RUN echo ham
+RUN echo 2.4
+
+# add help file
+# NOTE: this file is rendered from help.md, it's not actually templated (help.md is)
+COPY root/help.1 /
+COPY script.sh /usr/bin/
+
+CMD ["/usr/bin/script.sh"]
diff --git a/sources b/sources
new file mode 100644
index 0000000..3cfa881
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (distgen-0.14.tar.gz) = c9ae644058a3cbbc52b9fcf6cb7798d5de1ba0afd805a21630e951cf275665d213dc920316eb5e46f1d6d52ba4c44e2ac2fcf1934af5d291bec85d3a374bd6a0
reply other threads:[~2026-09-14 11:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178938703582.1.13612467206721043548.rpms-distgen-9f2df2bee9f7@fedoraproject.org \
--to=bkabrda@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox