Init package

This commit is contained in:
dillon chen 2020-07-14 19:44:51 +08:00
parent 8ffe313b29
commit 6b5f4e04c1
2 changed files with 77 additions and 0 deletions

BIN
xfce4-dict-0.8.3.tar.bz2 Normal file

Binary file not shown.

77
xfce4-dict.spec Normal file
View File

@ -0,0 +1,77 @@
%global xfceversion 4.14
Name: xfce4-dict
Version: 0.8.3
Release: 1
Summary: A Dictionary Client for the Xfce desktop environment
License: GPLv2+
#Group: Development/Libraries
URL: http://goodies.xfce.org/projects/applications/%{name}
Source0: http://archive.xfce.org/src/apps/%{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: desktop-file-utils
BuildRequires: gettext
BuildRequires: intltool
Requires: enchant, xdg-utils
%description
Xfce4 Dictionary is a client program to query different dictionaries. It can
query a Dict server (RFC 2229), open online dictionaries in a web browser or
verify the spelling of a word using enchant. This package contains the
stand-alone application, that can be used in different desktop environments
too.
%package plugin
Summary: Dictionary plugin for Xfce4 panel
Requires: %{name} = %{version}-%{release}
Requires: xfce4-panel >= %{xfceversion}
%description plugin
This package contains a stand-alone application called“xfce4-dict and
a panel plugin for the Xfce panel.
Xfce4-dict is a client program to query different dictionaries. It can
query a Dict server (RFC 2229), open online dictionaries in a web browser
or verify the spelling of a word using enchant.
%prep
%setup -q
%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}
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%ldconfig_scriptlets
%files -f %{name}.lang
%license COPYING
%doc AUTHORS ChangeLog README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/%{name}.1.gz
%files plugin
%{_libdir}/xfce4/panel/plugins/*.so
%{_datadir}/xfce4/panel/plugins/*.desktop
%changelog
* Tue Jul 14 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.8.3-1
- Init package