A new user interface for you! Read more...

File budgie-desktop.spec of Package budgie-desktop

#
# spec file for package budgie-desktop
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013-2016 Ikey Doherty <ikey@solus-project.com>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           budgie-desktop
Version:        10.4
Release:        0
Summary:        GTK3 Desktop Environment
License:        GPL-2.0+ AND LGPL-2.1
Group:          System/GUI/Other
Url:            https://solus-project.com/budgie/
Source:         https://github.com/budgie-desktop/budgie-desktop/releases/download/v%{version}/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM: temp patch for sandbox changes in Meson 0.43.0.
# Proper fix is in upstream master (gh#budgie-desktop/budgie-desktop#1194).
Patch0:         fix-meson-build.patch
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  meson >= 0.41.2
BuildRequires:  pkg-config
BuildRequires:  vala >= 0.28
BuildRequires:  pkgconfig(accountsservice)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gio-unix-2.0)
BuildRequires:  pkgconfig(gnome-bluetooth-1.0)
BuildRequires:  pkgconfig(gnome-desktop-3.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(ibus-1.0)
BuildRequires:  pkgconfig(libgnome-menu-3.0)
BuildRequires:  pkgconfig(libpeas-gtk-1.0)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libwnck-3.0)
%if 0%{?suse_version} > 1320
BuildRequires:  pkgconfig(libmutter-1)
%else
BuildRequires:  pkgconfig(libmutter)
%endif
BuildRequires:  sassc
BuildRequires:  pkgconfig(polkit-agent-1)
BuildRequires:  pkgconfig(polkit-gobject-1)
BuildRequires:  pkgconfig(upower-glib)
BuildRequires:  pkgconfig(uuid)

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       gnome-session
Requires:       gnome-settings-daemon

#Recommends:     gnome-screensaver
Recommends:     NetworkManager-applet
Recommends:     gnome-backgrounds
Recommends:     gnome-control-center

%description
Budgie Desktop is the flagship desktop for the Solus Operating System.

%package -n typelib_1_0-Budgie-0_1
Summary:        Introspection bindings for the Budgie Desktop
Group:          System/Libraries
Requires:       %{name} = %{version}-%{release}

%description -n typelib_1_0-Budgie-0_1
This package provides GObject Introspection files required for
developing Budgie Applets using interpreted languages, such as Python
GObject Introspection bindings.

%package devel
Summary:        Development files for the Budgie Desktop
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}-%{release}
Requires:       typelib_1_0-Budgie-0_1 = %{version}-%{release}

%description devel
This package provides development files required for software to be
able to use and link against the Budgie APIs, to create their own
applets for the Budgie Panel.

%package docs
Summary:        Documentation files for the Budgie Desktop
Group:          Documentation/HTML

%description docs
This package provides API Documentation for the Budgie Plugin API, in the
GTK-Doc HTML format.

%package -n libraven0
Summary:        Shared library for Raven
Group:          System/Libraries

%description -n libraven0
Budgie Desktop Notification Center.

%package -n libbudgietheme0
Summary:        Shared library for Budgie theming
Group:          System/Libraries

%description -n libbudgietheme0
Budgie theming engine shared library package.

%package -n libbudgie-plugin0
Summary:        Shared library for Budgie plugins
Group:          System/Libraries

%description -n libbudgie-plugin0
Shared library for budgie plugins to link against.

%prep
%setup -q
%patch0 -p1
cp -r src/gvc subprojects

%build
%meson
%meson_build

%install
export LANG=en_US.UTF-8
%meson_install

# GNOME Screensaver missing in openSUSE
rm %{buildroot}/%{_sysconfdir}/xdg/autostart/budgie-desktop-screensaver.desktop

%find_lang %{name}

%post
%glib2_gsettings_schema_post
%icon_theme_cache_post

%postun
%glib2_gsettings_schema_post
%icon_theme_cache_postun

%post   -n libraven0 -p /sbin/ldconfig
%postun -n libraven0 -p /sbin/ldconfig

%post   -n libbudgietheme0 -p /sbin/ldconfig
%postun -n libbudgietheme0 -p /sbin/ldconfig

%post   -n libbudgie-plugin0 -p /sbin/ldconfig
%postun -n libbudgie-plugin0 -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root)
%doc LICENSE LICENSE.LGPL2.1
%dir %{_datadir}/gnome-session
%dir %{_datadir}/gnome-session/sessions
%{_bindir}/budgie-*
%{_datadir}/applications/budgie-*.desktop
%{_datadir}/glib-2.0/schemas/com.solus-project.*.gschema.xml
%{_datadir}/gnome-session/sessions/budgie-desktop.session
%{_datadir}/icons/hicolor/scalable/*/*.svg
%{_datadir}/xsessions/budgie-desktop.desktop
%{_libdir}/budgie-desktop/
%{_sysconfdir}/xdg/autostart/budgie-desktop-nm-applet.desktop

%files -n libraven0
%defattr(-,root,root)
%{_libdir}/libraven.so.*

%files -n libbudgietheme0
%defattr(-,root,root)
%{_libdir}/libbudgietheme.so.*

%files -n libbudgie-plugin0
%defattr(-,root,root)
%{_libdir}/libbudgie-plugin.so.*

%files devel
%dir %{_includedir}/budgie-desktop
%{_includedir}/budgie-desktop/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%{_datadir}/gir-1.0/Budgie-1.0.gir
%{_datadir}/vala/vapi/budgie-1.0.*

%files -n typelib_1_0-Budgie-0_1
%{_libdir}/girepository-1.0/Budgie-1.0.typelib

%files docs
%{_datadir}/gtk-doc/html/budgie-desktop/

%changelog