Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37734858
en ru br
Репозитории ALT
S:4.18.0-alt1
5.1: 0.3.2-alt1
www.altlinux.org/Changes

Группа :: Работа с файлами
Пакет: catfish

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: catfish
Version: 0.3.2
Release: alt1
Summary: A handy file search tool

Group: File tools
License: GPLv2+
Url: http://software.twotoasts.de/index.php?/pages/catfish_summary.html
Source0: http://software.twotoasts.de/media/%name/%name-%version.tar.gz
Packager: Fr. Br. George <george at altlinux.ru>
BuildArch: noarch

BuildRequires: gettext
# search engine
Requires: %_bindir/locate
Requires: %_bindir/find
Requires: gnome-icon-theme

%define _python_req_method normal

%description
A handy file search tool using different backends which is
configurable via the command line.

This program acts as a frontend for different file search engines.
The interface is intentionally lightweight and simple. But it takes
configuration options from the command line.

# TODO invent something (e. g. %name-<engine> packages)

#package engines
#Summary: Metapackage to install all supported engines
#Group: Applications/File
#License: GPLv2+

#Requires: %name = %version-%release

#Requires: beagle
#Requires: doodle
#Requires: pinot
#Requires: strigi
#Requires: tracker

#%description engines

#This is a metapackage to install all engines supported by %name.

%prep
%setup -q -n %name-%version
# Fix up permissions...
chmod 0644 po/* [A-Z]* catfish*

%build
# Some configulation changes
#
# msgfmt is fixed.
# Linking is still broken...
sed -i.misc \
-e '/svg/s|install|install -m 644|' \
-e '/glade/s|install| install -m 644|' \
-e 's|install |install -p |' \
-e 's|pyc|py|' \
-e 's|^\([ \t]*\)ln |\1: ln |' \
-e 's|cp -rf|cp -prf|' \
Makefile.in

sed -i.byte \
-e 's|pyc|py|' \
%name.in

sed -i.engine \
-e 's|Nautilus|nautilus|' \
%name.py

# This configure accepts only the option --prefix

# and does not accept --libdir= option
./configure --prefix=%prefix

%install

#__make install DESTDIR=%buildroot

%makeinstall DESTDIR=%buildroot

install -D %name.desktop %buildroot/%_desktopdir/%name.desktop

# Remove all unnecessary documentation

rm -rf %buildroot%_datadir/doc/%name

# and.. manually link..

ln -s -f ../icons/hicolor/scalable/apps/%name.svg %buildroot%_datadir/%name/
ln -s -f ../locale/ %buildroot%_datadir/%name/

%find_lang %name

%files -f %name.lang
%doc AUTHORS ChangeLog COPYING README TODO

%_bindir/%name
%_desktopdir/%name.desktop
%dir %_datadir/%name
%_datadir/%name/*
%_datadir/icons/hicolor/scalable/apps/%name.svg

#files engines

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin