|
|
@ -1,11 +1,6 @@
|
|
|
|
# Default version for this component
|
|
|
|
# Default version for this component
|
|
|
|
%define tde_pkg knetworkmanager
|
|
|
|
%define tde_pkg knetworkmanager8
|
|
|
|
%define tde_version 14.0.0
|
|
|
|
%define tde_version 14.0.0
|
|
|
|
%if 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion}
|
|
|
|
|
|
|
|
%define version 0.9
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%define version 0.8
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
|
|
|
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
|
|
|
%if "%{?tde_prefix}" != "/usr"
|
|
|
|
%if "%{?tde_prefix}" != "/usr"
|
|
|
@ -30,7 +25,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: trinity-%{tde_pkg}
|
|
|
|
Name: trinity-%{tde_pkg}
|
|
|
|
Version: %{?version}
|
|
|
|
Version: 0.8
|
|
|
|
Release: %{?!preversion:6}%{?preversion:5_%{preversion}}%{?dist}%{?_variant}
|
|
|
|
Release: %{?!preversion:6}%{?preversion:5_%{preversion}}%{?dist}%{?_variant}
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Trinity applet for Network Manager
|
|
|
|
Summary: Trinity applet for Network Manager
|
|
|
@ -39,17 +34,10 @@ Group: Applications/Internet
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPLv2+
|
|
|
|
URL: http://en.opensuse.org/Projects/KNetworkManager
|
|
|
|
URL: http://en.opensuse.org/Projects/KNetworkManager
|
|
|
|
|
|
|
|
|
|
|
|
%if "%{?version}" == "0.9"
|
|
|
|
|
|
|
|
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
|
|
|
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
|
|
|
%else
|
|
|
|
|
|
|
|
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: knetworkmanager-3.5.13-missing_includes.patch
|
|
|
|
Patch0: knetworkmanager-3.5.13-missing_includes.patch
|
|
|
|
|
|
|
|
|
|
|
|
# For knetworkmanager 0.9 only !
|
|
|
|
|
|
|
|
Patch10: knetworkmanager-3.5.13-subdir_version.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
|
|
#Requires: kde-filesystem
|
|
|
|
#Requires: kde-filesystem
|
|
|
@ -65,6 +53,9 @@ BuildRequires: trinity-dbus-1-tqt-devel
|
|
|
|
BuildRequires: trinity-dbus-tqt-devel
|
|
|
|
BuildRequires: trinity-dbus-tqt-devel
|
|
|
|
BuildRequires: NetworkManager-glib-devel
|
|
|
|
BuildRequires: NetworkManager-glib-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Obsoletes: trinity-knetworkmanager < %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: trinity-knetworkmanager = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
KNetworkManager is a system tray applet for controlling network
|
|
|
|
KNetworkManager is a system tray applet for controlling network
|
|
|
|
connections on systems that use the NetworkManager daemon.
|
|
|
|
connections on systems that use the NetworkManager daemon.
|
|
|
@ -75,6 +66,9 @@ Summary: Common data shared among the MySQL GUI Suites
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Obsoletes: trinity-knetworkmanager-devel < %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: trinity-knetworkmanager-devel = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
Development headers for knetworkmanager
|
|
|
|
Development headers for knetworkmanager
|
|
|
|
|
|
|
|
|
|
|
@ -85,21 +79,12 @@ Development headers for knetworkmanager
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%if "%{?version}" == "0.9"
|
|
|
|
|
|
|
|
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
|
|
|
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if "%{?version}" == "0.9"
|
|
|
|
|
|
|
|
%patch10 -p1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd knetworkmanager-0.*/src
|
|
|
|
cd knetworkmanager-0.*/src
|
|
|
|
%patch0 -p3
|
|
|
|
%patch0 -p3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
unset QTDIR QTINC QTLIB
|
|
|
|
unset QTDIR QTINC QTLIB
|
|
|
|
export PATH="%{tde_bindir}:${PATH}"
|
|
|
|
export PATH="%{tde_bindir}:${PATH}"
|
|
|
@ -125,7 +110,8 @@ cd build
|
|
|
|
-DCMAKE_SKIP_RPATH="OFF" \
|
|
|
|
-DCMAKE_SKIP_RPATH="OFF" \
|
|
|
|
..
|
|
|
|
..
|
|
|
|
|
|
|
|
|
|
|
|
%__make %{?_smp_mflags}
|
|
|
|
%__make %{?_smp_mflags} || %__make
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
|
@ -142,18 +128,22 @@ update-desktop-database %{tde_appdir} > /dev/null
|
|
|
|
touch --no-create %{tde_datadir}/icons/hicolor || :
|
|
|
|
touch --no-create %{tde_datadir}/icons/hicolor || :
|
|
|
|
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
|
|
|
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%postun
|
|
|
|
update-desktop-database %{tde_appdir} > /dev/null
|
|
|
|
update-desktop-database %{tde_appdir} > /dev/null
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/ldconfig
|
|
|
|
touch --no-create %{tde_datadir}/icons/hicolor || :
|
|
|
|
touch --no-create %{tde_datadir}/icons/hicolor || :
|
|
|
|
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
|
|
|
gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
%post devel
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%postun devel
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{tde_bindir}/knetworkmanager
|
|
|
|
%{tde_bindir}/knetworkmanager
|