Hello community,

here is the log from the commit of package coredns for openSUSE:Factory checked 
in at 2019-07-24 20:50:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/coredns (Old)
 and      /work/SRC/openSUSE:Factory/.coredns.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "coredns"

Wed Jul 24 20:50:59 2019 rev:4 rq:718309 version:1.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/coredns/coredns.changes  2019-07-23 
22:38:46.718954031 +0200
+++ /work/SRC/openSUSE:Factory/.coredns.new.4126/coredns.changes        
2019-07-24 20:51:00.342447520 +0200
@@ -1,0 +2,6 @@
+Wed Jul 24 13:26:10 UTC 2019 - Marco Vedovati <[email protected]>
+
+- Add coredns-extras package to allow use of coredns in a non-containerized
+  environment
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ coredns.spec ++++++
--- /var/tmp/diff_new_pack.15z1uI/_old  2019-07-24 20:51:02.978447117 +0200
+++ /var/tmp/diff_new_pack.15z1uI/_new  2019-07-24 20:51:03.010447113 +0200
@@ -39,9 +39,6 @@
 Source11:       coredns.service
 BuildRequires:  fdupes
 BuildRequires:  golang(API) >= 1.12
-%if !0%{?is_opensuse}
-BuildRequires:  pkgconfig(systemd)
-%endif
 
 %description
 CoreDNS is a DNS server in Go. It has a plugin architecture for
@@ -50,6 +47,18 @@
 CoreDNS can listen for DNS request coming in over UDP/TCP (RFC 1035),
 TLS (RFC 7858) and gRPC (not a standard).
 
+%package extras
+Summary:        Extra components for %name} package
+Group:          Productivity/Networking/DNS/Servers
+Requires:       %{name} = %{version}
+Supplements:    %{name}
+BuildArch:      noarch
+BuildRequires:  pkgconfig(systemd)
+
+%description extras
+Extra components for the %{name} package, to make %{name} usable in a
+non-containerized environment (man pages, configuration, unit file).
+
 %prep
 %setup -q -b1 -b2 -b3 -b4 -b5 -b6 -b7 -b8 -b9
 
@@ -98,16 +107,11 @@
 
 # Binaries
 install -D -m 0755 %{name} %{buildroot}%{_sbindir}/%{name}
-
-# On openSUSE, we don't need systemd support
-%if !0%{?is_opensuse}
 ln -s service %{buildroot}%{_sbindir}/rccoredns
-
 # Configuration
 install -D -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/%{name}/Corefile
 # systemd service
 install -D -m 0644 %{SOURCE11} %{buildroot}%{_unitdir}/%{name}.service
-
 # Manpages
 install -d %{buildroot}/%{_mandir}/man1
 install -m 0644 man/coredns*.1 %{buildroot}/%{_mandir}/man1
@@ -115,31 +119,29 @@
 install -m 0644 man/corefile*.5 %{buildroot}/%{_mandir}/man5
 install -d %{buildroot}/%{_mandir}/man7
 install -m 0644 man/coredns-*.7 %{buildroot}/%{_mandir}/man7
-# Configs
-# Completion
-%endif
 
 %fdupes %{buildroot}/%{_prefix}
 
-%if !0%{?is_opensuse}
-%pre
+%pre extras
 %service_add_pre %{name}.service
 
-%post
+%post extras
 %service_add_post %{name}.service
 %{fillup_only -n coredns}
 
-%preun
+%preun extras
 %service_del_preun %{name}.service
 
-%postun
+%postun extras
 %service_del_postun %{name}.service
-%endif
 
 %files
 # Binaries
 %{_sbindir}/coredns
-%if !0%{?is_opensuse}
+# License
+%license LICENSE
+
+%files extras
 %{_sbindir}/rccoredns
 # Manpages
 %{_mandir}/man1/coredns*
@@ -149,9 +151,5 @@
 %dir %{_sysconfdir}/%{name}
 %config(noreplace) %{_sysconfdir}/%{name}/Corefile
 %{_unitdir}/%{name}.service
-# Completion
-%endif
-# License
-%license LICENSE
 
 %changelog


Reply via email to