代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/catfish 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: catfish
Version: 1.4.13
Release: 1
Summary: A handy file search tool
License: GPLv2+
#Group: Development/Libraries
URL: https://docs.xfce.org/apps/catfish/start
Source0: https://archive.xfce.org/src/apps/catfish/1.4/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: python3-devel
BuildRequires: python3-distutils-extra
BuildRequires: python3-setuptools
BuildRequires: %{_bindir}/appstream-util
BuildRequires: python3-gobject
BuildRequires: python3-pexpect
BuildRequires: python3-dbus
Requires: python3-gobject
Requires: python3-pexpect
Requires: python3-dbus
Requires: xdg-utils
# search engine
Requires: %{_bindir}/locate
Provides: %{name}-python3 = %{version}-%{release}
Provides: %{name}-common = %{version}-%{release}
%description
Catfish is a handy file searching tool. The interface is
intentionally lightweight and simple, using only GTK+3.
You can configure it to your needs by using several command line
options.
%prep
# Because %%build is not allowed to write files under %%buildroot,
# and calling setup.py --installed with target root under unpackaged directory
# causes some trouble, here once create temporaily directory
# and unpack source after that
%setup -q -T -c -a 0 %{name}-%{version}
pushd %{name}-%{version}*
# Fix up permissions...
find . -type f -print0 | xargs --null chmod 0644
chmod 0755 bin/%{name}
popd
%build
TOPDIR=$(pwd)
pushd %{name}-%{version}*
# Remove unneeded shebang
grep -rl "/usr/bin/env" . | \
xargs sed -i -e "\@/usr/bin/env[ ][ ]*python@d"
#%%py3_build
# separation of build / install --skip-build not supported
# (separation causes some error for creating additional files
# such as desktop file, also installation directory gets wrong)
mkdir -p ./_TMPINSTDIR/python3
%__python3 setup.py \
install \
--root ${TOPDIR}/_TMPINSTDIR/python3
popd
%install
cp -a %{name}-%{version}*/[A-Z]* .
#%%py3_install
cp -a _TMPINSTDIR/python3/* %{buildroot}
# Explicitly set GDK_BACKEND
mkdir %{buildroot}%{_libexecdir}
mv %{buildroot}%{_bindir}/catfish %{buildroot}%{_libexecdir}/
cat > %{buildroot}%{_bindir}/catfish <<EOF
#!/usr/bin/bash
export GDK_BACKEND=x11
exec %{_libexecdir}/catfish \$@
EOF
chmod 0755 %{buildroot}%{_bindir}/catfish
# for backwards compatibility:
ln -s catfish %{buildroot}%{_bindir}/catfish-py3
pushd %{name}-%{version}*
# Install man page manually
%{__mkdir_p} %{buildroot}%{_mandir}/man1
%{__install} -cpm 0644 ./%{name}.1 %{buildroot}%{_mandir}/man1/
popd
# Remove all unnecessary documentation
%{__rm} -rf %{buildroot}%{_datadir}/doc/
# Rename desktop files for now
pushd %{buildroot}%{_datadir}/applications/
mv *desktop %{name}.desktop
popd
%{find_lang} %{name}
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml
%files -f %{name}.lang
%doc AUTHORS
%doc ChangeLog
%doc README
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-py3
%{_libexecdir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%{_metainfodir}/%{name}.appdata.xml
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}_lib/
%{python3_sitelib}/%{name}-%{version}-py3*.egg-info
%changelog
* Tue Jul 28 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 1.4.13-1
- Init package
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。