File angrysearch.spec of Package angrysearch
Name: angrysearch
Version: 1.0.4
Release: 0
Summary: Mighty Desktop Search
License: GPL-2.0
Group: Productivity/File utilities
URL: https://github.com/DoTheEvo/ANGRYsearch
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
%if 0%{?suse_version}
BuildRequires: update-desktop-files
Requires: python3-qt5
%else
BuildRequires: desktop-file-utils
Requires: python3-pyqt5
%endif
Requires: python3-pyxdg
Requires: findutils
%description
ANGRYsearch is a lightning-fast file search tool for Linux that provides
instant results as you type. It is written in Python 3 and uses PyQt5
for its graphical interface.
Key features:
* Instant search results (as you type)
* Support for Regex and fuzzy search
* Two modes: Lite (fastest) and Full (with file dates/sizes)
* Customizable themes and icon support
* Integration with standard file managers
The tool crawls your drives and builds a database for near-instant
access to your files, making it a powerful alternative to the 'find'
or 'locate' commands.
%prep
%setup -q -n ANGRYsearch-%{version}
%build
%install
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp -r * %{buildroot}%{_datadir}/%{name}/
ln -s %{_datadir}/%{name}/angrysearch.py %{buildroot}%{_bindir}/angrysearch
chmod +x %{buildroot}%{_datadir}/%{name}/angrysearch.py
cp angrysearch.svg %{buildroot}%{_datadir}/pixmaps/
cp angrysearch.desktop %{buildroot}%{_datadir}/applications/
%if 0%{?suse_version}
%suse_update_desktop_file %{name}
%endif
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.svg
%changelog