File ayatana-indicator-datetime.spec of Package ayatana-indicator-datetime

#
# spec file for package ayatana-indicator-datetime
#
# Copyright (c) 2018-2023 SUSE LLC
#
# 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:           ayatana-indicator-datetime
Version:        23.10.0
Release:        0
Summary:        Ayatana Indicator providing clock and calendar
License:        GPL-3.0-only
Group:          System/GUI/Other
URL:            https://github.com/AyatanaIndicators/ayatana-indicator-datetime
Source0:        https://github.com/AyatanaIndicators/ayatana-indicator-datetime/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  ayatana-cmake-modules
BuildRequires:  cmake
BuildRequires:  gcc-c++
# For tests, which are disabled for now. Maybe package that correctly later.
#BuildRequires: gcovr
#BuildRequires: lcov
BuildRequires:  intltool
BuildRequires:  systemd-rpm-macros
BuildRequires:  pkgconfig
# Also tests.
#BuildRequires: pkgconfig(dbustest-1) >= 14.04.0
BuildRequires:  pkgconfig(libayatana-common) >= 0.9.3
BuildRequires:  pkgconfig(gio-2.0) >= 2.36
BuildRequires:  pkgconfig(glib-2.0) >= 2.36
BuildRequires:  pkgconfig(gstreamer-1.0) >= 1.2
BuildRequires:  pkgconfig(libaccounts-glib) >= 1.18
BuildRequires:  pkgconfig(libecal-2.0) >= 3.16
BuildRequires:  pkgconfig(libedataserver-1.2) >= 3.5
BuildRequires:  pkgconfig(libical) >= 0.48
BuildRequires:  pkgconfig(libnotify) >= 0.7.6
BuildRequires:  pkgconfig(messaging-menu) >= 12.10
BuildRequires:  pkgconfig(properties-cpp) >= 0.0.1
BuildRequires:  pkgconfig(systemd)
BuildRequires:  pkgconfig(uuid) >= 2.25
# For directory owning.
BuildRequires:  ayatana-indicator-common
BuildRequires:  accountsservice
# Change this to something Lomiri-specific once we want to support that, if
# ever.
#Requires:      gsettings-ubuntu-schemas
Recommends:     %{name}-lang
Recommends:     evolution-data-server
Recommends:     geoclue-recommended
Suggests:       gnome-control-center
Suggests:       ayatana-indicator-renderer
%glib2_gsettings_schema_requires
%systemd_requires

%description
This Ayatana Indicator provides a combined calendar, clock, alarm
and event management tool.

%lang_package

%prep
%setup -q

%build
%cmake \
%if 0%{?sle_version} <= 150200
  -DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
%endif
  -Denable_tests=OFF                        \
  -Denable_lomiri_features=OFF
%cmake_build

%install
%cmake_install

find %{buildroot} -type f -name "*.la" -delete -print

%find_lang %{name}

%post
%systemd_user_post %{name}.service

%preun
%systemd_user_preun %{name}.service

%postun
%systemd_user_postun %{name}.service

%files
%license COPYING
%doc AUTHORS INSTALL.md NEWS NEWS.Canonical README.md
%config %{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_libexecdir}/%{name}/
%{_datadir}/glib-2.0/schemas/org.ayatana.indicator.datetime.gschema.xml
%{_datadir}/ayatana/indicators/org.ayatana.indicator.datetime
%{_userunitdir}/%{name}.service

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by