X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=avahi.spec;h=1fc530a354d25100de1f0f3cd4bd19ee7e241d85;hb=88911ad1ca57313e820c3d1be9b99a53759cca66;hp=670e647ae9231cb83d152bc20589cddb06a324e8;hpb=bfc0e0783df5b027360a1b1ffd68ee680ad5d7a4;p=packages%2Favahi.git diff --git a/avahi.spec b/avahi.spec index 670e647..1fc530a 100644 --- a/avahi.spec +++ b/avahi.spec @@ -13,23 +13,24 @@ %undefine with_qt3 %undefine with_qt4 %endif -%include /usr/lib/rpm/macros.mono +%{?with_dotnet:%include /usr/lib/rpm/macros.mono} # Summary: Free mDNS/DNS-SD implementation Summary(pl.UTF-8): Wolna implementacja mDNS/DNS-SD Name: avahi -Version: 0.6.17 -Release: 1 -License: GPL v.2/LGPL +Version: 0.6.22 +Release: 2 +License: LGPL v2.1+ Group: Applications Source0: http://avahi.org/download/%{name}-%{version}.tar.gz -# Source0-md5: 29ebb2181958d5721ee5fc45f035a77c +# Source0-md5: c84b1a8a23126e188426728710414dc8 Source1: %{name}-daemon Source2: %{name}-dnsconfd Source3: %{name}.png Patch0: %{name}-desktop.patch Patch1: %{name}-glade.patch Patch2: %{name}-destdir.patch +Patch3: %{name}-mono-dir.patch URL: http://avahi.org/ BuildRequires: autoconf BuildRequires: automake @@ -41,10 +42,11 @@ BuildRequires: glib2-devel >= 1:2.12.2 BuildRequires: graphviz BuildRequires: gtk+2-devel >= 2:2.10.2 BuildRequires: libcap-devel -BuildRequires: libdaemon-devel >= 0.5 +BuildRequires: libdaemon-devel >= 0.11 BuildRequires: libglade2-devel >= 1:2.6.0 BuildRequires: libtool %if %{with dotnet} +BuildRequires: dotnet-gtk-sharp2-devel >= 2.10 BuildRequires: mono-csharp BuildRequires: monodoc %endif @@ -53,7 +55,7 @@ BuildRequires: python >= 1:2.4 BuildRequires: python-dbus >= 0.71 BuildRequires: python-pygtk-devel >= 2:2.9.6 %if %{with qt3} -BuildRequires: qt-devel >= 3.0 +BuildRequires: qt-devel >= 1:3.0 %endif %if %{with qt4} BuildRequires: QtCore-devel @@ -61,8 +63,9 @@ BuildRequires: qt4-build %endif BuildRequires: rpmbuild(macros) >= 1.228 Requires(post,preun): /sbin/chkconfig -Requires: dbus >= 0.92 Requires: %{name}-libs = %{version}-%{release} +Requires: dbus >= 0.92 +Requires: libdaemon >= 0.11 Provides: group(avahi) Provides: user(avahi) BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -95,7 +98,6 @@ Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} Requires: dbus-devel >= 0.92 Requires: expat-devel -Requires: libdaemon-devel >= 0.5 %description devel This is the package containing the header files for Avahi library. @@ -115,6 +117,45 @@ Static Avahi library. %description static -l pl.UTF-8 Statyczna biblioteka Avahi. +%package ui +Summary: Avahi UI library +Summary(pl.UTF-8): Biblioteka Avahi UI +Group: X11/Libraries +Requires: %{name}-libs = %{version}-%{release} +Requires: gtk+2 >= 2:2.10.2 + +%description ui +Common GTK+ UI support library for Avahi. + +%description ui -l pl.UTF-8 +Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi. + +%package ui-devel +Summary: Header files for Avahi UI library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI +Group: X11/Development/Libraries +Requires: %{name}-devel = %{version}-%{release} +Requires: %{name}-ui = %{version}-%{release} +Requires: gtk+2-devel >= 2:2.10.2 + +%description ui-devel +Header files for Avahi UI library. + +%description ui-devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki Avahi UI. + +%package ui-static +Summary: Static Avahi UI library +Summary(pl.UTF-8): Statyczna biblioteka Avahi UI +Group: X11/Development/Libraries +Requires: %{name}-ui-devel = %{version}-%{release} + +%description ui-static +Static Avahi UI library. + +%description ui-static -l pl.UTF-8 +Statyczna biblioteka Avahi UI. + %package compat-libdns_sd Summary: Avahi Bonjour compat library Summary(pl.UTF-8): Biblioteka Avahi zgodna z Bonjour @@ -236,6 +277,44 @@ Static Avahi GLib library. %description glib-static -l pl.UTF-8 Statyczna biblioteka Avahi GLib. +%package gobject +Summary: Avahi GObject interface +Summary(pl.UTF-8): Interfejs GObject do Avahi +Group: Libraries + +%description gobject +Avahi GObject interface. + +%description gobject -l pl.UTF-8 +Interfejs GObject do Avahi. + +%package gobject-devel +Summary: Header files for Avahi GObject interface +Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do Avahi +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} +Requires: %{name}-gobject = %{version}-%{release} +Requires: glib2-devel >= 1:2.12.2 + +%description gobject-devel +This is the package containing the header files for Avahi GObject +interface. + +%description gobject-devel -l pl.UTF-8 +Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do Avahi. + +%package gobject-static +Summary: Static Avahi GObject library +Summary(pl.UTF-8): Statyczna biblioteka Avahi GObject +Group: Development/Libraries +Requires: %{name}-gobject-devel = %{version}-%{release} + +%description gobject-static +Static Avahi GObject library. + +%description gobject-static -l pl.UTF-8 +Statyczna biblioteka Avahi GObject. + %package qt Summary: Avahi Qt 3 library bindings Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3 @@ -255,7 +334,7 @@ Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3 Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} Requires: %{name}-qt = %{version}-%{release} -Requires: qt-devel >= 3.0 +Requires: qt-devel >= 1:3.0 Obsoletes: avahi-qt3-devel %description qt-devel @@ -314,10 +393,24 @@ Static Avahi Qt 4 library. %description Qt-static -l pl.UTF-8 Statyczna biblioteka Avahi Qt 4. +%package -n python-avahi +Summary: Avahi Python bindings +Summary(pl.UTF-8): Wiązania Avahi dla Pythona +Group: Development/Languages/Python +Requires: %{name}-libs = %{version}-%{release} +Requires: python-dbus >= 0.71 + +%description -n python-avahi +Avahi Python bindings. + +%description -n python-avahi -l pl.UTF-8 +Wiązania Avahi dla Pythona. + %package -n dotnet-avahi Summary: Avahi MONO bindings Summary(pl.UTF-8): Wiązania Avahi dla MONO Group: Libraries +Requires: %{name}-libs = %{version}-%{release} %description -n dotnet-avahi Avahi MONO bindings. @@ -338,6 +431,32 @@ Development files for MONO Avahi bindings. %description -n dotnet-avahi-devel -l pl.UTF-8 Pliki rozwojowe wiązań Avahi dla MONO. +%package -n dotnet-avahi-ui +Summary: Avahi UI MONO bindings +Summary(pl.UTF-8): Wiązania Avahi UI dla MONO +Group: X11/Libraries +Requires: %{name}-ui = %{version}-%{release} +Requires: dotnet-avahi = %{version}-%{release} + +%description -n dotnet-avahi-ui +Avahi UI MONO bindings. + +%description -n dotnet-avahi-ui -l pl.UTF-8 +Wiązania Avahi UI dla MONO. + +%package -n dotnet-avahi-ui-devel +Summary: Development files for MONO Avahi UI bindings +Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO +Group: X11/Development/Libraries +Requires: dotnet-avahi-ui = %{version}-%{release} +Requires: monodoc + +%description -n dotnet-avahi-ui-devel +Development files for MONO Avahi UI bindings. + +%description -n dotnet-avahi-ui-devel -l pl.UTF-8 +Pliki rozwojowe wiązań Avahi UI dla MONO. + %package bookmarks Summary: Miniature web server Summary(pl.UTF-8): Miniaturowy serwer web @@ -357,8 +476,7 @@ je jako odnośniki HTML na http://localhost:8080/. Summary: Avahi Zeroconf browser Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi Group: Applications -Requires: %{name} = %{version}-%{release} -Requires: python-dbus >= 0.71 +Requires: python-avahi = %{version}-%{release} Requires: python-pygtk-glade >= 2:2.9.6 %description discover @@ -373,9 +491,7 @@ Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN Summary: Avahi Zeroconf browser Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi Group: Applications -Requires: %{name} = %{version}-%{release} -Requires: python-dbus >= 0.71 -Requires: python-pygtk-glade >= 2:2.9.6 +Requires: %{name}-glib = %{version}-%{release} %description discover-standalone GTK+ tool for enumerating all available services on the local LAN. @@ -400,6 +516,7 @@ Narzędzia linii poleceń korzystające z avahi-client. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build %{__libtoolize} @@ -434,14 +551,18 @@ ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \ ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \ $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc -rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py +rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py \ + $RPM_BUILD_ROOT%{py_sitedir}/avahi_discover/*.py -rm -f $RPM_BUILD_ROOT%{_mandir}/man1/avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name}.1 +rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name},bvnc}.1 echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1 +echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1 + +%find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT @@ -473,6 +594,9 @@ fi %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig +%post ui -p /sbin/ldconfig +%postun ui -p /sbin/ldconfig + %post compat-libdns_sd -p /sbin/ldconfig %postun compat-libdns_sd -p /sbin/ldconfig @@ -482,6 +606,9 @@ fi %post glib -p /sbin/ldconfig %postun glib -p /sbin/ldconfig +%post gobject -p /sbin/ldconfig +%postun gobject -p /sbin/ldconfig + %post qt -p /sbin/ldconfig %postun qt -p /sbin/ldconfig @@ -506,26 +633,40 @@ fi %attr(755,root,root) %{_sbindir}/avahi-daemon %attr(755,root,root) %{_sbindir}/avahi-dnsconfd -%dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/introspection %{_datadir}/%{name}/introspection/*.introspect %{_datadir}/%{name}/avahi-service.dtd %{_datadir}/%{name}/service-types -%{_datadir}/%{name}/service-types.db +%dir %{_libdir}/%{name} +%{_libdir}/%{name}/service-types.db -%{_mandir}/man*/* +%{_mandir}/man1/avahi-set-host-name.1* +%{_mandir}/man5/avahi-daemon.conf.5* +%{_mandir}/man5/avahi.hosts.5* +%{_mandir}/man5/avahi.service.5* +%{_mandir}/man8/avahi-daemon.8* +%{_mandir}/man8/avahi-dnsconfd.8* +%{_mandir}/man8/avahi-dnsconfd.action.8* %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action %attr(755,root,root) %{_sbindir}/avahi-autoipd +%{_mandir}/man8/avahi-autoipd.8* +%{_mandir}/man8/avahi-autoipd.action.8* -%files libs +%files libs -f %{name}.lang %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libavahi-client.so.3 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.5 +# common for -discover* +%dir %{_datadir}/%{name} +%dir %{_datadir}/%{name}/interfaces %files devel %defattr(644,root,root,755) @@ -548,9 +689,33 @@ fi %{_libdir}/libavahi-common.a %{_libdir}/libavahi-core.a +%files ui +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/bshell +%attr(755,root,root) %{_bindir}/bssh +%attr(755,root,root) %{_bindir}/bvnc +%attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libavahi-ui.so.0 +%{_mandir}/man1/bssh.1* +%{_mandir}/man1/bvnc.1* +%{_desktopdir}/bssh.desktop +%{_desktopdir}/bvnc.desktop + +%files ui-devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libavahi-ui.so +%{_libdir}/libavahi-ui.la +%{_includedir}/avahi-ui +%{_pkgconfigdir}/avahi-ui.pc + +%files ui-static +%defattr(644,root,root,755) +%{_libdir}/libavahi-ui.a + %files compat-libdns_sd %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libdns_sd.so.1 %files compat-libdns_sd-devel %defattr(644,root,root,755) @@ -567,6 +732,7 @@ fi %files compat-howl %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libhowl.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libhowl.so.0 %files compat-howl-devel %defattr(644,root,root,755) @@ -580,6 +746,10 @@ fi %defattr(644,root,root,755) %{_libdir}/libhowl.a +%files -n python-avahi +%defattr(644,root,root,755) +%{py_sitedir}/avahi + %if %{with dotnet} %files -n dotnet-avahi %defattr(644,root,root,755) @@ -587,14 +757,25 @@ fi %files -n dotnet-avahi-devel %defattr(644,root,root,755) -%{_libdir}/monodoc/sources/avahi-* %{_prefix}/lib/mono/avahi-sharp +%{_libdir}/monodoc/sources/avahi-sharp-docs.* %{_pkgconfigdir}/avahi-sharp.pc + +%files -n dotnet-avahi-ui +%defattr(644,root,root,755) +%{_prefix}/lib/mono/gac/avahi-ui-sharp + +%files -n dotnet-avahi-ui-devel +%defattr(644,root,root,755) +%{_prefix}/lib/mono/avahi-ui-sharp +%{_libdir}/monodoc/sources/avahi-ui-sharp-docs.* +%{_pkgconfigdir}/avahi-ui-sharp.pc %endif %files glib %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libavahi-glib.so.1 %files glib-devel %defattr(644,root,root,755) @@ -607,10 +788,27 @@ fi %defattr(644,root,root,755) %{_libdir}/libavahi-glib.a +%files gobject +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libavahi-gobject.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libavahi-gobject.so.0 + +%files gobject-devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libavahi-gobject.so +%{_libdir}/libavahi-gobject.la +%{_includedir}/avahi-gobject +%{_pkgconfigdir}/avahi-gobject.pc + +%files gobject-static +%defattr(644,root,root,755) +%{_libdir}/libavahi-gobject.a + %if %{with qt3} %files qt %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libavahi-qt3.so.1 %files qt-devel %defattr(644,root,root,755) @@ -628,6 +826,7 @@ fi %files Qt %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libavahi-qt4.so.1 %files Qt-devel %defattr(644,root,root,755) @@ -644,26 +843,37 @@ fi %files bookmarks %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/avahi-bookmarks +%{_mandir}/man1/avahi-bookmarks.1* %files discover %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/avahi-discover -# XXX: possibly missing %{_datadir}/%{name} dir, shared subdir -%dir %{_datadir}/%{name}/interfaces +%{py_sitedir}/avahi_discover %{_datadir}/%{name}/interfaces/avahi-discover.glade -%{py_sitedir}/avahi -%{_desktopdir}/*.desktop +%{_desktopdir}/avahi-discover.desktop %{_pixmapsdir}/avahi.png +%{_mandir}/man1/avahi-discover.1* %files discover-standalone %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/avahi-discover-standalone -# XXX: possibly missing %{_datadir}/%{name} dir, shared subdir -%dir %{_datadir}/%{name}/interfaces %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade %files utils %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/avahi-browse +%attr(755,root,root) %{_bindir}/avahi-browse-domains %attr(755,root,root) %{_bindir}/avahi-publish +%attr(755,root,root) %{_bindir}/avahi-publish-address +%attr(755,root,root) %{_bindir}/avahi-publish-service %attr(755,root,root) %{_bindir}/avahi-resolve +%attr(755,root,root) %{_bindir}/avahi-resolve-address +%attr(755,root,root) %{_bindir}/avahi-resolve-host-name +%{_mandir}/man1/avahi-browse.1* +%{_mandir}/man1/avahi-browse-domains.1* +%{_mandir}/man1/avahi-publish.1* +%{_mandir}/man1/avahi-publish-address.1* +%{_mandir}/man1/avahi-publish-service.1* +%{_mandir}/man1/avahi-resolve.1* +%{_mandir}/man1/avahi-resolve-address.1* +%{_mandir}/man1/avahi-resolve-host-name.1*