diff options
author | François Andriot <albator78@libertysurf.fr> | 2013-07-22 14:38:31 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2013-07-22 14:38:31 +0200 |
commit | eaa27cfab10809dface087064bb55281502c8336 (patch) | |
tree | 1612618c1bf39aa91fa3510b0ef334c62f495329 /redhat/applications/knetworkmanager8 | |
parent | fd444009b666a7067a24177ee8e5e7101973ab23 (diff) | |
download | tde-packaging-eaa27cfab10809dface087064bb55281502c8336.tar.gz tde-packaging-eaa27cfab10809dface087064bb55281502c8336.zip |
RPM Packaging: updates for R14
Diffstat (limited to 'redhat/applications/knetworkmanager8')
-rw-r--r-- | redhat/applications/knetworkmanager8/knetworkmanager8-14.0.0.spec (renamed from redhat/applications/knetworkmanager8/knetworkmanager-14.0.0.spec) | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/redhat/applications/knetworkmanager8/knetworkmanager-14.0.0.spec b/redhat/applications/knetworkmanager8/knetworkmanager8-14.0.0.spec index 73930db63..2cfd123e8 100644 --- a/redhat/applications/knetworkmanager8/knetworkmanager-14.0.0.spec +++ b/redhat/applications/knetworkmanager8/knetworkmanager8-14.0.0.spec @@ -1,11 +1,6 @@ # Default version for this component -%define tde_pkg knetworkmanager +%define tde_pkg knetworkmanager8 %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_prefix}" != "/usr" @@ -30,7 +25,7 @@ Name: trinity-%{tde_pkg} -Version: %{?version} +Version: 0.8 Release: %{?!preversion:6}%{?preversion:5_%{preversion}}%{?dist}%{?_variant} Summary: Trinity applet for Network Manager @@ -39,17 +34,10 @@ Group: Applications/Internet License: GPLv2+ URL: http://en.opensuse.org/Projects/KNetworkManager -%if "%{?version}" == "0.9" 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 -# For knetworkmanager 0.9 only ! -Patch10: knetworkmanager-3.5.13-subdir_version.patch - BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #Requires: kde-filesystem @@ -65,6 +53,9 @@ BuildRequires: trinity-dbus-1-tqt-devel BuildRequires: trinity-dbus-tqt-devel BuildRequires: NetworkManager-glib-devel +Obsoletes: trinity-knetworkmanager < %{version}-%{release} +Provides: trinity-knetworkmanager = %{version}-%{release} + %description KNetworkManager is a system tray applet for controlling network connections on systems that use the NetworkManager daemon. @@ -75,6 +66,9 @@ Summary: Common data shared among the MySQL GUI Suites Group: Development/Libraries Requires: %{name} = %{version}-%{release} +Obsoletes: trinity-knetworkmanager-devel < %{version}-%{release} +Provides: trinity-knetworkmanager-devel = %{version}-%{release} + %description devel Development headers for knetworkmanager @@ -85,21 +79,12 @@ Development headers for knetworkmanager %prep -%if "%{?version}" == "0.9" -%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}} -%else %setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}} -%endif - -%if "%{?version}" == "0.9" -%patch10 -p1 -%endif cd knetworkmanager-0.*/src %patch0 -p3 - %build unset QTDIR QTINC QTLIB export PATH="%{tde_bindir}:${PATH}" @@ -125,7 +110,8 @@ cd build -DCMAKE_SKIP_RPATH="OFF" \ .. -%__make %{?_smp_mflags} +%__make %{?_smp_mflags} || %__make + %install %__rm -rf $RPM_BUILD_ROOT @@ -142,18 +128,22 @@ update-desktop-database %{tde_appdir} > /dev/null touch --no-create %{tde_datadir}/icons/hicolor || : gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : + %postun update-desktop-database %{tde_appdir} > /dev/null /sbin/ldconfig touch --no-create %{tde_datadir}/icons/hicolor || : gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || : + %post devel /sbin/ldconfig + %postun devel /sbin/ldconfig + %files %defattr(-,root,root,-) %{tde_bindir}/knetworkmanager |