]> git.pld-linux.org Git - packages/avahi.git/blobdiff - avahi.spec
- up to 0.6.10
[packages/avahi.git] / avahi.spec
index b76e05b8c5dfc0e00b7f5ae8c722a32bb2359f89..718518f558b9f4338a018e95cf9cb9ae9b869c0f 100644 (file)
@@ -1,22 +1,25 @@
 #
 # Conditional build:
-%bcond_with    dotnet          # build with dotnet bindings
+%bcond_without dotnet          # build with dotnet bindings
 %bcond_without qt              # build with qt bindings
 #
+%include /usr/lib/rpm/macros.mono
+#
 Summary:       Free mDNS/DNS-SD implementation
 Summary(pl):   Wolna implementacja mDNS/DNS-SD
 Name:          avahi
-Version:       0.6.8
+Version:       0.6.10
 Release:       1
 License:       GPL v.2/LGPL
 Group:         Applications
 Source0:       http://avahi.org/download/%{name}-%{version}.tar.gz
-# Source0-md5: 28ef3c1f15d03f0dc73c9289a434d37c
+# Source0-md5: cfb9e05c138dff4c430a35eee6229e8a
 Source1:       %{name}-daemon
 Source2:       %{name}-dnsconfd
 Source3:       %{name}.png
 Patch0:                %{name}-desktop.patch
 Patch1:                %{name}-glade.patch
+Patch2:                %{name}-destdir.patch
 URL:           http://avahi.org/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -28,16 +31,19 @@ BuildRequires:      glib2-devel >= 1:2.4.0
 BuildRequires: graphviz
 BuildRequires: gtk+2-devel >= 2:2.4.0
 BuildRequires: libdaemon-devel >= 0.5
-BuildRequires: libglade2-devel >= 2.4.0
+BuildRequires: libglade2-devel >= 1:2.5.1-5
 BuildRequires: libtool
 %if %{with dotnet}
-BuildRequires: mono
+BuildRequires: mono-csharp
 BuildRequires: monodoc
 %endif
+BuildRequires: pkgconfig
 BuildRequires: python-dbus
 BuildRequires: python-pygtk-devel
 %if %{with qt}
+BuildRequires: QtCore-devel
 BuildRequires: qt-devel >= 3.0
+BuildRequires: qt4-build
 %endif
 BuildRequires: rpmbuild(macros) >= 1.228
 Requires(post,preun):  /sbin/chkconfig
@@ -73,6 +79,7 @@ Summary:      Header files for Avahi library
 Summary(pl):   Pliki nag³ówkowe biblioteki Avahi
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
+Requires:      dbus-devel
 Requires:      expat-devel
 Requires:      libdaemon-devel >= 0.5
 
@@ -112,6 +119,7 @@ Summary:    Header files for Avahi Bonjour compat library
 Summary(pl):   Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
 Group:         Development/Libraries
 Requires:      %{name}-compat-libdns_sd = %{version}-%{release}
+Requires:      %{name}-devel = %{version}-%{release}
 Provides:      mdns-bonjour-devel
 Obsoletes:     mDNSResponder-devel
 
@@ -125,7 +133,7 @@ Pliki nag
 Summary:       Static Avahi Bonjour compat library
 Summary(pl):   Statyczna biblioteka Avahi zgodna z Bonjour
 Group:         Development/Libraries
-Requires:      %{name}-libdns_sd-devel = %{version}-%{release}
+Requires:      %{name}-compat-libdns_sd-devel = %{version}-%{release}
 Provides:      mdns-bonjour-static
 
 %description compat-libdns_sd-static
@@ -152,6 +160,7 @@ Summary:    Header files for Avahi Howl compat library
 Summary(pl):   Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
 Group:         Development/Libraries
 Requires:      %{name}-compat-howl = %{version}-%{release}
+Requires:      %{name}-devel = %{version}-%{release}
 Provides:      mdns-howl-devel
 Obsoletes:     howl-devel
 
@@ -165,7 +174,7 @@ Pliki nag
 Summary:       Static Avahi Howl compat library
 Summary(pl):   Statyczna biblioteka Avahi zgodna z Howl
 Group:         Development/Libraries
-Requires:      %{name}-howl-devel = %{version}-%{release}
+Requires:      %{name}-compat-howl-devel = %{version}-%{release}
 Provides:      mdns-howl-static
 Obsoletes:     howl-static
 
@@ -213,44 +222,84 @@ Static Avahi GLib library.
 %description glib-static -l pl
 Statyczna biblioteka Avahi GLib.
 
-%package qt3
+%package qt
 Summary:       Avahi Qt 3 library bindings
 Summary(pl):   Wi±zania Avahi dla biblioteki Qt 3
 Group:         Libraries
 Requires:      %{name}-libs = %{version}-%{release}
+Obsoletes:     avahi-qt3
 
-%description qt3
+%description qt
 Avahi Qt 3 library bindings.
 
-%description qt3 -l pl
+%description qt -l pl
 Wi±zania Avahi dla biblioteki Qt 3.
 
-%package qt3-devel
+%package qt-devel
 Summary:       Header files for Avahi Qt 3 library bindings
 Summary(pl):   Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
-Requires:      %{name}-qt3 = %{version}-%{release}
+Requires:      %{name}-qt = %{version}-%{release}
 Requires:      qt-devel >= 3.0
+Obsoletes:     avahi-qt3-devel
 
-%description qt3-devel
+%description qt-devel
 Header files for Avahi Qt 3 library bindings.
 
-%description qt3-devel -l pl
+%description qt-devel -l pl
 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
 
-%package qt3-static
+%package qt-static
 Summary:       Static Avahi Qt 3 library
 Summary(pl):   Statyczna biblioteka Avahi Qt 3
 Group:         Development/Libraries
-Requires:      %{name}-qt3-devel = %{version}-%{release}
+Requires:      %{name}-qt-devel = %{version}-%{release}
+Obsoletes:     avahi-qt3-static
 
-%description qt3-static
+%description qt-static
 Static Avahi Qt 3 library.
 
-%description qt3-static -l pl
+%description qt-static -l pl
 Statyczna biblioteka Avahi Qt 3.
 
+%package Qt
+Summary:       Avahi Qt 4 library bindings
+Summary(pl):   Wi±zania Avahi dla biblioteki Qt 4
+Group:         Libraries
+Requires:      %{name}-libs = %{version}-%{release}
+
+%description Qt
+Avahi Qt 4 library bindings.
+
+%description Qt -l pl
+Wi±zania Avahi dla biblioteki Qt 4.
+
+%package Qt-devel
+Summary:       Header files for Avahi Qt 3 library bindings
+Summary(pl):   Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+Requires:      %{name}-Qt = %{version}-%{release}
+
+%description Qt-devel
+Header files for Avahi Qt 4 library bindings.
+
+%description Qt-devel -l pl
+Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 4.
+
+%package Qt-static
+Summary:       Static Avahi Qt 4 library
+Summary(pl):   Statyczna biblioteka Avahi Qt 4
+Group:         Development/Libraries
+Requires:      %{name}-Qt-devel = %{version}-%{release}
+
+%description Qt-static
+Static Avahi Qt 4 library.
+
+%description Qt-static -l pl
+Statyczna biblioteka Avahi Qt 4.
+
 %package -n dotnet-avahi
 Summary:       Avahi MONO bindings
 Summary(pl):   Wi±zania Avahi dla MONO
@@ -294,6 +343,9 @@ je jako odno
 Summary:       Avahi Zeroconf browser
 Summary(pl):   Przegl±darka Zeroconf Avahi
 Group:         Applications
+Requires:      %{name} = %{version}-%{release}
+Requires:      python-dbus
+Requires:      python-pygtk-glade
 
 %description discover
 A tool for enumerating all available services on the local LAN
@@ -307,6 +359,9 @@ Narz
 Summary:       Avahi Zeroconf browser
 Summary(pl):   Przegl±darka Zeroconf Avahi
 Group:         Applications
+Requires:      %{name} = %{version}-%{release}
+Requires:      python-dbus
+Requires:      python-pygtk-glade
 
 %description discover-standalone
 GTK+ tool for enumerating all available services on the local LAN.
@@ -330,6 +385,7 @@ Narz
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
@@ -341,8 +397,7 @@ Narz
        --enable-compat-libdns_sd \
        --enable-compat-howl \
        --with-distro=none \
-       --disable-qt4 \
-       %{!?with_qt:--disable-qt3} \
+       %{!?with_qt:--disable-qt3 --disable-qt4} \
        %{!?with_dotnet:--disable-mono} \
        %{!?with_dotnet:--disable-monodoc}
 %{__make}
@@ -405,8 +460,11 @@ fi
 %post  glib -p /sbin/ldconfig
 %postun        glib -p /sbin/ldconfig
 
-%post  qt3 -p /sbin/ldconfig
-%postun        qt3 -p /sbin/ldconfig
+%post  qt -p /sbin/ldconfig
+%postun        qt -p /sbin/ldconfig
+
+%post  Qt -p /sbin/ldconfig
+%postun        Qt -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
@@ -505,8 +563,8 @@ fi
 
 %files -n dotnet-avahi-devel
 %defattr(644,root,root,755)
-%{_prefix}/lib/monodoc/sources/avahi-*
-%{_pkgconfigdir}/*.pc
+%{_libdir}/monodoc/sources/avahi-*
+%{_pkgconfigdir}/avahi-sharp.pc
 %endif
 
 %files glib
@@ -525,20 +583,35 @@ fi
 %{_libdir}/libavahi-glib.a
 
 %if %{with qt}
-%files qt3
+%files qt
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
 
-%files qt3-devel
+%files qt-devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
 %{_libdir}/libavahi-qt3.la
 %{_includedir}/avahi-qt3
 %{_pkgconfigdir}/avahi-qt3.pc
 
-%files qt3-static
+%files qt-static
 %defattr(644,root,root,755)
 %{_libdir}/libavahi-qt3.a
+
+%files Qt
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
+
+%files Qt-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libavahi-qt4.so
+%{_libdir}/libavahi-qt4.la
+%{_includedir}/avahi-qt4
+%{_pkgconfigdir}/avahi-qt4.pc
+
+%files Qt-static
+%defattr(644,root,root,755)
+%{_libdir}/libavahi-qt4.a
 %endif
 
 %files bookmarks
This page took 0.092826 seconds and 4 git commands to generate.