Репозиторий Sisyphus
Последнее обновление: 24 мая 2020 | Пакетов: 17553 | Посещений: 18598135
en ru br
Репозитории ALT
5.1: 1.12.0-alt4
4.1: 1.12.3-alt0.M41.1
4.0: 1.10.0-alt1

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

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

%def_with inotify
%def_without fam
%def_enable qtgui
%def_enable webkit

%define pre %nil

Name: recoll
Version: 1.26.6
Release: alt1

Summary: A personal full text search package
License: %gpl2plus
Group: File tools

Url: http://www.recoll.org
Source0: %url/%name-%version%pre.tar.gz
Source1: recoll_ru.ts
Source2: recoll_ru.qm
Source3: recoll_uk.ts
Source4: recoll_uk.qm
# 1.24.1+ru
Source5: recoll-searchgui.desktop
Source100: recoll.watch

Packager: Michael Shigorin <mike at altlinux.org>

BuildRequires: gcc-c++ libaspell-devel ImageMagick
%{?_with_fam:BuildRequires: libfam-devel}
BuildRequires: libxapian-devel >= 0.9
BuildRequires: rpm-build-licenses
BuildRequires: perl-Image-ExifTool
BuildRequires: zlib-devel
BuildRequires: libaspell-devel
BuildRequires: libchm-devel
BuildRequires: libxslt-devel
BuildRequires: python3-devel
BuildRequires: python3-module-setuptools

%if_enabled qtgui
BuildRequires: qt5-base-devel qt5-x11extras-devel qt5-tools-devel libXt-devel xorg-cf-files
%if_enabled webkit
BuildRequires: qt5-webkit-devel

%add_findreq_skiplist %_datadir/%name/filters/*
%add_findreq_skiplist %_datadir/%name/examples/*

Recoll is a personal full text search package based on a very strong
backend (Xapian), for which it provides an easy to use, feature-rich,
easy administration interface.

See also recoll-extras package for somewhat more exotic stuff.
%if_disabled qtgui

Note that this package has been built without its usual GUI.

%package extras
Summary: More helper scripts for Recoll
Group: File tools
Requires: %name = %version
BuildArch: noarch

%description extras
This package contains additional helper scripts for recoll which might
need bulky additional required packages, manual setup, or both.

%package full
Summary: All the recommended stuff for Recoll
Group: File tools
BuildArch: noarch
Requires: %name-extras = %version
Requires: perl-Image-ExifTool
Requires: antiword unrtf wv
Requires: python-module-pychm python3-module-lxml
Requires: aspell aspell-ru-rk
Requires: xpdf-utils ghostscript-utils

%description full
This package contains just the requirements for additional packages
that might be of use with Recoll.

%package -n python3-module-%name
Summary: Python bindings for Recoll
Group: Development/Python
Obsoletes: python-module-%name

%description -n python3-module-%name
This package contains Python bindings for Recoll.

%setup -n %name-%version%pre

sed -i 's/openoffice/loffice/' sampleconf/mimeview
sed -i '/^Categories=/s/=/=Qt;/' desktop/*.desktop
# updated translations: ru
cp -a %SOURCE1 %SOURCE2 qtgui/i18n/
cp -a %SOURCE5 desktop/

export CXXFLAGS="%optflags" PATH="$PATH:%_libdir/qt5/bin"
export QMAKE=qmake-qt5
%configure \
%{subst_with inotify} \
%{subst_with fam} \
%{subst_enable qtgui} \
%{subst_enable webkit} \
gzip --best --keep --force ChangeLog
for s in 128 96 72 64 36 32 24 22 16; do
   convert -depth 8 -resize ${s}x$s desktop/%name{.xcf,-$s.png}

%makeinstall_std INSTALL_ROOT=%buildroot
for s in 128 96 72 64 36 32 24 22 16; do
   install -pDm644 desktop/%name-$s.png %buildroot%_iconsdir/hicolor/${s}x$s/apps/%name.png
sed -i 's/xterm/xvt/g' %buildroot%_datadir/%name/filters/*

# use /usr/bin/xdg-open

rm -f %buildroot%_datadir/%name/filters/xdg-open

%exclude %_datadir/%name/filters/rcllyx
%exclude %_datadir/%name/filters/*.py
%exclude %_datadir/%name/filters/*.zip
%if_enabled qtgui
%doc ChangeLog.* README

%files extras

%files full

%files -n python3-module-%name


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

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