Init package
This commit is contained in:
parent
8caa6b4a53
commit
8ea4797161
42
xfce-mimeapps.list
Normal file
42
xfce-mimeapps.list
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
[Default Applications]
|
||||||
|
application/x-dia-diagram=dia.desktop
|
||||||
|
image/x-xcf=gimp.desktop
|
||||||
|
image/x-compressed-xcf=gimp.desktop
|
||||||
|
image/x-psd=gimp.desktop
|
||||||
|
text/html=exo-web-browser.desktop
|
||||||
|
application/xhtml+xml=exo-web-browser.desktop
|
||||||
|
x-scheme-handler/http=exo-web-browser.desktop
|
||||||
|
x-scheme-handler/https=exo-web-browser.desktop
|
||||||
|
x-scheme-handler/geo=exo-web-browser.desktop
|
||||||
|
image/svg+xml=exo-web-browser.desktop
|
||||||
|
text/plain=mousepad.desktop
|
||||||
|
image/png=ristretto.desktop
|
||||||
|
image/gif=ristretto.desktop
|
||||||
|
image/jpeg=ristretto.desktop
|
||||||
|
image/bmp=ristretto.desktop
|
||||||
|
image/x-pixmap=ristretto.desktop
|
||||||
|
image/tiff=ristretto.desktop
|
||||||
|
image/svg+xml=ristretto.desktop
|
||||||
|
image/x-xpixmap=ristretto.desktop
|
||||||
|
inode/directory=Thunar-folder-handler.desktop
|
||||||
|
application/x-arj=xarchiver.desktop
|
||||||
|
application/arj=xarchiver.desktop
|
||||||
|
application/x-bzip=xarchiver.desktop
|
||||||
|
application/x-bzip-compressed-tar=xarchiver.desktop
|
||||||
|
application/x-gzip=xarchiver.desktop
|
||||||
|
application/x-rar=xarchiver.desktop
|
||||||
|
application/x-rar-compressed=xarchiver.desktop
|
||||||
|
application/x-tar=xarchiver.desktop
|
||||||
|
application/x-zip=xarchiver.desktop
|
||||||
|
application/x-zip-compressed=xarchiver.desktop
|
||||||
|
application/zip=xarchiver.desktop
|
||||||
|
application/x-7z-compressed=xarchiver.desktop
|
||||||
|
application/x-compressed-tar=xarchiver.desktop
|
||||||
|
application/x-bzip2=xarchiver.desktop
|
||||||
|
application/x-bzip2-compressed-tar=xarchiver.desktop
|
||||||
|
application/x-xz=xarchiver.desktop
|
||||||
|
application/x-xz-compressed-tar=xarchiver.desktop
|
||||||
|
application/x-cpio=xarchiver.desktop
|
||||||
|
application/x-cpio-compressed=xarchiver.desktop
|
||||||
|
application/x-lzop=xarchiver.desktop
|
||||||
|
text/calendar=xfcalendar.desktop
|
||||||
21
xfce-session-4.10-startxfce4.patch
Normal file
21
xfce-session-4.10-startxfce4.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
--- a/scripts/startxfce4.in
|
||||||
|
+++ a/scripts/startxfce4.in
|
||||||
|
@@ -108,13 +108,15 @@ then
|
||||||
|
SERVERRC="-- $SERVERRC"
|
||||||
|
fi
|
||||||
|
|
||||||
|
+tty_num=$(echo $(tty | grep -o '[0-9]'))
|
||||||
|
+
|
||||||
|
if [ -f $BASEDIR/xinitrc ]; then
|
||||||
|
- exec $prog $BASEDIR/xinitrc $CLIENTRC $SERVERRC
|
||||||
|
+ exec $prog $BASEDIR/xinitrc $CLIENTRC $SERVERRC vt${tty_num}
|
||||||
|
elif [ -f $HOME/.xfce4/xinitrc ]; then
|
||||||
|
mkdir -p $BASEDIR
|
||||||
|
cp $HOME/.xfce4/xinitrc $BASEDIR/
|
||||||
|
- exec $prog $BASEDIR/xinitrc $CLIENTRC $SERVERRC
|
||||||
|
+ exec $prog $BASEDIR/xinitrc $CLIENTRC $SERVERRC vt${tty_num}
|
||||||
|
else
|
||||||
|
- exec $prog @_sysconfdir_@/xdg/xfce4/xinitrc $CLIENTRC $SERVERRC
|
||||||
|
+ exec $prog @_sysconfdir_@/xdg/xfce4/xinitrc $CLIENTRC $SERVERRC vt${tty_num}
|
||||||
|
fi
|
||||||
|
|
||||||
BIN
xfce4-session-4.14.2.tar.bz2
Normal file
BIN
xfce4-session-4.14.2.tar.bz2
Normal file
Binary file not shown.
86
xfce4-session.spec
Normal file
86
xfce4-session.spec
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
%global xfceversion 4.14
|
||||||
|
Name: xfce4-session
|
||||||
|
Version: 4.14.2
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Session manager for the Xfce desktop environment.
|
||||||
|
License: GPLv2+
|
||||||
|
#Group: Development/Libraries
|
||||||
|
URL: http://www.xfce.org/
|
||||||
|
Source0: http://archive.xfce.org/src/xfce/%{name}/%{xfceversion}/%{name}-%{version}.tar.bz2
|
||||||
|
# Add a xfce-mimeapps.list to allow setting mime handlers for Xfce apps
|
||||||
|
Source1: xfce-mimeapps.list
|
||||||
|
# Patch startxfce4 to keep it on the same vty for logind
|
||||||
|
Patch1: xfce-session-4.10-startxfce4.patch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
#BuildArch: noarch
|
||||||
|
BuildRequires: dbus-devel >= 1.1.0
|
||||||
|
BuildRequires: dbus-glib-devel >= 0.84
|
||||||
|
BuildRequires: glib2-devel >= 2.24.0
|
||||||
|
BuildRequires: libSM-devel
|
||||||
|
BuildRequires: libwnck3-devel >= 3.14
|
||||||
|
BuildRequires: libxfce4ui-devel >= %{xfceversion}
|
||||||
|
BuildRequires: startup-notification-devel
|
||||||
|
BuildRequires: xfce4-panel-devel >= %{xfceversion}
|
||||||
|
BuildRequires: xfconf-devel >= %{xfceversion}
|
||||||
|
BuildRequires: xorg-x11-server-utils
|
||||||
|
# Build tools
|
||||||
|
BuildRequires: desktop-file-utils
|
||||||
|
BuildRequires: gettext
|
||||||
|
BuildRequires: intltool
|
||||||
|
BuildRequires: libxslt
|
||||||
|
#BuildRequires: libxml2
|
||||||
|
BuildRequires: systemd-devel >= 195
|
||||||
|
BuildRequires: polkit-devel
|
||||||
|
BuildRequires: libtool
|
||||||
|
Requires: xorg-x11-server-utils
|
||||||
|
Requires: xfce-polkit >= 0.2-2
|
||||||
|
Requires: systemd >= 195
|
||||||
|
Requires: exo
|
||||||
|
Suggests: imsettings-xfce
|
||||||
|
|
||||||
|
%description
|
||||||
|
Its task is to save the state of your desktop (opened applications and their location) and restore
|
||||||
|
it during a next startup. You can create several different sessions and choose one of them on startup.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-static
|
||||||
|
|
||||||
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
|
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
|
||||||
|
|
||||||
|
%find_lang %{name}
|
||||||
|
|
||||||
|
# install our xfce-mimeapps.list file to set mime handlers
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/applications
|
||||||
|
cp -a %{SOURCE1} %{buildroot}%{_datadir}/applications/xfce-mimeapps.list
|
||||||
|
|
||||||
|
%files -f %{name}.lang
|
||||||
|
%license COPYING
|
||||||
|
%doc AUTHORS BUGS ChangeLog NEWS README TODO
|
||||||
|
%doc doc/FAQ doc/NEWS.pre-4.3 doc/README.Kiosk
|
||||||
|
%{_sysconfdir}/xdg/xfce4
|
||||||
|
%{_sysconfdir}/xdg/autostart/xscreensaver.desktop
|
||||||
|
%{_bindir}/*
|
||||||
|
%dir %{_libdir}/xfce4/session/
|
||||||
|
%{_libdir}/xfce4/session/xfsm-shutdown-helper
|
||||||
|
%{_datadir}/applications/*.desktop
|
||||||
|
%{_datadir}/applications/xfce-mimeapps.list
|
||||||
|
%{_datadir}/xsessions/xfce.desktop
|
||||||
|
%{_datadir}/icons/hicolor/*/*/*
|
||||||
|
%{_datadir}/polkit-1/actions/org.xfce.session.policy
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Jul 12 Dillon Chen <dillon.chen@turbolinux.com.cn> - 4.14.2-1
|
||||||
|
- Init package
|
||||||
Loading…
x
Reference in New Issue
Block a user