Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37552866
en ru br
ALT Linux repos
S:1.19-alt2
5.0: 1.9-alt4
4.1: 1.9-alt2.0
4.0: 1.9-alt2.0
3.0: 1.7-alt1
+backports:1.9-alt0.M30.1

Other repositories

Group :: Text tools
RPM: enca

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable static

Name: enca
Version: 1.9
Release: alt2.0

Summary: A program that guesses encoding of text files
License: GPL
Group: Text tools

URL: http://trific.ath.cx/software/enca
Source: http://trific.ath.cx/Ftp/enca/enca-%version.tar.bz2

PreReq: sed, lib%name = %version-%release
BuildPreReq: bzip2-devel

# Automatically added by buildreq on Fri Apr 22 2005

BuildRequires: gcc-c++ libstdc++-devel perl-Encode perl-Unicode-Map recode xorg-x11-locales

Summary(ru_RU.KOI8-R): Программа, "угадывающая" кодировку текстовых файлов
Summary(uk_UA.KOI8-U): Програма, що "вгаду╓" кодування текстових файл╕в

%description
Enca (Extremely Naive Charset Analyser) is a simple utility guessing
encoding of text files and optionally converting them to some other
encoding using either a built-in convertor, a system conversion library
or an external conversion program.

Currently, it has support for Belarussian, Czech, Polish, Russian, Slovak,
Ukrainian, Bulgarian, Croatian, Estonian, Hungarian, Latvian, Lithuanian,
Slovene and some multibyte encodings (mostly variants of Unicode) independent
on language.

Install Enca if you need to cope with text files of dubious origin
and unknown encoding and convert them to some reasonable encoding.

%description -l ru_RU.KOI8-R
Enca (Extremely Naive Charset Analyser) - простая утилита, которая позволяет
"угадывать" кодировку текстового файла и, возможно, конвертировать его в
другую известную.

Сейчас поддерживаются белорусский, чешский, польский, русский, словацкий,
украинский, болгарский, хорватский, эстонский, венгерский, латвийский,
литовский, словацкий языки и несколько мультибайтных кодировок вне зависимости
от языка.

%description -l uk_UA.KOI8-U
Enca (Extremely Naive Charset Analyser) - проста утил╕та, що нада╓ можлив╕сть
"вгадувати" кодування тектового файлу та, можливо, конвертувати його у ╕нше
в╕доме.

На цей час п╕дтримуються б╕лоруська, чеська, польська, рос╕йська, словацька,
укра╖нська, болгарська, хорватська, естонська, угорська, латв╕йська, литовська,
словацька мови та дек╕лька мультибайтових кодувань незалежно в╕д мови.

%package -n lib%name
Summary: Shared Enca library
Group: System/Libraries

%description -n lib%name
This package contains shared Enca library which other programs may use.

%package -n lib%name-devel
Summary: Header files and libraries for Enca development
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
This package contains the development library and header files
for writing programs using the Extremely Naive Charset Analyser library,
and its API documentation.

Install this package if you are going to create applications using the Enca
library.

%if_enabled static
%package -n lib%name-devel-static
Summary: Static libraries for Enca development
Group: Development/C
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
This package contains the static library for building statically linked
programs using the Extremely Naive Charset Analyser library.
%endif

%prep
%setup -q

%build
unset CC CXX
%configure
# SMP-incompatible build.???
%make_build

%install
%makeinstall HTML_DIR=%buildroot%_docdir/%name-%version/html

%if_disabled static
%__rm -f %buildroot%_libdir/*.a
%endif

%files
%_bindir/*
%doc %_man1dir/*
%doc AUTHORS COPYING ChangeLog ChangeLog.prelib NEWS README THANKS TODO

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_libexecdir/%name/
%_libdir/pkgconfig/enca.pc
%doc README.devel INSTALL devel-docs/html

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin