make subpackages for gnome and kde session files (#520245)

epel9
Christoph Wickert 14 years ago committed by Miroslav Lichvar
parent eefbd95d50
commit f802b9280a

@ -73,6 +73,28 @@ Group: Development/Libraries
The %{name}-libs package contains shared libraries used by %{name}.
%package gnome
Summary: GNOME integration for %{name}
Group: User Interface/Desktops
Requires: %{name} = %{version}-%{release}
Requires: gnome-session
%description gnome
The %{name}-gnome package contains the files needed for using %{name} inside a
GNOME session.
%package kde
Summary: KDE integration for %{name}
Group: User Interface/Desktops
Requires: %{name} = %{version}-%{release}
Requires: kdebase-workspace
%description kde
The %{name}-kde package contains the files needed for using %{name} inside a
KDE session.
%prep
%setup -q
%patch0 -p1 -b .autostartdir
@ -123,19 +145,17 @@ rm -rf %{buildroot}
%doc data/*.xsd data/menu.xml doc/rc-mouse-focus.xml
%dir %{_sysconfdir}/xdg/%{name}/
%config(noreplace) %{_sysconfdir}/xdg/%{name}/*
%{_bindir}/gnome-panel-control
%{_bindir}/gdm-control
%{_bindir}/%{name}*
%{_bindir}/%{name}
%{_bindir}/%{name}-session
%{_bindir}/obxprop
%{_bindir}/setlayout
%{_datadir}/applications/*%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/themes/*/
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/gnome/wm-properties/
%{_datadir}/gnome-session/sessions/
%{_datadir}/xsessions/%{name}*.desktop
%{_mandir}/man1/%{name}*.1*
%{_datadir}/xsessions/%{name}.desktop
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}-session.1*
%{_mandir}/man1/obxprop.1*
%files libs
@ -151,6 +171,22 @@ rm -rf %{buildroot}
%{_libdir}/libobparser.so
%{_libdir}/pkgconfig/*.pc
%files gnome
%defattr(-,root,root,-)
%{_bindir}/gnome-panel-control
%{_bindir}/gdm-control
%{_bindir}/%{name}-gnome-session
%{_datadir}/xsessions/%{name}-gnome.desktop
%{_datadir}/gnome/wm-properties/
%{_datadir}/gnome-session/sessions/
%{_mandir}/man1/%{name}-gnome-session*.1*
%files kde
%defattr(-,root,root,-)
%{_bindir}/%{name}-kde-session
%{_datadir}/xsessions/%{name}-kde.desktop
%{_mandir}/man1/%{name}-kde-session*.1*
%post libs -p /sbin/ldconfig

Loading…
Cancel
Save