Sync from SUSE:SLFO:Main enca revision 88804690c204c12a94164bff14b59ba7

This commit is contained in:
Adrian Schröter 2024-05-03 12:21:12 +02:00
commit c4bd5973ef
5 changed files with 276 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libenca0

BIN
enca-1.19.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

140
enca.changes Normal file
View File

@ -0,0 +1,140 @@
-------------------------------------------------------------------
Fri May 13 14:41:40 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
- URL -> https.
- Run spec-cleaner: mainly: package LICENSE as license, not doc.
-------------------------------------------------------------------
Wed Nov 8 19:43:45 UTC 2017 - aavindraa@gmail.com
- update to version 1.19
+ fix possible memory leak
+ make utf-8 detection work even on one character
- includes changes from 1.18
+ fix installation of devhelp documentation
- includes changes from 1.17
+ Fixed conversion of GB2312 encoding with iconv
+ Fixed iconv conversion on OSX
+ Fixed execution of external converters with ACLs
+ Documentation improvements
- cleanup with spec-cleaner
- use %make_install macro
- list binaries and man pages explicitly
-------------------------------------------------------------------
Sun Nov 8 21:32:53 UTC 2015 - p.drouand@gmail.com
- Update to version 1.16
* Fixed typo in Belarusian language name
* Added aliases for Chinese and Yugoslavian languages
-------------------------------------------------------------------
Thu Oct 3 07:36:42 UTC 2013 - mcihar@suse.cz
- Fixed upstream URL in spec file
-------------------------------------------------------------------
Mon Sep 30 08:19:48 UTC 2013 - mcihar@suse.cz
- update to 1.15:
+ Documentation improvement
+ Development moved to GitHub
+ Do not use deprecated autoconf macros
-------------------------------------------------------------------
Tue Mar 26 13:00:45 UTC 2013 - mmeister@suse.com
- Added url as source.
Please see http://en.opensuse.org/SourceUrls
-------------------------------------------------------------------
Sun Dec 16 02:58:43 UTC 2012 - lars@linux-schulserver.de
- update to 1.14:
+ Allow standard names for belarusian and slovenian languages,
thanks to Branislav Geržo for suggestion.
+ Reset strictness when check buffer less than file size,
thanks to Sam Liao.
+ Fixed typos in man page, thanks to A. Costa.
-------------------------------------------------------------------
Wed Feb 15 20:15:09 UTC 2012 - lars@linux-schulserver.de
- fix license to be in spdx format
-------------------------------------------------------------------
Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de
- Remove redundant/obsolete tags/sections from specfile
(cf. packaging guidelines)
- Use %_smp_mflags for parallel build
-------------------------------------------------------------------
Fri Apr 14 13:38:21 UTC 2011 - toddrme2178@gmail.com
- added 32bit compatibility libraries
- removed tests for obsolete openSUSE versions
-------------------------------------------------------------------
Wed May 5 08:12:33 UTC 2010 - mcihar@suse.cz
- change buildrequire to pkgconfig to build also on other distros
-------------------------------------------------------------------
Wed May 5 08:08:20 UTC 2010 - mcihar@suse.cz
- update to 1.13
-------------------------------------------------------------------
Sat Apr 24 09:18:42 UTC 2010 - coolo@novell.com
- buildreqire pkg-config to fix provides
-------------------------------------------------------------------
Thu Oct 29 14:49:10 CET 2009 - mcihar@suse.cz
- update to version 1.12
-------------------------------------------------------------------
Fri Sep 25 15:55:07 CEST 2009 - mcihar@suse.cz
- update to version 1.11
-------------------------------------------------------------------
Tue Aug 25 13:35:01 CEST 2009 - mcihar@suse.cz
- build without recode support
-------------------------------------------------------------------
Tue Aug 25 13:32:24 CEST 2009 - mcihar@suse.cz
- update to new upstream and version 1.10
-------------------------------------------------------------------
Tue Aug 11 19:14:16 CEST 2009 - sbrabec@suse.cz
- Split according to shared library packaging rules.
-------------------------------------------------------------------
Mon Sep 22 17:42:10 CEST 2008 - lars@linux-schulserver.de
- moved to Education base repository
-------------------------------------------------------------------
Mon Mar 17 19:16:45 CET 2008 - lars@linux-schulserver.de
- build for openSUSE-Education
- beautify specfile
- don't build static binaries
- Require glibc-devel for the devel package
- own %{_datadir}/gtk-doc/html to avoid gtk-doc dependency
-------------------------------------------------------------------
Sat Sep 1 2007 16:45:00 CET - michel.sylvan@gmail.com
- Strip debugging info into separate subpackage
-------------------------------------------------------------------
Wed Aug 29 2007 14:35:00 CET - michel.sylvan@gmail.com
- Initial package

109
enca.spec Normal file
View File

@ -0,0 +1,109 @@
#
# spec file for package enca
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: enca
Version: 1.19
Release: 0
Summary: Detects encoding of text files
License: GPL-2.0-only
Group: Productivity/Other
URL: https://cihar.com/software/enca/
Source: https://dl.cihar.com/%{name}/%{name}-%{version}.tar.xz
Source1: baselibs.conf
BuildRequires: pkgconfig
Requires: sed
%description
Enca is an Extremely Naive Charset Analyser. It detects character set and
encoding of text files and can also convert them to other encodings using
either a built-in converter or external libraries and tools like libiconv,
librecode, or cstocs.
Currently, it has support for Belarussian, Bulgarian, Croatian, Czech,
Estonian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, Ukrainian,
Chinese, and some multibyte encodings (mostly variants of Unicode)
independent on the language.
This package also contains shared Enca library other programs can make use of.
Install Enca if you need to cope with text files of dubious origin
and unknown encoding and convert them to some reasonable encoding.
%package -n libenca0
Summary: Header files and libraries for Enca development
Group: System/Libraries
%description -n libenca0
The enca-devel package contains the static libraries and header files
for writing programs using the Extremely Naive Charset Analyser library,
and its API documentation.
Install enca-devel if you are going to create applications using the Enca
library.
%package devel
Summary: Header files and libraries for Enca development
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libenca0 = %{version}
%description devel
The enca-devel package contains the static libraries and header files
for writing programs using the Extremely Naive Charset Analyser library,
and its API documentation.
Install enca-devel if you are going to create applications using the Enca
library.
%prep
%setup -q
%build
%configure --disable-static --without-librecode
%make_build
%install
%make_install
# the .la file is not needed without static libs
rm %{buildroot}/%{_libdir}/libenca.la
%post -n libenca0 -p /sbin/ldconfig
%postun -n libenca0 -p /sbin/ldconfig
%files
%license COPYING
%doc AUTHORS ChangeLog* FAQ README THANKS TODO
%{_bindir}/enca
%{_bindir}/enconv
%{_libexecdir}/enca
%{_mandir}/man1/enca.1%{?ext_man}
%{_mandir}/man1/enconv.1%{?ext_man}
%files -n libenca0
%{_libdir}/libenca.so.0*
%files devel
%{_datadir}/gtk-doc/html/*
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_includedir}/enca.h
%{_libdir}/libenca.so
%{_libdir}/pkgconfig/enca.pc
%changelog