From bfa5b7797ea656f89abb783a98947e439971df95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Tue, 30 Sep 2014 16:13:17 +0200 Subject: RPM Packaging: update TQT3 --- .../dependencies/avahi-tqt/avahi-tqt-14.0.0.spec | 151 ++++++++++++++------- 1 file changed, 104 insertions(+), 47 deletions(-) (limited to 'redhat/dependencies/avahi-tqt') diff --git a/redhat/dependencies/avahi-tqt/avahi-tqt-14.0.0.spec b/redhat/dependencies/avahi-tqt/avahi-tqt-14.0.0.spec index 99f4c20bc..16892edb1 100644 --- a/redhat/dependencies/avahi-tqt/avahi-tqt-14.0.0.spec +++ b/redhat/dependencies/avahi-tqt/avahi-tqt-14.0.0.spec @@ -1,30 +1,47 @@ +# +# spec file for package avahi-tqt +# +# Copyright (c) 2014 François Andriot +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. +# +# Please submit bugfixes or comments via http:/www.trinitydesktop.org/ +# + # TDE specific building variables %define tde_version 14.0.0 -%define tde_prefix /usr +%define tde_prefix /opt/trinity %define tde_includedir %{tde_prefix}/include %define tde_libdir %{tde_prefix}/%{_lib} - Name: trinity-avahi-tqt Epoch: 2 Version: 0.6.30 Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant} -License: GPL -Summary: Avahi TQT Interface -Group: System Environment/Libraries +License: LGPL-2.0+ +Summary: Avahi TQt integration library +Group: System/Libraries Vendor: Trinity Project -Packager: Francois Andriot +#Packager: Francois Andriot URL: http://www.trinitydesktop.org/ -Prefix: %{tde_prefix} +Prefix: /usr BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz -BuildRequires: gcc-c++ BuildRequires: trinity-tqt3-devel >= 3.5.0 -BuildRequires: trinity-tqtinterface-devel >= %{tde_version} +BuildRequires: trinity-tqtinterface-devel >= 1:4.2.0-1 + +BuildRequires: gcc-c++ BuildRequires: gettext-devel BuildRequires: libtool @@ -39,7 +56,6 @@ BuildRequires: dbus-devel # AVAHI support %if 0%{?mgaversion} || 0%{?mdkversion} BuildRequires: %{_lib}avahi-client-devel -Provides: %{_lib}avahi-qt3 %endif %if 0%{?suse_version} || 0%{?rhel} || 0%{?fedora} BuildRequires: avahi-devel @@ -54,36 +70,100 @@ BuildRequires: libexpat-devel %endif Requires: trinity-tqt3 >= 3.5.0 -Requires: trinity-tqtinterface >= %{tde_version} +Requires: trinity-tqtinterface >= 1:4.2.0-1 + +%description +Avahi is a fully LGPL framework for Multicast DNS Service Discovery. +It allows programs to publish and discover services and hosts +running on a local network with no specific configuration. For +example you can plug into a network and instantly find printers to +print to, files to look at and people to talk to. + . +This library contains the interface to integrate the Avahi libraries +into a TQt main loop application. + +########## -Obsoletes: avahi-tqt < %{?epoch:%{epoch}:}%{version}-%{release} +%package -n libavahi-tqt +Summary: Avahi TQt integration library +Group: System/Libraries + +%if 0%{?mgaversion} || 0%{?mdkversion} +Provides: %{_lib}avahi-qt3 +%endif + +Obsoletes: avahi-tqt Provides: avahi-tqt = %{?epoch:%{epoch}:}%{version}-%{release} +Obsoletes: trinity-avahi-tqt +Provides: trinity-avahi-tqt = %{?epoch:%{epoch}:}%{version}-%{release} + +%description -n libavahi-tqt +Avahi is a fully LGPL framework for Multicast DNS Service Discovery. +It allows programs to publish and discover services and hosts +running on a local network with no specific configuration. For +example you can plug into a network and instantly find printers to +print to, files to look at and people to talk to. + . +This library contains the interface to integrate the Avahi libraries +into a TQt main loop application. + +%post -n libavahi-tqt +/sbin/ldconfig || : +%postun -n libavahi-tqt +/sbin/ldconfig || : -%description -Avahi TQT Interface +%files -n libavahi-tqt +%defattr(-,root,root,-) +%{_libdir}/libavahi-tqt.so.1 +%{_libdir}/libavahi-tqt.so.1.0.0 +########## -%package devel -Summary: %{name} - Development files +%package -n libavahi-tqt-devel +Summary: Avahi TQt integration library (Development Files) Group: Development/Libraries -Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: libavahi-tqt = %{?epoch:%{epoch}:}%{version}-%{release} %if 0%{?mgaversion} || 0%{?mdkversion} Provides: %{_lib}avahi-qt3-devel %endif -Obsoletes: avahi-tqt-devel < %{?epoch:%{epoch}:}%{version}-%{release} +Obsoletes: avahi-tqt-devel Provides: avahi-tqt-devel = %{?epoch:%{epoch}:}%{version}-%{release} +Obsoletes: trinity-avahi-tqt-devel +Provides: trinity-avahi-tqt-devel = %{?epoch:%{epoch}:}%{version}-%{release} + +%description -n libavahi-tqt-devel +Avahi is a fully LGPL framework for Multicast DNS Service Discovery. +It allows programs to publish and discover services and hosts +running on a local network with no specific configuration. For +example you can plug into a network and instantly find printers to +print to, files to look at and people to talk to. + . +This library contains the interface to integrate the Avahi libraries +into a TQt main loop application. + +%post -n libavahi-tqt-devel +/sbin/ldconfig || : + +%postun -n libavahi-tqt-devel +/sbin/ldconfig || : -%description devel -Development files for %{name} +%files -n libavahi-tqt-devel +%defattr(-,root,root,-) +%{_includedir}/avahi-tqt/ +%{_libdir}/libavahi-tqt.so +%{_libdir}/libavahi-tqt.la +%{_libdir}/pkgconfig/avahi-tqt.pc +########## %if 0%{?suse_version} || 0%{?pclinuxos} %debug_package %endif +########## %prep %setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}} @@ -95,9 +175,9 @@ unset QTDIR QTINC QTLIB export PATH="%{tde_bindir}:${PATH}" %configure \ - --exec-prefix=%{tde_prefix} \ - --includedir=%{tde_includedir} \ - --libdir=%{tde_libdir} \ + --exec-prefix=%{_prefix} \ + --includedir=%{_includedir} \ + --libdir=%{_libdir} \ \ --disable-static \ --disable-dependency-tracking \ @@ -116,30 +196,7 @@ export PATH="%{tde_bindir}:${PATH}" %clean %__rm -rf %{?buildroot} -%post -/sbin/ldconfig || : - -%postun -/sbin/ldconfig || : - -%post devel -/sbin/ldconfig || : - -%postun devel -/sbin/ldconfig || : - -%files -%defattr(-,root,root,-) -%{tde_libdir}/libavahi-tqt.so.1 -%{tde_libdir}/libavahi-tqt.so.1.0.0 - -%files devel -%defattr(-,root,root,-) -%{tde_includedir}/avahi-tqt/ -%{tde_libdir}/libavahi-tqt.so -%{tde_libdir}/libavahi-tqt.la -%{tde_libdir}/pkgconfig/avahi-tqt.pc %changelog -* Fri Jul 05 2013 Francois Andriot - 0.6.30-1 +* Fri Jul 05 2013 Francois Andriot - 2:0.6.30-1 - Initial release for TDE 14.0.0 -- cgit v1.2.1