xfce4-datetime-plugin/xfce4-datetime-plugin.spec
2020-07-14 19:10:41 +08:00

53 lines
1.4 KiB
RPMSpec

%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> - 1.1.0-1
- Init package