summaryrefslogtreecommitdiffstats
path: root/mod_dnssd.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-06-13 18:43:31 +0200
committerRemi Collet <fedora@famillecollet.com>2012-06-13 18:43:31 +0200
commit1c3646a2a654880da48246a4b6c37b87b50cf4af (patch)
tree2e2d2cf188d2ea8d505aa7c5bfdf4fe7b7c508d2 /mod_dnssd.spec
reorg repoHEADmaster
Diffstat (limited to 'mod_dnssd.spec')
-rw-r--r--mod_dnssd.spec99
1 files changed, 99 insertions, 0 deletions
diff --git a/mod_dnssd.spec b/mod_dnssd.spec
new file mode 100644
index 0000000..351883a
--- /dev/null
+++ b/mod_dnssd.spec
@@ -0,0 +1,99 @@
+%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}}
+%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}}
+%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}}
+# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
+%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
+
+Name: mod_dnssd
+Version: 0.6
+Release: 6%{?dist}
+Summary: An Apache HTTPD module which adds Zeroconf support
+
+Group: System Environment/Daemons
+License: ASL 2.0
+URL: http://0pointer.de/lennart/projects/mod_dnssd/
+Source0: http://0pointer.de/lennart/projects/mod_dnssd/%{name}-%{version}.tar.gz
+Source1: mod_dnssd.conf-httpd
+Patch0: mod_dnssd-0.6-httpd24.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: httpd-mmn = %{_httpd_mmn}
+BuildRequires: httpd-devel avahi-devel e2fsprogs-devel
+
+%description
+mod_dnssd is an Apache HTTPD module which adds Zeroconf support via DNS-SD
+using Avahi.
+
+%prep
+%setup -q
+%patch0 -p1 -b .httpd24
+
+%build
+export APXS=%{_httpd_apxs}
+%configure --disable-lynx
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -Dp src/.libs/mod_dnssd.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules/mod_dnssd.so
+%if "%{_httpd_confdir}" == "%{_httpd_modconfdir}"
+install -Dp -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_httpd_confdir}/mod_dnssd.conf
+%else
+sed -n /^LoadModule/p %{SOURCE1} > 10-mod_dnssd.conf
+sed /^LoadModule/d %{SOURCE1} > mod_dnssd.conf
+touch -r %{SOURCE1} 10-mod_dnssd.conf mod_dnssd.conf
+install -Dp -m 0644 mod_dnssd.conf $RPM_BUILD_ROOT%{_httpd_confdir}/mod_dnssd.conf
+install -Dp -m 0644 10-mod_dnssd.conf $RPM_BUILD_ROOT%{_httpd_modconfdir}/10-mod_dnssd.conf
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE doc/README doc/README.html
+%config(noreplace) %{_sysconfdir}/httpd/conf.*/*.conf
+%{_libdir}/httpd/modules/mod_dnssd.so
+
+%changelog
+* Tue Apr 17 2012 Remi Collet <RPMS@FamilleCollet.com> - 0.6-6
+- rebuild for remi repo and httpd 2.4
+
+* Tue Apr 17 2012 Joe Orton <jorton@redhat.com> - 0.6-6
+- update for httpd 2.4, fix deps etc (#803069)
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Wed Jan 28 2009 Lennart Poettering <lpoetter@redhat.com> - 0.6-1
+- New upstream
+
+* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.5-7
+- fix license tag
+
+* Sun Feb 10 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 0.5-6
+- Rebuild for GCC 4.3
+
+* Mon Sep 3 2007 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 0.5-5
+- Rebuild for new 32-bit APR ABI
+
+* Tue Aug 21 2007 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 0.5-4
+- Fix License tag
+- Rebuild for F8t2
+
+* Tue Jul 24 2007 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 0.5-3
+- Add upstream patch to fix UID issue
+
+* Mon Jun 25 2007 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 0.5-2
+- Add LoadModule to the config file
+
+* Mon Jun 18 2007 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 0.5-1
+- Initial RPM release