!3 Init package

Merge pull request !3 from 陈棋德/master
This commit is contained in:
openeuler-ci-bot 2020-08-03 07:28:42 +08:00 committed by Gitee
commit af22db83f7
2 changed files with 52 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,52 @@
%global xfceversion 4.14
%global _hardened_build 1
Name: xfce4-datetime-plugin
Version: 0.8.0
Release: 1
Summary: Date/time plugin for the Xfce panel
License: GPLv2+
#Group: Development/Libraries
URL: http://goodies.xfce.org/projects/panel-plugins/%{name}
Source0: http://archive.xfce.org/src/panel-plugins/%{name}/0.8/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildArch: noarch
BuildRequires: gcc-c++
BuildRequires: libxfce4ui-devel >= %{xfceversion}
BuildRequires: xfce4-panel-devel >= %{xfceversion}
BuildRequires: gettext
BuildRequires: intltool
Requires: xfce4-panel >= %{xfceversion}
%description
This plugin shows the date and time in the panel, and a calendar appears when you left-click on it.
%prep
%autosetup
%build
%configure --disable-static
%make_build
%install
%make_install
# remove la file
find %{buildroot} -name '*.la' -exec rm -f {} ';'
# make sure debuginfo is generated properly
chmod -c +x %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so
%find_lang %{name}
%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS THANKS
%license COPYING
%{_libdir}/xfce4/panel/plugins/*.so
%{_datadir}/xfce4/panel/plugins/*.desktop
%changelog
* Tue Jul 14 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.8.0-1
- Init package