!1 initialize for kiran-calendar
From: @yuan__xing Reviewed-by: Signed-off-by:
This commit is contained in:
commit
87a3ae2ddd
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.src.rpm
|
||||||
43
0001-fix-Specify-the-library-file-search-path.patch
Normal file
43
0001-fix-Specify-the-library-file-search-path.patch
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
From ab8006d8c2688593ff094829f0b2092c05356c35 Mon Sep 17 00:00:00 2001
|
||||||
|
From: rpm-build <rpm-build>
|
||||||
|
Date: Wed, 12 May 2021 17:57:55 +0800
|
||||||
|
Subject: [PATCH] fix:Specify the library file search path
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
- 指定库文件搜索路径
|
||||||
|
---
|
||||||
|
src/meson.build | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/meson.build b/src/meson.build
|
||||||
|
index 08f9e3c..f3a8096 100644
|
||||||
|
--- a/src/meson.build
|
||||||
|
+++ b/src/meson.build
|
||||||
|
@@ -31,6 +31,7 @@ executable('kiran-calendar-test',
|
||||||
|
'common.c',
|
||||||
|
install : false,
|
||||||
|
c_args: '-g',
|
||||||
|
+ link_args : '-Wl,-rpath=/usr/lib64',
|
||||||
|
dependencies : [glib_dep, gobject_dep, gtk_dep, lundate_dep]
|
||||||
|
)
|
||||||
|
|
||||||
|
@@ -42,6 +43,7 @@ executable('kiran-clock-test',
|
||||||
|
'common.c',
|
||||||
|
install : false,
|
||||||
|
c_args: '-g',
|
||||||
|
+ link_args : '-Wl,-rpath=/usr/lib64',
|
||||||
|
dependencies : [glib_dep, gobject_dep, gtk_dep, lundate_dep]
|
||||||
|
)
|
||||||
|
|
||||||
|
@@ -53,5 +55,6 @@ executable('kiran-clock-applet',
|
||||||
|
'common.c',
|
||||||
|
install : true,
|
||||||
|
install_dir: libexecdir,
|
||||||
|
+ link_args : '-Wl,-rpath=/usr/lib64',
|
||||||
|
dependencies : [glib_dep, gobject_dep, gtk_dep, lundate_dep, libmatepanelapplet_dep]
|
||||||
|
)
|
||||||
|
--
|
||||||
|
2.18.1
|
||||||
|
|
||||||
BIN
kiran-calendar-1.0.0.tar.gz
Normal file
BIN
kiran-calendar-1.0.0.tar.gz
Normal file
Binary file not shown.
65
kiran-calendar.spec
Normal file
65
kiran-calendar.spec
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
Name: kiran-calendar
|
||||||
|
Summary: Kiran Desktop Calendar
|
||||||
|
Version: 1.0.0
|
||||||
|
|
||||||
|
%define _libver 3_0
|
||||||
|
|
||||||
|
Release: 1.0%{?dist}
|
||||||
|
License: GPL-2.0+
|
||||||
|
Group: System/I18n/Chinese
|
||||||
|
Url: http://liblunar.googlecode.com/
|
||||||
|
Source: https://liblunar.googlecode.com/files/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0001: 0001-fix-Specify-the-library-file-search-path.patch
|
||||||
|
|
||||||
|
BuildRequires: gobject-introspection-devel intltool
|
||||||
|
|
||||||
|
BuildRequires: meson
|
||||||
|
BuildRequires: git
|
||||||
|
BuildRequires: lunar-date-devel
|
||||||
|
BuildRequires: gtk3-devel
|
||||||
|
BuildRequires: mate-panel-devel
|
||||||
|
BuildRequires: lunar-date
|
||||||
|
|
||||||
|
Requires: lunar-date
|
||||||
|
Requires: gtk3
|
||||||
|
Requires: mate-panel
|
||||||
|
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
|
||||||
|
|
||||||
|
%description
|
||||||
|
Kiran Desktop Calendar Which Provides Chinese Lunar calendar
|
||||||
|
|
||||||
|
%prep
|
||||||
|
#%autosetup -S git
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
|
||||||
|
%meson
|
||||||
|
%meson_build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%meson_install
|
||||||
|
%find_lang %{name}
|
||||||
|
|
||||||
|
%clean
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post
|
||||||
|
|
||||||
|
%postun
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libexecdir}/kiran-clock-applet
|
||||||
|
%{_datadir}/dbus-1/services/org.mate.panel.applet.KiranClockAppletFactory.service
|
||||||
|
%{_datadir}/kiran-calendar
|
||||||
|
%{_datadir}/locale/zh_CN/LC_MESSAGES/kiran-calendar.mo
|
||||||
|
%{_datadir}/mate-panel/applets/org.mate.panel.KiranClockApplet.mate-panel-applet
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Aug 04 2020 wangxiaoqing <wangxiaoqing@kylinos.com.cn> 1.0.0
|
||||||
|
- KYOS-F: kiran-calendar, version 1.0.0 Related #27425
|
||||||
Loading…
x
Reference in New Issue
Block a user