diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..77fcdcb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.src.rpm diff --git a/0001-fix-Specify-the-library-file-search-path.patch b/0001-fix-Specify-the-library-file-search-path.patch new file mode 100644 index 0000000..cde1aa7 --- /dev/null +++ b/0001-fix-Specify-the-library-file-search-path.patch @@ -0,0 +1,43 @@ +From ab8006d8c2688593ff094829f0b2092c05356c35 Mon Sep 17 00:00:00 2001 +From: 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 + diff --git a/kiran-calendar-1.0.0.tar.gz b/kiran-calendar-1.0.0.tar.gz new file mode 100644 index 0000000..6e9c3c6 Binary files /dev/null and b/kiran-calendar-1.0.0.tar.gz differ diff --git a/kiran-calendar.spec b/kiran-calendar.spec new file mode 100644 index 0000000..b36fb3c --- /dev/null +++ b/kiran-calendar.spec @@ -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 1.0.0 +- KYOS-F: kiran-calendar, version 1.0.0 Related #27425