Репозиторий Sisyphus
Последнее обновление: 14 апреля 2021 | Пакетов: 17839 | Посещений: 20714610
en ru br
Репозитории ALT

Группа :: Система/Интернационализация
Пакет: sdcv

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

Name: sdcv
Version: 0.5.3
Release: alt1

Summary: A console version of StarDict the international dictionary

Group: System/Internationalization
License: GPLv2
Url: https://dushistov.github.io/sdcv/

Source: %name-%version.tar
Patch0: %name-t_interactive.patch
Patch1: %name-t_list.patch
Patch2: %name-synonyms-bin-search.patch

BuildPreReq: rpm-macros-cmake
BuildRequires: gcc-c++
BuildRequires: cmake >= 3.5
BuildRequires: ctest >= 3.5
BuildRequires: jq
BuildRequires: zlib-devel
BuildRequires: libreadline-devel
BuildRequires: glib2-devel >= 2.36

%description
The console version of StarDict the cross-platform and international
dictionary.

%prep
%setup -q
# fix tests to run in isolated environment
%patch0 -p1
%patch1 -p1
# pick upstream patchset for massive binsearch speedup
%patch2 -p1
# make output readable on dark terminals
sed -i 's/;34m/;36m/' src/libwrapper.cpp

%build
%cmake \
   -DENABLE_NLS=YES \
   -DWITH_READLINE=YES \
   -DBUILD_TESTS=YES

%cmake_build VERBOSE=1
%cmake_build VERBOSE=1 lang

%install
%cmakeinstall_std
%find_lang %name

%check
pushd BUILD
ctest
popd

%files -f %name.lang
%_bindir/*
%_man1dir/*
%_mandir/uk/man1/*

%changelog

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

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