SHA256
1
0
forked from pool/lunar-date

Accepting request 770249 from home:hillwood:branches:M17N

- Update version to 2.9.3 
  * Fix gir
  * Migrate to meson
  * Update the date to 2020
  * Use gio-2.32+
  * Update api version to 3.0
  * Update holiday
  * Support DBus
  * Use gtest
  * Fix heavenly stems and earthly branches, and horoscope

OBS-URL: https://build.opensuse.org/request/show/770249
OBS-URL: https://build.opensuse.org/package/show/M17N/lunar-date?expand=0&rev=2
This commit is contained in:
Hillwood Yang 2020-02-05 12:33:20 +00:00 committed by Git OBS Bridge
parent 09c7b43066
commit 71d5a43508
4 changed files with 77 additions and 58 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b2a572031cdd7b4ba679cae36f600221139369271c58351fa53498970a4f861
size 394161

3
lunar-date-2.9.3.tar.gz Normal file
View File

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

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Wed Feb 5 10:47:40 UTC 2020 - Hillwood Yang <hillwood@opensuse.org>
- Update version to 2.9.3
* Fix gir
* Migrate to meson
* Update the date to 2020
* Use gio-2.32+
* Update api version to 3.0
* Update holiday
* Support DBus
* Use gtest
* Fix heavenly stems and earthly branches, and horoscope
-------------------------------------------------------------------
Thu May 5 07:39:41 UTC 2011 - ailin.nemui@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package lunar-date
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@ -15,48 +15,43 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Summary: Chinese Lunar calendar library
Name: lunar-date
Version: 2.4.0
%define _libver 3_0
%define _libpkg lib%{name}-%{_libver}-1
%define _libver 2_0
%define _libpkg lib%{name}-%{_libver}-0
Release: 0
License: GPL-2.0+
Group: System/I18n/Chinese
Url: http://liblunar.googlecode.com/
Source: https://liblunar.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires: libgnome-devel gobject-introspection-devel intltool
%if %{defined fedora}
BuildRequires: python
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
Summary: Chinese Lunar calendar library
Name: lunar-date
Version: 2.9.3
Release: 0
License: GPL-2.0+
Group: System/I18n/Chinese
Url: https://github.com/yetist/lunar-date
Source: https://github.com/yetist/lunar-date/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: meson >= 0.50.0
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk-doc)
BuildRequires: pkgconfig(vapigen)
Recommends: %{name}-lang
%package -n %{_libpkg}
Summary: Chinese Lunar calendar library
Group: System/I18n/Chinese
%if %{defined fedora}
%else
Recommends: typelib-1_0-LunarDate-%{_libver}
%endif
Summary: Chinese Lunar calendar library
Group: System/I18n/Chinese
%package -n typelib-1_0-LunarDate-%{_libver}
Summary: Chinese Lunar calendar introspection bindings
Group: System/I18n/Chinese
Summary: Chinese Lunar calendar introspection bindings
Group: System/I18n/Chinese
%package devel
Summary: Chinese Lunar calendar library development files
Group: Development/Libraries/C and C++
Requires: %{_libpkg} = %{version}
Requires: typelib-1_0-LunarDate-%{_libver} = %{version}
Summary: Chinese Lunar calendar library development files
Group: Development/Libraries/C and C++
Requires: %{_libpkg} = %{version}
Requires: typelib-1_0-LunarDate-%{_libver} = %{version}
%package holiday
Summary: Chinese Holiday definition
Group: System/I18n/Chinese
BuildArch: noarch
%package doc
Summary: Chinese Lunar calendar library Documents
Group: Documentation/Other
BuildArch: noarch
%description
Library to support date conversion from/to chinese lunar calendar
@ -70,49 +65,59 @@ Introspection bindings for Chinese Lunar calendar for use in Gnome Shell
%description devel
Development files for Chinese Lunar calendar library
%description holiday
Holiday definition file for Chinese Lunar calendar library
%description doc
Documents for Chinese Lunar calendar library
%{lang_package}
%prep
%setup -q
%build
%configure
%__make
%meson -Denable_gtk_doc=true \
-Dwith_introspection=true \
-Dwith_vala=true \
-Denable_tests=true \
%{nil}
%meson_build
%install
%makeinstall
%find_lang %{name}
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%meson_install
%find_lang %{name} %{?no_lang_C}
%post -n %{_libpkg} -p /sbin/ldconfig
%postun -n %{_libpkg} -p /sbin/ldconfig
%files -n %{_libpkg} -f %{name}.lang
%files
%defattr(-,root,root,-)
%doc AUTHORS NEWS README.md
%license COPYING
%{_bindir}/lunar-date
%{_libexecdir}/%{name}
%{_datadir}/dbus-1/services/org.chinese.Lunar.Date.service
%files lang -f %{name}.lang
%files -n %{_libpkg}
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%doc AUTHORS COPYING ChangeLog ChangeLog.pre-2-2 NEWS README
%files -n typelib-1_0-LunarDate-%{_libver}
%defattr(-,root,root,-)
%{_libdir}/girepository-1.0/*.typelib
%files holiday
%files doc
%defattr(-,root,root,-)
%dir %{_datadir}/liblunar
%{_datadir}/liblunar/holiday.*_*
%{_datadir}/gtk-doc/html/%{name}
%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/liblunar-2.0
%{_includedir}/liblunar-2.0/%{name}
%{_includedir}/%{name}-*
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/*.gir
%{_datadir}/gtk-doc/html/%{name}
%{_libdir}/pkgconfig/*.pc
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/*
%changelog
%changelog