Summary: Multicast DNS repeater Name: mdns-repeater Version: 1.11 Release: 12%{?dist} License: GPL-2.0-or-later URL: https://github.com/kennylevinsen/mdns-repeater Source0: https://github.com/kennylevinsen/mdns-repeater/archive/%{version}/%{name}-%{version}.tar.gz Source1: %{name}.service Source2: %{name}.sysconfig Source3: %{name}.tmpfilesd Patch0: mdns-repeater-1.11-pidfile.patch BuildRequires: gcc BuildRequires: systemd-rpm-macros %{?systemd_requires} %description mdns-repeater is a Multicast DNS repeater for Linux. Multicast DNS uses the 224.0.0.51 address, which is "administratively scoped" and does not leave the subnet. This program re-broadcasts mDNS packets from one interface to other interfaces. %prep %autosetup -p1 %build gcc \ $RPM_OPT_FLAGS $RPM_LD_FLAGS \ -DHGVERSION="\"%{version}\"" \ -DPIDFILE="\"%{_rundir}/%{name}/%{name}.pid\"" \ %{name}.c -o %{name} %install install -D -p -m 0755 %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name} install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/%{name}.service install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name} install -D -p -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf mkdir -p $RPM_BUILD_ROOT%{_rundir}/%{name}/ %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %license LICENSE.txt %doc README.txt %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %{_unitdir}/%{name}.service %{_tmpfilesdir}/%{name}.conf %{_sbindir}/%{name} %dir %attr(0750,root,root) %{_rundir}/%{name}/ %changelog * Thu Jul 18 2024 Fedora Release Engineering - 1.11-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 1.11-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.11-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 1.11-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1.11-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 1.11-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 1.11-4 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. * Tue Jan 26 2021 Fedora Release Engineering - 1.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri May 01 2020 Robert Scheck 1.11-1 - Upgrade to 1.11 (#1830458) - Initial spec file for Fedora and Red Hat Enterprise Linux