diff --git a/xfce4-dict-0.8.3.tar.bz2 b/xfce4-dict-0.8.3.tar.bz2 new file mode 100644 index 0000000..67f7e6d Binary files /dev/null and b/xfce4-dict-0.8.3.tar.bz2 differ diff --git a/xfce4-dict.spec b/xfce4-dict.spec new file mode 100644 index 0000000..211c9f1 --- /dev/null +++ b/xfce4-dict.spec @@ -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 - 0.8.3-1 +- Init package