Репозитории ALT
Группа :: Графические оболочки/Прочее
Пакет: wm-select
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_without runwm
%def_without xdg
%def_without gtk3
Name: wm-select
Version: 0.9.9
Release: alt1
Summary: Application for selecting window manager at startup
License: GPLv2+
Group: Graphical desktop/Other
Url: http://altlinux.org
Source: %name-%version.tar
%if_with gtk3
BuildRequires: libgtk+3-devel
%else
BuildRequires: libgtk+2-devel
%endif
%description
wm-select is a small Gtk application for selecting a window manager
at X startup.
%if_with runwm
%package -n runwm
Group: System/X11
Summary: Executes window manager using wm.d or xsessions database
Conflicts: xinitrc < 2.4.47-alt3
%description -n runwm
runwm is a tool for non-XDG compliant Display Managers that launches
window manager using wm.d or xsessions database.
%endif
%prep
%setup
%build
%make_build CFLAGS="%optflags" \
%if_without xdg
WITH_WM_SESSION=yes \
%endif
%if_with gtk3
WITH_GTK2= \
%else
WITH_GTK2=yes \
%endif
all
%install
install -pD -m755 %name %buildroot%_bindir/%name
%if_with runwm
install -pD -m755 runwm %buildroot%_bindir/runwm
%else
install -pD -m755 runwm %buildroot%_bindir/runwm.test
%endif
for f in *.mo; do
lang="${f%%.mo}"
install -pD -m644 "$f" "%buildroot%_datadir/locale/$lang/LC_MESSAGES/%name.mo"
done
%find_lang %name
%files -f %name.lang
%_bindir/%name
%if_with runwm
%files -n runwm
%_bindir/runwm
%else
%_bindir/runwm.test
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%def_without xdg
%def_without gtk3
Name: wm-select
Version: 0.9.9
Release: alt1
Summary: Application for selecting window manager at startup
License: GPLv2+
Group: Graphical desktop/Other
Url: http://altlinux.org
Source: %name-%version.tar
%if_with gtk3
BuildRequires: libgtk+3-devel
%else
BuildRequires: libgtk+2-devel
%endif
%description
wm-select is a small Gtk application for selecting a window manager
at X startup.
%if_with runwm
%package -n runwm
Group: System/X11
Summary: Executes window manager using wm.d or xsessions database
Conflicts: xinitrc < 2.4.47-alt3
%description -n runwm
runwm is a tool for non-XDG compliant Display Managers that launches
window manager using wm.d or xsessions database.
%endif
%prep
%setup
%build
%make_build CFLAGS="%optflags" \
%if_without xdg
WITH_WM_SESSION=yes \
%endif
%if_with gtk3
WITH_GTK2= \
%else
WITH_GTK2=yes \
%endif
all
%install
install -pD -m755 %name %buildroot%_bindir/%name
%if_with runwm
install -pD -m755 runwm %buildroot%_bindir/runwm
%else
install -pD -m755 runwm %buildroot%_bindir/runwm.test
%endif
for f in *.mo; do
lang="${f%%.mo}"
install -pD -m644 "$f" "%buildroot%_datadir/locale/$lang/LC_MESSAGES/%name.mo"
done
%find_lang %name
%files -f %name.lang
%_bindir/%name
%if_with runwm
%files -n runwm
%_bindir/runwm
%else
%_bindir/runwm.test
%endif
%changelog
…
Полный changelog можно просмотреть здесь