Репозиторий Sisyphus
Последнее обновление: 18 июня 2018 | Пакетов: 18558 | Посещений: 11707168
en ru br
Репозитории ALT
S:1.24.1-alt1
5.1: 1.12.0-alt4
4.1: 1.12.3-alt0.M41.1
4.0: 1.10.0-alt1
3.0:
+backports:1.3.3-alt2.M30.1
www.altlinux.org/Changes

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

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

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

%define pre %nil

Name: recoll
Version: 1.24.1
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
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: python-devel
BuildRequires: zlib-devel

#{?_enable_qtgui:BuildRequires: libqt4-devel qt4-settings libXt-devel xorg-cf-files}

%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
%endif
%endif

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

%description
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.
%endif

%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 catdoc unrtf
Requires: python-module-pychm
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.

%prep
%setup -n %name-%version%pre
subst 's/openoffice/ooffice/' sampleconf/mimeview
subst '/^Categories=/s/=/=Qt;/' desktop/*.desktop
# updated translations
#cp -a %SOURCE1 %SOURCE2 qtgui/i18n/ # ru
#cp -a %SOURCE3 %SOURCE4 qtgui/i18n/ # uk

%build
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} \
#
%make_build
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}
done

%install
%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
done
sed -i 's/xterm/xvt/g' %buildroot%_datadir/%name/filters/*

# KDE+GNOME+whatever

%add_findreq_skiplist %_datadir/%name/filters/xdg-open

%files
%_bindir/*
%_libdir/%name
%_datadir/%name
%exclude %_datadir/%name/filters/rcllyx
%exclude %_datadir/%name/filters/*.py
%exclude %_datadir/%name/filters/*.zip
%if_enabled qtgui
%_datadir/appdata/*
%_iconsdir/hicolor/*/apps/*
%_pixmapsdir/*
%_desktopdir/*
%endif
%_man1dir/*
%_man5dir/*
%doc ChangeLog.* README

%files extras
%_datadir/%name/filters/rcllyx
%_datadir/%name/filters/*.py
%_datadir/%name/filters/*.zip

%files full

# TODO:

# - consider packaging python bits
#  ("small recoll integration and extension hacks")

%changelog

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

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