diff --git a/.gitignore b/.gitignore index e69de29..03c583f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pantheon-session-settings-0.9.2.tar.gz diff --git a/pantheon-session-settings.spec b/pantheon-session-settings.spec new file mode 100644 index 0000000..ed06c6b --- /dev/null +++ b/pantheon-session-settings.spec @@ -0,0 +1,123 @@ +Name: pantheon-session-settings +Summary: Pantheon session configuration files +Version: 0.9.2 +Release: 1%{?dist} +License: GPLv3 +URL: https://github.com/decathorpe/pantheon-session-settings + +Source0: https://github.com/decathorpe/%{name}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: coreutils + + +Requires: cerbere +Requires: gnome-session +Requires: gnome-settings-daemon + + +%description +Configuration files for the Pantheon desktop session. + + +%package overrides +Summary: Pantheon session default settings overrides +Requires: %{name} = %{version}-%{release} +Requires: google-roboto-mono-fonts +Requires: open-sans-fonts +%description overrides +Configuration files for the Pantheon desktop session. + +This subpackage contains system-wide overrides for Pantheon-specific +default settings. + + +%package wayland +Summary: Pantheon session configuration files for wayland +Requires: %{name} = %{version}-%{release} +%description wayland +Configuration files for the Pantheon desktop session. + +This subpackage contains the files for the (not yet supported) wayland +session. + + +%prep +%autosetup + + +%build +# Nothing to do + + +%install +# Copy / create autostart entries for the Pantheon session +mkdir -p %{buildroot}/%{_sysconfdir}/xdg/autostart + +rm autostart/cerbere.desktop +cp -p autostart/* %{buildroot}/%{_sysconfdir}/xdg/autostart/ +ln -s %{_datadir}/applications/cerbere.desktop %{buildroot}/%{_sysconfdir}/xdg/autostart/cerbere.desktop + +# Copy Pantheon gnome-session configuration files +mkdir -p %{buildroot}/%{_datadir}/gnome-session/sessions +cp -p gnome-session/* %{buildroot}/%{_datadir}/gnome-session/sessions/ + +# Copy list of default application overrides for Pantheon +mkdir -p %{buildroot}/%{_datadir}/pantheon/applications +cp -p applications/defaults.list %{buildroot}/%{_datadir}/pantheon/applications + +# Copy Pantheon wayland session configuration file +mkdir -p %{buildroot}/%{_datadir}/wayland-sessions +cp -p wayland-sessions/pantheon-wayland.desktop %{buildroot}/%{_datadir}/wayland-sessions/ + +# Copy Pantheon xsession configuration file +mkdir -p %{buildroot}/%{_datadir}/xsessions +cp -p xsessions/pantheon.desktop %{buildroot}/%{_datadir}/xsessions/ + +# Copy Overrides schema to appropriate location +mkdir -p %{buildroot}/%{_datadir}/glib-2.0/schemas +cp -p overrides/20-org.pantheon.desktop-interface.gschema.override %{buildroot}/%{_datadir}/glib-2.0/schemas/ + + +# These scriptlets are needed because .override files don't trigger the schema recompilation +%postun overrides +if [ $1 -eq 0 ] ; then + /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : +fi + +%posttrans overrides +/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : + + +%files +%license COPYING + +%config(noreplace) %{_sysconfdir}/xdg/autostart/*.desktop + +%{_datadir}/gnome-session/sessions/pantheon.session +%{_datadir}/pantheon/ +%{_datadir}/xsessions/pantheon.desktop + +%files overrides +%{_datadir}/glib-2.0/schemas/20-org.pantheon.desktop-interface.gschema.override + +%files wayland +%{_datadir}/gnome-session/sessions/pantheon-wayland.session +%{_datadir}/wayland-sessions/pantheon-wayland.desktop + + +%changelog +* Sat Jan 21 2017 Fabio Valentini - 0.9.2-1 +- Update to version 0.9.2. + +* Sat Jan 21 2017 Fabio Valentini +- Fix License tag to match upstream license. + +* Sat Jan 21 2017 Fabio Valentini - 0.9.1-1 +- Update to version 0.9.1. + +* Fri Jan 20 2017 Fabio Valentini - 0.9-1 +- Initial package. + + diff --git a/sources b/sources index e69de29..4989163 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (pantheon-session-settings-0.9.2.tar.gz) = 403671e6fcdeb6a9443090ff0e7367aebca9ea30dd5f79c2e6f89a41c0b7f52fdb4ca54fb5564cb4337445e2b84bd3c422134d29ea37f557b33e42ee3cda7cf5