From c499f9f1ea7bb2701802426a1e97705d3627ea351a50d166d8492c23fb66e14b Mon Sep 17 00:00:00 2001 From: Hillwood Yang Date: Thu, 6 Feb 2020 08:38:39 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++ .gitignore | 1 + 70-lunar-calendar.sh | 9 +++ lunar-calendar-f91a880.tar.gz | 3 + lunar-calendar.changes | 4 + lunar-calendar.spec | 148 ++++++++++++++++++++++++++++++++++ 6 files changed, 188 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 70-lunar-calendar.sh create mode 100644 lunar-calendar-f91a880.tar.gz create mode 100644 lunar-calendar.changes create mode 100644 lunar-calendar.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/70-lunar-calendar.sh b/70-lunar-calendar.sh new file mode 100644 index 0000000..2846a0b --- /dev/null +++ b/70-lunar-calendar.sh @@ -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 diff --git a/lunar-calendar-f91a880.tar.gz b/lunar-calendar-f91a880.tar.gz new file mode 100644 index 0000000..e5a5fb1 --- /dev/null +++ b/lunar-calendar-f91a880.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f064e99666376116ff2cea3d6c1427eab88a95ddc9c4d980f6df0a8e0cd154c +size 59623 diff --git a/lunar-calendar.changes b/lunar-calendar.changes new file mode 100644 index 0000000..6a0ab72 --- /dev/null +++ b/lunar-calendar.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Feb 5 13:11:07 UTC 2020 - Hillwood Yang + +- Initial package for version 3.0.0+git20191124.f91a880 diff --git a/lunar-calendar.spec b/lunar-calendar.spec new file mode 100644 index 0000000..1fd2318 --- /dev/null +++ b/lunar-calendar.spec @@ -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