Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37041706
en ru br
ALT Linux repositórios
S:0.5.5-alt3
5.0: 0.3.2-alt2

Group :: Desktop gráfico/Outros
RPM: lxde-lxsession

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define upstreamname lxsession
%define gtkver 2
Name: lxde-%upstreamname
Version: 0.5.5
Release: alt3

Summary: LXSession is the default X11 session manager of LXDE
License: GPL-2.0-or-later
Group: Graphical desktop/Other
Url: https://github.com/lxde/lxsession.git

Provides: lxde-lxsession-lite
Obsoletes: lxde-lxsession-lite

Provides: lxde-settings-daemon
Obsoletes: lxde-settings-daemon

Packager: LXDE Development Team <lxde at packages.altlinux.org>

Source: %name-%version.tar
Patch: lxsession-0.4.6.1-alt-kdmfix.patch
Patch1: lxsession-0.5.2-notify-daemon-default.patch
Patch2: lxsession-0.5.2-reload.patch

# Fedora patchs

Patch3: lxsession-0.5.4-load-settings-nullcheck.patch

BuildPreReq: intltool libXau-devel libdbus-devel libgtk+%gtkver-devel xsltproc docbook-dtds docbook-style-xsl pkgconfig(dbus-glib-1) pkgconfig(gio-unix-2.0) pkgconfig(glib-2.0) pkgconfig(unique-1.0) pkgconfig(x11) pkgconfig(polkit-agent-1) vala pkgconfig(libnotify)
%add_findreq_skiplist %_bindir/lxlock

#Requires: lxde-lxpolkit = %version-%release

# required for suspend and hibernate
Requires: upower

%description
LXSession is lightweiht, and it's not tighted to "any" desktop environment.
It's desktop-independent and can be used with any window manager.
With proper configuration, you can make your own desktop environment with
LXSession. This is very useful to the users and developers of non-mainstream
window managers and desktop environemts.

%package -n lxde-lxpolkit
Summary: Simple PolicyKit authentication agent
Group: Graphical desktop/Other
Requires: polkit >= 0.95

%description -n lxde-lxpolkit
LXPolKit is a simple PolicyKit authentication agent developed for LXDE, the
Lightweight X11 Desktop Environment.

%package -n %name-edit
Summary: LXDE Desktop Session Settings
Group: Graphical desktop/Other
Requires: %name = %version-%release

%description -n %name-edit
lxsession-edit is a tool used to manage desktop session autostarts, especially
for lxsession lite.

%prep
%setup
%patch -p2
%patch1 -p1
%patch2 -p1
%patch3 -p1

sed -i 's/^NotShowIn=GNOME;KDE;MATE;/OnlyShowIn=LXDE;/g' data/lxpolkit.desktop.in.in

%build
%__subst '/m4/ d' Makefile.am
%autoreconf
%configure --enable-man \
          --enable-debug \
          --disable-silent-rules \
%if %gtkver==3
          --enable-gtk3
%endif

# Tweak optflags here

find . -name Makefile | \
xargs sed -i -e 's|\(-Werror=format-security\)|\1 -Werror=implicit-function-declaration -Werror=return-type |'

%make_build

%install
%makeinstall_std

mkdir -p -m 755 %buildroot%_sysconfdir/xdg/%name

%find_lang %upstreamname

%files -f %upstreamname.lang
%doc AUTHORS ChangeLog COPYING README data/desktop.conf.example
%_bindir/%upstreamname
%_bindir/%upstreamname-logout
%_bindir/%upstreamname-db
%_bindir/%upstreamname-default
%_bindir/%upstreamname-default-apps
%_bindir/%upstreamname-default-terminal
%_libexecdir/%upstreamname
%_bindir/lxsettings-daemon
%_bindir/%upstreamname-xdg-autostart
%_bindir/lxlock
%_bindir/lxclipboard
%_datadir/%upstreamname
%exclude %_datadir/%upstreamname/ui/lxsession-edit.ui
%exclude %_datadir/%upstreamname/ui/lxpolkit.ui
%_man1dir/*
%_desktopdir/*.desktop
%exclude %_desktopdir/lxsession-edit.desktop

%files -n %name-edit
%_bindir/lxsession-edit
%_desktopdir/lxsession-edit.desktop
%_datadir/%upstreamname/ui/lxsession-edit.ui

%files -n lxde-lxpolkit
%_bindir/lxpolkit
%config %_sysconfdir/xdg/autostart/lxpolkit.desktop
%dir %_datadir/%upstreamname
%dir %_datadir/%upstreamname/ui
%_datadir/%upstreamname/ui/lxpolkit.ui

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009