]>
Commit | Line | Data |
---|---|---|
dc871d9e JR |
1 | Summary: Versatile file search utility for the Xfce desktop |
2 | Name: catfish | |
3 | Version: 1.4.9 | |
f4715693 | 4 | Release: 2 |
dc871d9e JR |
5 | License: GPL v2 |
6 | Group: X11/Applications/Graphics | |
7 | Source0: http://archive.xfce.org/src/apps/catfish/1.4/%{name}-%{version}.tar.bz2 | |
8 | # Source0-md5: 829824fba33e86d03345bbc718e7b2d9 | |
9 | URL: https://docs.xfce.org/apps/catfish/ | |
10 | BuildRequires: python3-distutils-extra | |
11 | BuildRequires: python3-modules | |
12 | BuildRequires: python3-pexpect | |
13 | BuildRequires: python3-pygobject3 | |
14 | BuildRequires: python3-setuptools | |
15 | BuildRequires: rpm-pythonprov | |
16 | BuildRequires: rpmbuild(macros) >= 1.714 | |
17 | Requires: gtk-update-icon-cache | |
18 | Requires: hicolor-icon-theme | |
19 | Requires: mlocate | |
20 | Requires: python3-dbus | |
21 | Requires: python3-pexpect | |
22 | Requires: python3-pygobject3 | |
23 | Suggests: python3-zeitgeist | |
f4715693 | 24 | BuildArch: noarch |
dc871d9e JR |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | Catfish is a versatile file search utility for the Xfce desktop. | |
29 | Powered by Python and GTK, it is fast, flexible, and exceptional at | |
30 | finding files. | |
31 | ||
32 | %prep | |
33 | %setup -q | |
34 | ||
62604a9c JR |
35 | # fix #!/usr/bin/env python -> #!/usr/bin/python3: |
36 | find -name '*.py' | xargs %{__sed} -i -e '1s,^#!.*python$,#!%{__python3},' | |
37 | ||
dc871d9e JR |
38 | %build |
39 | %{__python3} setup.py build | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_localedir}} | |
44 | ||
45 | cp -a build/share/applications/org.xfce.Catfish.desktop $RPM_BUILD_ROOT%{_desktopdir}/ | |
46 | ||
47 | %{__python3} setup.py install \ | |
48 | --skip-build \ | |
49 | --prefix=%{_prefix} \ | |
f4715693 JR |
50 | --install-purelib=%{py3_sitescriptdir} \ |
51 | --install-platlib=%{py3_sitedir} \ | |
dc871d9e JR |
52 | --root=$RPM_BUILD_ROOT |
53 | ||
54 | cp -a build/mo/* $RPM_BUILD_ROOT%{_localedir}/ | |
55 | ||
56 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
57 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{hy_AM,hy} | |
58 | ||
59 | %find_lang %{name} | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %post | |
65 | %update_desktop_database_post | |
66 | %update_icon_cache hicolor | |
67 | ||
68 | %postun | |
69 | %update_desktop_database_postun | |
70 | %update_icon_cache hicolor | |
71 | ||
72 | %files -f %{name}.lang | |
73 | %defattr(644,root,root,755) | |
74 | %doc AUTHORS ChangeLog README | |
75 | %attr(755,root,root) %{_bindir}/%{name} | |
76 | %{_desktopdir}/org.xfce.Catfish.desktop | |
77 | %{_datadir}/metainfo/catfish.appdata.xml | |
78 | %{_iconsdir}/hicolor/*/*/* | |
f4715693 JR |
79 | %{py3_sitescriptdir}/catfish-1.4.9-py3.7.egg-info |
80 | %{py3_sitescriptdir}/catfish | |
81 | %{py3_sitescriptdir}/catfish_lib | |
dc871d9e JR |
82 | %{_datadir}/catfish |
83 | %{_mandir}/man1/catfish.1* |