1
0

Accepting request 770464 from home:hillwood:branches:M17N

OBS-URL: https://build.opensuse.org/request/show/770464
OBS-URL: https://build.opensuse.org/package/show/M17N/lunar-calendar?expand=0&rev=1
This commit is contained in:
Hillwood Yang 2020-02-06 08:38:39 +00:00 committed by Git OBS Bridge
commit c499f9f1ea
6 changed files with 188 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

9
70-lunar-calendar.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
if [ -z "$GTK3_MODULES" ] ; then
GTK3_MODULES="lunar-calendar-module"
else
GTK3_MODULES="$GTK_MODULES:lunar-calendar-module"
fi
export GTK3_MODULES

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5f064e99666376116ff2cea3d6c1427eab88a95ddc9c4d980f6df0a8e0cd154c
size 59623

4
lunar-calendar.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Wed Feb 5 13:11:07 UTC 2020 - Hillwood Yang <hillwood@opensuse.org>
- Initial package for version 3.0.0+git20191124.f91a880

148
lunar-calendar.spec Normal file
View File

@ -0,0 +1,148 @@
#
# spec file for package lunar-calendar
#
# Copyright (c) 2020 SUSE LINUX Products 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/
#
%define commit f91a880e9dbf4ad28fbe9cda2cb899106c25ef97
%define shortcommit %(c=%{commit}; echo ${c:0:7})
%define sover 1
Summary: Chinese Lunar calendar
Name: lunar-calendar
Version: 3.0.0+git20191124.%{shortcommit}
Release: 0
License: GPL-2.0+
Group: System/I18n/Chinese
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
Source1: 70-lunar-calendar.sh
BuildRequires: fdupes
BuildRequires: meson
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk-doc)
BuildRequires: pkgconfig(vapigen)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(lunar-date-3.0)
%description
This is the traditional Chinese calendar application.
%package -n lib%{name}-3_0-%{sover}
Summary: The lunar-calendar libraries
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
%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
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
%description gtk3-module
This package contains a GTK+ 3 module of lunar-calendar.
%package -n typelib-1_0-LunarCalendar-3_0
Summary: Introspection bindings for lunar-calendar
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
%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++
%description devel
The lunar-calendar-devel package contains the header files and developer
docs for lunar-calendar.
%{lang_package}
%prep
%setup -q -n %{name}-%{commit}
%build
%meson -Denable_gtk_modules=true \
-Denable_gtk_doc=true \
-Dwith_introspection=true \
-Dwith_vala=true \
-Denable_tests=true \
%{nil}
%meson_build
%install
%meson_install
install -d %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/
install -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/
%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,-)
%doc AUTHORS NEWS README.md
%license COPYING
%files gtk3-module
%defattr(-,root,root,-)
%dir %{_sysconfdir}/X11/xinit
%dir %{_sysconfdir}/X11/xinit/xinitrc.d
%{_sysconfdir}/X11/xinit/xinitrc.d/70-lunar-calendar.sh
%{_libdir}/gtk-3.0/modules/liblunar-calendar-module.so
%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