File chinese-calendar.spec of Package chinese-calendar
#
# spec file for package chinese-calendar
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: chinese-calendar
Version: 1.0.4
Release: 0
Summary: Chinese Luna Calendar
License: GPL-3.0-only
Group: Productivity/Other
URL: https://launchpad.net/chinese-calendar
Source: %{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM marguerite@opensuse.org no-return-in-nonvoid-function
Patch0: no-return-in-nonvoid-function.patch
BuildRequires: libqt5-qtbase-devel
BuildRequires: libqt5-qtsvg-devel
BuildRequires: update-desktop-files
%description
Chinese calendar is a luna calendar originally from UbuntuKylin.
%prep
%setup -q %{name}-%{version}
%patch0 -p1
%build
qmake-qt5
make %{?_smp_mflags}
%install
make install INSTALL_ROOT=%{buildroot}
%suse_update_desktop_file %{name} Office Calendar
mkdir -p %{buildroot}%{_datadir}/licenses
%files
%dir %{_datadir}/licenses
%license COPYING
%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop
%{_bindir}/%{name}
%{_bindir}/%{name}-autostart
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/chinesecalendar-64.png
%changelog