LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cinnamon-screensaver.spec of Package cinnamon-screensaver (Project X11:Cinnamon:Factory)

#
# spec file for package cinnamon-screensaver
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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:           cinnamon-screensaver
Version:        3.2.6
Release:        0
Summary:        Cinnamon screensaver and locker
License:        GPL-2.0+
Group:          System/GUI/Other
Url:            https://github.com/linuxmint/cinnamon-screensaver
Source:         https://github.com/linuxmint/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE cinnamon-screensaver-xscreensaver-path.patch boo#960165 sor.alexei@meowr.ru -- Correct xscreensaver hacks path.
Patch0:         %{name}-xscreensaver-path.patch
BuildRequires:  autoconf
BuildRequires:  autoconf-archive
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  python3 >= 3.4
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(gdk-x11-3.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(x11)
Requires:       iso-country-flags-png
Requires:       libcinnamon-desktop-data
Requires:       python3-cairo
Requires:       python3-gobject
Requires:       python3-gobject-cairo
Recommends:     cinnamon-translations
Recommends:     xscreensaver-data
Suggests:       xscreensaver-data-extra
%if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120200
Requires:       python3-gobject-Gdk
%endif
%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120200 && 0%{?is_opensuse})
Requires:       python3-xlib
%endif

%description
cinnamon-screensaver is a screensaver and locker that aims to have
simple, sane and secure defaults, and be well integrated with the
Cinnamon Desktop.

%prep
%setup -q
%patch0 -p1

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
  --disable-static          \
  --disable-schemas-compile
make %{?_smp_mflags} V=1

%install
%make_install

# Remove development files as they're not really there to be used.
rm -rf %{buildroot}%{_libdir}/libcscreensaver.so \
  %{buildroot}%{_libdir}/pkgconfig/cscreensaver.pc \
  %{buildroot}%{_datadir}/gir-1.0/CScreensaver-1.0.gir

find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}%{_datadir}/
%suse_update_desktop_file %{name}

%post
/sbin/ldconfig
%desktop_database_post
%icon_theme_cache_post

%postun
/sbin/ldconfig
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc AUTHORS COPYING* README debian/changelog
%{_bindir}/%{name}
%{_bindir}/%{name}-command
%{_datadir}/%{name}/
%{_libdir}/libcscreensaver.so*
%{_libdir}/girepository-1.0/CScreensaver-1.0.typelib
%{_datadir}/dbus-1/services/org.cinnamon.ScreenSaver.service
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/screensaver-*.*

%changelog