1 Summary: Cross platform implementation of Zeroconf
2 Summary(pl.UTF-8): Międzyplatformowa implementacja Zeroconf
6 License: APSL / Other (see COPYING)
8 Source0: http://www.porchdogsoft.com/download/%{name}-%{version}.tar.gz
9 # Source0-md5: c389d3ffba0e69a179de2ec650f1fdcc
10 Source1: mDNSResponder-%{name}.init
12 Source3: mDNSResponder.conf
13 Patch0: %{name}-libdir.patch
14 Patch1: %{name}-pkgconfig.patch
15 Patch2: %{name}-am.patch
16 Patch3: %{name}-alpha.patch
17 Patch4: %{name}-link.patch
18 URL: http://www.porchdogsoft.com/products/howl/
19 BuildRequires: autoconf >= 2.50
20 BuildRequires: automake
21 BuildRequires: libtool
22 BuildRequires: rpmbuild(macros) >= 1.268
23 Requires(post,preun): /sbin/chkconfig
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Howl is a cross-platform implementation of Zeroconf networking.
29 Zeroconf brings a new ease of use to IP networking.
31 %description -l pl.UTF-8
32 Howl jest międzyplatformową implementacją Zeroconf. Zeroconf przynosi
33 nową łatwość przy pracy w sieci IP.
36 Summary: Howl libraries
37 Summary(pl.UTF-8): Biblioteki howl
39 Provides: mdns-howl-libs
44 %description libs -l pl.UTF-8
48 Summary: Header files for howl library
49 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki howl
50 Group: Development/Libraries
51 Requires: %{name}-libs = %{version}-%{release}
52 Provides: mdns-howl-devel
55 Header files for howl library.
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki howl.
61 Summary: Static howl library
62 Summary(pl.UTF-8): Statyczna biblioteka howl
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
65 Provides: mdns-howl-static
70 %description static -l pl.UTF-8
71 Statyczna biblioteka howl.
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},/etc/rc.d/init.d}
95 DESTDIR=$RPM_BUILD_ROOT
97 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mDNSResponder
98 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nifd
99 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/mDNSResponder.conf
101 # fix up header file directory naming bug
102 mv $RPM_BUILD_ROOT%{_includedir}/%{name} $RPM_BUILD_ROOT%{_includedir}/%{name}-%{version}
105 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mDNSBrowse
106 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mDNSPublish
107 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mDNSQuery
108 %{__rm} $RPM_BUILD_ROOT%{_bindir}/mDNSResolve
111 rm -rf $RPM_BUILD_ROOT
114 /sbin/chkconfig --add mDNSResponder
115 %service mDNSResponder restart
117 /sbin/chkconfig --add nifd
118 %service nifd restart
121 if [ "$1" = "0" ]; then
122 %service mDNSResponder stop
123 /sbin/chkconfig --del mDNSResponder
126 /sbin/chkconfig --del nifd
129 %post libs -p /sbin/ldconfig
130 %postun libs -p /sbin/ldconfig
133 %defattr(644,root,root,755)
134 %doc AUTHORS ChangeLog COPYING NEWS README TODO
135 %attr(755,root,root) %{_bindir}/autoipd
136 %attr(755,root,root) %{_bindir}/mDNSResponder
137 %attr(755,root,root) %{_bindir}/nifd
138 %attr(754,root,root) /etc/rc.d/init.d/mDNSResponder
139 %attr(754,root,root) /etc/rc.d/init.d/nifd
140 %dir %{_sysconfdir}/%{name}
141 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mDNSResponder.conf
143 %{_mandir}/man8/autoipd.8*
144 %{_mandir}/man8/mDNSResponder.8*
145 %{_mandir}/man8/nifd.8*
148 %defattr(644,root,root,755)
149 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
150 %ghost %{_libdir}/libhowl.so.0
151 %attr(755,root,root) %{_libdir}/libmDNSResponder.so.*.*.*
152 %ghost %{_libdir}/libmDNSResponder.so.0
155 %defattr(644,root,root,755)
157 %{_libdir}/libhowl.so
158 %{_libdir}/libmDNSResponder.so
159 %{_libdir}/libhowl.la
160 %{_libdir}/libmDNSResponder.la
161 %{_includedir}/%{name}-%{version}
162 %{_pkgconfigdir}/howl.pc
165 %defattr(644,root,root,755)
167 %{_libdir}/libmDNSResponder.a