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