--- NetworkManager.spec~ 2013-10-14 17:29:36.000000000 +0400 +++ NetworkManager.spec 2013-10-30 18:03:09.539407670 +0400 @@ -4,6 +4,13 @@ %define dbus_version 1.2.12-alt2 %define libdbus_glib_version 0.76 +%define nm_glib_sover 4 +%define libnm_glib libnm_glib%nm_glib_sover +%define nm_glib_vpn_sover 1 +%define libnm_glib_vpn libnm_glib_vpn%nm_glib_vpn_sover +%define nm_util_sover 2 +%define libnm_util libnm_util%nm_util_sover + %define ppp_version 2.4.5 %define wpa_supplicant_version 0.7.3-alt3 %define dhcpcd_version 4.0.0 @@ -95,18 +102,57 @@ functionality from applications. %package glib License: %gpl2plus Summary: Libraries for adding NetworkManager support to applications that use glib -Group: Development/GNOME and GTK+ +Group: System/Libraries Requires: dbus >= %dbus_version +Requires: %libnm_glib %libnm_glib_vpn %libnm_util %description glib This package contains the libraries that make it easier to use some Network Manager functionality from applications that use glib. +%package -n %libnm_glib +License: %gpl2plus +Summary: Library for adding NetworkManager support to applications that use glib +Group: System/Libraries +Requires: dbus >= %dbus_version +%if "%nm_glib_sover" == "4" +Conflicts: NetworkManager-glib <= 0.9.8.8-alt1 +%endif + +%description -n %libnm_glib +This package contains the library that make it easier to use some +Network Manager functionality from applications that use glib. + +%package -n %libnm_glib_vpn +License: %gpl2plus +Summary: Library for adding NetworkManager support to applications that use glib and vpn +Group: System/Libraries +Requires: dbus >= %dbus_version +%if "%nm_glib_vpn_sover" == "1" +Conflicts: NetworkManager-glib <= 0.9.8.8-alt1 +%endif + +%description -n %libnm_glib_vpn +This package contains the library that make it easier to use some +Network Manager functionality from applications that use glib and vpn. + +%package -n %libnm_util +License: %gpl2plus +Summary: Utlility library for adding NetworkManager support to applications that use glib +Group: System/Libraries +Requires: dbus >= %dbus_version +%if "%nm_util_sover" == "2" +Conflicts: NetworkManager-glib <= 0.9.8.8-alt1 +%endif + +%description -n %libnm_util +This package contains the utlility library that make it easier to use some +Network Manager functionality from applications that use glib. + %package glib-devel Summary: Header files for adding NetworkManager support to applications that use glib. Group: Development/GNOME and GTK+ Requires: %name-devel = %version-%release -Requires: %name-glib = %version-%release Requires: glib2-devel Requires: pkgconfig Requires: libdbus-glib-devel >= %libdbus_glib_version @@ -128,7 +174,7 @@ This package contains development docume %package glib-gir Summary: GObject introspection data for the NetworkManager Group: System/Libraries -Requires: %name-glib = %version-%release +Requires: %libnm_glib %libnm_glib_vpn %libnm_util %description glib-gir GObject introspection data for the NetworkManager. @@ -294,9 +340,18 @@ fi %_pkgconfigdir/%name.pc %files glib -%_libdir/libnm-glib.so.* -%_libdir/libnm-glib-vpn.so.* -%_libdir/libnm-util.so.* + +%files -n %libnm_glib +%_libdir/libnm-glib.so.%nm_glib_sover +%_libdir/libnm-glib.so.%nm_glib_sover.* + +%files -n %libnm_glib_vpn +%_libdir/libnm-glib-vpn.so.%nm_glib_vpn_sover +%_libdir/libnm-glib-vpn.so.%nm_glib_vpn_sover.* + +%files -n %libnm_util +%_libdir/libnm-util.so.%nm_util_sover +%_libdir/libnm-util.so.%nm_util_sover.* %files glib-devel %dir %_includedir/libnm-glib