183 lines
5.4 KiB
RPMSpec
183 lines
5.4 KiB
RPMSpec
#
|
|
# spec file for package budgie-desktop
|
|
#
|
|
# 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.2.9
|
|
Release: 0
|
|
License: GPL-2.0+ and LGPL-2.1
|
|
Summary: GTK3 Desktop Environment
|
|
Url: https://github.com/budgie-desktop/budgie-desktop
|
|
Group: System/GUI/Other
|
|
Source: %{name}-%{version}.tar.xz
|
|
%if 0%{?suse_version}
|
|
BuildRequires: pkg-config
|
|
%endif
|
|
BuildRequires: vala >= 0.28
|
|
BuildRequires: pkgconfig(accountsservice)
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
BuildRequires: pkgconfig(libmutter)
|
|
BuildRequires: pkgconfig(libwnck-3.0)
|
|
BuildRequires: pkgconfig(upower-glib)
|
|
BuildRequires: pkgconfig(libgnome-menu-3.0)
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(libpulse)
|
|
BuildRequires: pkgconfig(libpulse-mainloop-glib)
|
|
BuildRequires: pkgconfig(libpeas-1.0)
|
|
BuildRequires: pkgconfig(libpeas-gtk-1.0)
|
|
BuildRequires: pkgconfig(uuid)
|
|
BuildRequires: pkgconfig(ibus-1.0)
|
|
BuildRequires: pkgconfig(gsettings-desktop-schemas)
|
|
BuildRequires: pkgconfig(gnome-desktop-3.0)
|
|
BuildRequires: pkgconfig(polkit-gobject-1)
|
|
BuildRequires: pkgconfig(polkit-agent-1)
|
|
BuildRequires: pkgconfig(gnome-bluetooth-1.0)
|
|
BuildRequires: intltool
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: libtool
|
|
BuildRequires: gtk-doc
|
|
# Yes. Fedora wants a web browser
|
|
%if %{defined fedora}
|
|
BuildRequires: lynx
|
|
BuildRequires: docbook-utils
|
|
BuildRequires: docbook2X
|
|
%endif
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Requires: gnome-settings-daemon
|
|
Requires: gnome-session
|
|
|
|
%description
|
|
Budgie Desktop is the flagship desktop for the Solus Operating System.
|
|
|
|
%package -n typelib_1_0-Budgie-0_1
|
|
Summary: GTK3 Desktop Environment -- Introspection bindings
|
|
Group: System/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description -n typelib_1_0-Budgie-0_1
|
|
A simple GTK3 desktop experience. This package provides GObject Introspection
|
|
files required for developing Budgie Applets using interpreted languages, such
|
|
as Python GObject Introspection bindings.
|
|
|
|
%package devel
|
|
Summary: GTK3 Desktop Environment -- Development files
|
|
Group: Development/Libraries/GNOME
|
|
Requires: typelib_1_0-Budgie-0_1 = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
A simple GTK3 desktop experience. 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: GTK3 Desktop Environment -- Documentation files
|
|
Group: Documentation/HTML
|
|
|
|
%description docs
|
|
A simple GTK3 desktop experience -- Documentation files.
|
|
This package provides API Documentation for the Budgie Plugin API, in the
|
|
GTK-Doc HTML format.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --disable-static \
|
|
--enable-gtk-doc \
|
|
--enable-gtk-doc-html
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%{__make} install DESTDIR="%{buildroot}"
|
|
# GNOME Screensaver missing in openSUSE
|
|
rm %{buildroot}/%{_sysconfdir}/xdg/autostart/budgie-desktop-screensaver.desktop
|
|
|
|
%find_lang %{name}
|
|
|
|
%post
|
|
%if %{defined fedora}
|
|
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
%else
|
|
%glib2_gsettings_schema_post
|
|
%icon_theme_cache_post
|
|
%endif
|
|
/sbin/ldconfig
|
|
|
|
%postun
|
|
%if %{defined fedora}
|
|
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas
|
|
if [ $1 -eq 0 ] ; then
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
fi
|
|
%else
|
|
%glib2_gsettings_schema_post
|
|
%icon_theme_cache_postun
|
|
%endif
|
|
/sbin/ldconfig
|
|
|
|
|
|
%if %{defined fedora}
|
|
%posttrans
|
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
%endif
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%doc LICENSE LICENSE.LGPL2.1
|
|
%dir %{_datadir}/gnome-session
|
|
%dir %{_datadir}/gnome-session/sessions
|
|
%dir %{_libdir}/budgie-desktop
|
|
%dir %{_libdir}/budgie-desktop/plugins
|
|
%{_libdir}/lib*.so.*
|
|
%{_bindir}/*
|
|
%{_datadir}/xsessions/
|
|
%{_datadir}/glib-2.0/schemas/
|
|
%{_datadir}/applications/
|
|
%{_datadir}/gnome-session/sessions/budgie-desktop.session
|
|
%{_datadir}/icons/hicolor/scalable/actions/
|
|
%{_datadir}/icons/hicolor/scalable/apps/
|
|
%{_datadir}/icons/hicolor/scalable/status/
|
|
%{_libdir}/budgie-desktop/Gvc-1.0.typelib
|
|
%{_libdir}/budgie-desktop/plugins/
|
|
%{_sysconfdir}/xdg/autostart/
|
|
|
|
%files devel
|
|
%dir %{_includedir}/budgie-desktop
|
|
%exclude %{_libdir}/lib*.la
|
|
%exclude %{_libdir}/budgie-desktop/plugins/lib*.la
|
|
%{_includedir}/
|
|
%{_includedir}/budgie-desktop/
|
|
%{_libdir}/pkgconfig/
|
|
%{_libdir}/lib*.so
|
|
%{_datadir}/gir-1.0/
|
|
%{_datadir}/vala/vapi/
|
|
|
|
%files -n typelib_1_0-Budgie-0_1
|
|
%{_libdir}/girepository-1.0/
|
|
|
|
%files docs
|
|
%dir %{_datadir}/gtk-doc/html/budgie-desktop-%{version}/
|
|
%{_datadir}/gtk-doc/html/budgie-desktop-%{version}/
|
|
|
|
%changelog
|