2020-02-06 08:38:39 +00:00
|
|
|
#
|
|
|
|
# spec file for package lunar-calendar
|
|
|
|
#
|
2023-12-03 14:13:10 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2020-02-06 08:38:39 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2023-12-03 14:13:10 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-02-06 08:38:39 +00:00
|
|
|
#
|
2023-12-03 14:13:10 +00:00
|
|
|
|
|
|
|
|
2020-02-06 08:38:39 +00:00
|
|
|
%define sover 1
|
|
|
|
|
|
|
|
Summary: Chinese Lunar calendar
|
|
|
|
Name: lunar-calendar
|
2023-12-03 14:13:10 +00:00
|
|
|
Version: 3.0.1
|
2020-02-06 08:38:39 +00:00
|
|
|
Release: 0
|
2023-12-03 14:13:10 +00:00
|
|
|
License: GPL-2.0-or-later
|
2020-02-06 08:38:39 +00:00
|
|
|
Group: System/I18n/Chinese
|
2023-12-03 14:13:10 +00:00
|
|
|
URL: https://github.com/yetist/lunar-calendar
|
|
|
|
Source0: https://github.com/yetist/lunar-calendar/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
# Source0: https://github.com/yetist/lunar-calendar/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
2020-02-06 14:55:26 +00:00
|
|
|
Source1: %{name}.sh
|
|
|
|
Source2: %{name}.csh
|
2020-02-06 08:38:39 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
2023-12-03 14:13:10 +00:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
2020-02-06 08:38:39 +00:00
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
2023-12-03 14:13:10 +00:00
|
|
|
BuildRequires: pkgconfig(gtk-doc)
|
2020-02-06 08:38:39 +00:00
|
|
|
BuildRequires: pkgconfig(lunar-date-3.0)
|
2023-12-03 14:13:10 +00:00
|
|
|
BuildRequires: pkgconfig(vapigen)
|
2020-02-06 14:55:26 +00:00
|
|
|
Requires: lib%{name}-3_0-%{sover} = %{version}-%{release}
|
2020-02-06 08:38:39 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is the traditional Chinese calendar application.
|
|
|
|
|
|
|
|
%package -n lib%{name}-3_0-%{sover}
|
|
|
|
Summary: The lunar-calendar libraries
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n lib%{name}-3_0-%{sover}
|
|
|
|
This package contains the libraries for lunar-calendar.
|
|
|
|
|
|
|
|
%package gtk3-module
|
|
|
|
Summary: The lunar-calendar libraries -- GTK+ 3 Module
|
2020-02-06 14:55:26 +00:00
|
|
|
Group: System/I18n/Chinese
|
2020-02-06 08:38:39 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2020-02-06 14:55:26 +00:00
|
|
|
Provides: locale(patterns-gnome-gnome:zh_CN;zh_SG;zh_TW;zh_HK)
|
|
|
|
Provides: locale(patterns-mate-mate:zh_CN;zh_SG;zh_TW;zh_HK)
|
|
|
|
Provides: locale(patterns-xfce-xfce:zh_CN;zh_SG;zh_TW;zh_HK)
|
2020-02-06 08:38:39 +00:00
|
|
|
|
|
|
|
%description gtk3-module
|
2023-12-03 14:13:10 +00:00
|
|
|
This package contains a GTK+ 3 module of lunar-calendar. Calendar applications
|
2020-02-06 14:55:26 +00:00
|
|
|
base on GTK3 can display Chinese Lunar calendar by this module.
|
2020-02-06 08:38:39 +00:00
|
|
|
|
|
|
|
%package -n typelib-1_0-LunarCalendar-3_0
|
|
|
|
Summary: Introspection bindings for lunar-calendar
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2023-12-03 14:13:10 +00:00
|
|
|
Provides: locale(patterns-gnome-gnome:zh_CN;zh_SG;zh_TW;zh_HK)
|
|
|
|
Provides: locale(patterns-mate-mate:zh_CN;zh_SG;zh_TW;zh_HK)
|
|
|
|
Provides: locale(patterns-xfce-xfce:zh_CN;zh_SG;zh_TW;zh_HK)
|
2020-02-06 08:38:39 +00:00
|
|
|
|
|
|
|
%description -n typelib-1_0-LunarCalendar-3_0
|
|
|
|
This package contains the introspection bindings for the lunar-calendar library.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Lunar calendar Documents
|
|
|
|
Group: Documentation/Other
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documents for lunar-calendar
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development tools for ibus
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-02-06 14:55:26 +00:00
|
|
|
Requires: lib%{name}-3_0-%{sover} = %{version}-%{release}
|
2020-02-06 08:38:39 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The lunar-calendar-devel package contains the header files and developer
|
|
|
|
docs for lunar-calendar.
|
|
|
|
|
|
|
|
%{lang_package}
|
|
|
|
|
|
|
|
%prep
|
2023-12-03 14:13:10 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2020-02-06 08:38:39 +00:00
|
|
|
|
|
|
|
%build
|
2023-12-03 14:13:10 +00:00
|
|
|
%meson -Ddocs=true \
|
|
|
|
-Dintrospection=true \
|
|
|
|
-Dvapi=true \
|
|
|
|
-Dtests=true \
|
2020-02-06 08:38:39 +00:00
|
|
|
%{nil}
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
2020-02-06 14:55:26 +00:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/profile.d/
|
|
|
|
install -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/
|
|
|
|
install -m0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d/
|
2020-02-06 08:38:39 +00:00
|
|
|
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
%post -n lib%{name}-3_0-%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n lib%{name}-3_0-%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2020-02-06 14:55:26 +00:00
|
|
|
%doc NEWS README.md
|
2020-02-06 08:38:39 +00:00
|
|
|
%license COPYING
|
|
|
|
|
|
|
|
%files gtk3-module
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/gtk-3.0/modules/liblunar-calendar-module.so
|
2020-02-06 14:55:26 +00:00
|
|
|
%config %{_sysconfdir}/profile.d/%{name}.sh
|
|
|
|
%config %{_sysconfdir}/profile.d/%{name}.csh
|
2020-02-06 08:38:39 +00:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%files -n lib%{name}-3_0-%{sover}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/lib%{name}*.so.*
|
|
|
|
|
|
|
|
%files -n typelib-1_0-LunarCalendar-3_0
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/girepository-1.0/*.typelib
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_datadir}/gtk-doc/html/%{name}
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/%{name}-3.0
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{_libdir}/lib%{name}*.so
|
|
|
|
%dir %{_datadir}/vala/vapi
|
|
|
|
%{_datadir}/vala/vapi/*
|
|
|
|
%{_datadir}/gir-1.0/LunarCalendar-3.0.gir
|
|
|
|
|
|
|
|
%changelog
|