2013-10-14 22:40:00 +02:00
|
|
|
#
|
|
|
|
# spec file for package uchardet
|
|
|
|
#
|
Accepting request 811778 from home:alois:branches:M17N
- Update to version 0.0.7
* New supports:
+ Croatian - ISO-8859-2, ISO-8859-13, ISO-8859-16, IBM852,
Windows-1250 and MAC-CENTRALEUROPE
+ Czech - Windows-1250, ISO-8859-2, IBM852 and
Mac-CentralEurope.
+ Estonian - ISO-8859-4, ISO-8859-13, ISO-8859-13,
Windows-1252 and Windows-1257.
+ Finnish - ISO-8859-1, ISO-8859-4, ISO-8859-9, ISO-8859-13,
ISO-8859-15 and WINDOWS-1252.
+ Irish Gaelic - ISO-8859-1, ISO-8859-9, ISO-8859-15 and
WINDOWS-1252.
+ Italian - ISO-8859-1, ISO-8859-3, ISO-8859-9, ISO-8859-15
and WINDOWS-1252.
+ Latvian - ISO-8859-4, ISO-8859-10 and ISO-8859-13
+ Lithuanian - ISO-8859-4, IISO-8859-10 and SO-8859-13
+ Maltese - ISO-8859-3.
+ Polish - ISO-8859-2, ISO-8859-13, ISO-8859-16,
Windows-1250, IBM852, MAC-CENTRALEUROPE.
+ Portuguese - ISO-8859-1, ISO-8859-9, ISO-8859-15 and
Windows-1252.
+ Romanian - ISO-8859-2, ISO-8859-16, Windows-1250 and
IBM852.
+ Slovak - Windows-1250, ISO-8859-2, IBM852 and
Mac-CentralEurope.
+ Slovene - ISO-8859-2, ISO-8859-16, Windows-1250, IBM852
and MAC-CENTRALEUROPE.
+ Swedish - ISO-8859-1, ISO-8859-4, ISO-8859-9, ISO-8859-15
and WINDOWS-1252.
* EUC-KR now returned as UHC: despite differences, mostly
upward compatible. Let's return UHC until separate detection
machines are implemented.
* uchardet CLI tool now supports the end-of-options -- option
to be able to process any file starting with a dash.
* uchardet_handle_data() API considers an empty string input
as successful processing to improve automatic detection from
random input sources.
* Repository code now requires C++1 standard.
* Several bugs fixed.
OBS-URL: https://build.opensuse.org/request/show/811778
OBS-URL: https://build.opensuse.org/package/show/M17N/uchardet?expand=0&rev=8
2020-06-05 17:09:12 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2013-10-14 22:40:00 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
Accepting request 811778 from home:alois:branches:M17N
- Update to version 0.0.7
* New supports:
+ Croatian - ISO-8859-2, ISO-8859-13, ISO-8859-16, IBM852,
Windows-1250 and MAC-CENTRALEUROPE
+ Czech - Windows-1250, ISO-8859-2, IBM852 and
Mac-CentralEurope.
+ Estonian - ISO-8859-4, ISO-8859-13, ISO-8859-13,
Windows-1252 and Windows-1257.
+ Finnish - ISO-8859-1, ISO-8859-4, ISO-8859-9, ISO-8859-13,
ISO-8859-15 and WINDOWS-1252.
+ Irish Gaelic - ISO-8859-1, ISO-8859-9, ISO-8859-15 and
WINDOWS-1252.
+ Italian - ISO-8859-1, ISO-8859-3, ISO-8859-9, ISO-8859-15
and WINDOWS-1252.
+ Latvian - ISO-8859-4, ISO-8859-10 and ISO-8859-13
+ Lithuanian - ISO-8859-4, IISO-8859-10 and SO-8859-13
+ Maltese - ISO-8859-3.
+ Polish - ISO-8859-2, ISO-8859-13, ISO-8859-16,
Windows-1250, IBM852, MAC-CENTRALEUROPE.
+ Portuguese - ISO-8859-1, ISO-8859-9, ISO-8859-15 and
Windows-1252.
+ Romanian - ISO-8859-2, ISO-8859-16, Windows-1250 and
IBM852.
+ Slovak - Windows-1250, ISO-8859-2, IBM852 and
Mac-CentralEurope.
+ Slovene - ISO-8859-2, ISO-8859-16, Windows-1250, IBM852
and MAC-CENTRALEUROPE.
+ Swedish - ISO-8859-1, ISO-8859-4, ISO-8859-9, ISO-8859-15
and WINDOWS-1252.
* EUC-KR now returned as UHC: despite differences, mostly
upward compatible. Let's return UHC until separate detection
machines are implemented.
* uchardet CLI tool now supports the end-of-options -- option
to be able to process any file starting with a dash.
* uchardet_handle_data() API considers an empty string input
as successful processing to improve automatic detection from
random input sources.
* Repository code now requires C++1 standard.
* Several bugs fixed.
OBS-URL: https://build.opensuse.org/request/show/811778
OBS-URL: https://build.opensuse.org/package/show/M17N/uchardet?expand=0&rev=8
2020-06-05 17:09:12 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-14 22:40:00 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-03-01 02:48:02 +01:00
|
|
|
%define major 0
|
2013-10-14 22:40:00 +02:00
|
|
|
Name: uchardet
|
Accepting request 811778 from home:alois:branches:M17N
- Update to version 0.0.7
* New supports:
+ Croatian - ISO-8859-2, ISO-8859-13, ISO-8859-16, IBM852,
Windows-1250 and MAC-CENTRALEUROPE
+ Czech - Windows-1250, ISO-8859-2, IBM852 and
Mac-CentralEurope.
+ Estonian - ISO-8859-4, ISO-8859-13, ISO-8859-13,
Windows-1252 and Windows-1257.
+ Finnish - ISO-8859-1, ISO-8859-4, ISO-8859-9, ISO-8859-13,
ISO-8859-15 and WINDOWS-1252.
+ Irish Gaelic - ISO-8859-1, ISO-8859-9, ISO-8859-15 and
WINDOWS-1252.
+ Italian - ISO-8859-1, ISO-8859-3, ISO-8859-9, ISO-8859-15
and WINDOWS-1252.
+ Latvian - ISO-8859-4, ISO-8859-10 and ISO-8859-13
+ Lithuanian - ISO-8859-4, IISO-8859-10 and SO-8859-13
+ Maltese - ISO-8859-3.
+ Polish - ISO-8859-2, ISO-8859-13, ISO-8859-16,
Windows-1250, IBM852, MAC-CENTRALEUROPE.
+ Portuguese - ISO-8859-1, ISO-8859-9, ISO-8859-15 and
Windows-1252.
+ Romanian - ISO-8859-2, ISO-8859-16, Windows-1250 and
IBM852.
+ Slovak - Windows-1250, ISO-8859-2, IBM852 and
Mac-CentralEurope.
+ Slovene - ISO-8859-2, ISO-8859-16, Windows-1250, IBM852
and MAC-CENTRALEUROPE.
+ Swedish - ISO-8859-1, ISO-8859-4, ISO-8859-9, ISO-8859-15
and WINDOWS-1252.
* EUC-KR now returned as UHC: despite differences, mostly
upward compatible. Let's return UHC until separate detection
machines are implemented.
* uchardet CLI tool now supports the end-of-options -- option
to be able to process any file starting with a dash.
* uchardet_handle_data() API considers an empty string input
as successful processing to improve automatic detection from
random input sources.
* Repository code now requires C++1 standard.
* Several bugs fixed.
OBS-URL: https://build.opensuse.org/request/show/811778
OBS-URL: https://build.opensuse.org/package/show/M17N/uchardet?expand=0&rev=8
2020-06-05 17:09:12 +02:00
|
|
|
Version: 0.0.7
|
2013-10-14 22:40:00 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Universal Charset Detection Library
|
2018-03-01 02:48:02 +01:00
|
|
|
License: MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later
|
2013-10-14 22:40:00 +02:00
|
|
|
Group: Productivity/Text/Utilities
|
2018-03-01 02:48:02 +01:00
|
|
|
URL: https://www.freedesktop.org/wiki/Software/uchardet/
|
2017-02-09 06:29:30 +01:00
|
|
|
Source0: https://www.freedesktop.org/software/%{name}/releases/%{name}-%{version}.tar.xz
|
2013-10-14 22:40:00 +02:00
|
|
|
Source1: baselibs.conf
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
2018-03-01 02:48:02 +01:00
|
|
|
BuildRequires: pkgconfig
|
2013-10-14 22:40:00 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
uchardet is a C language binding of the original C++ implementation of
|
|
|
|
the universal charset detection library by Mozilla.
|
|
|
|
|
|
|
|
uchardet is an encoding detector library, which takes a sequence of
|
|
|
|
bytes in an unknown character encoding without any additional
|
|
|
|
information, and attempts to determine the encoding of the text.
|
|
|
|
|
|
|
|
%package -n libuchardet%{major}
|
|
|
|
Summary: Universal Charset Detection Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libuchardet%{major}
|
|
|
|
uchardet is a C language binding of the original C++ implementation of
|
|
|
|
the universal charset detection library by Mozilla.
|
|
|
|
|
|
|
|
uchardet is an encoding detector library, which takes a sequence of
|
|
|
|
bytes in an unknown character encoding without any additional
|
|
|
|
information, and attempts to determine the encoding of the text.
|
|
|
|
|
|
|
|
This package contains the shared library.
|
|
|
|
|
|
|
|
%package -n libuchardet-devel
|
|
|
|
Summary: Universal Charset Detection Library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libuchardet%{major} = %{version}
|
|
|
|
|
|
|
|
%description -n libuchardet-devel
|
|
|
|
uchardet is a C language binding of the original C++ implementation of
|
|
|
|
the universal charset detection library by Mozilla.
|
|
|
|
|
|
|
|
uchardet is an encoding detector library, which takes a sequence of
|
|
|
|
bytes in an unknown character encoding without any additional
|
|
|
|
information, and attempts to determine the encoding of the text.
|
|
|
|
|
|
|
|
This package contains the development files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
2013-10-18 15:28:50 +02:00
|
|
|
-DCMAKE_C_FLAGS="%{optflags}" \
|
|
|
|
-DCMAKE_CXX_FLAGS="%{optflags}" \
|
2013-10-14 22:40:00 +02:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=%{_libdir}
|
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd build
|
|
|
|
%make_install
|
|
|
|
popd
|
|
|
|
rm -f %{buildroot}%{_libdir}/libuchardet.a
|
|
|
|
|
|
|
|
%post -n libuchardet%{major} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libuchardet%{major} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2018-03-01 02:48:02 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS
|
2013-10-14 22:40:00 +02:00
|
|
|
%{_bindir}/%{name}
|
2018-03-01 02:48:02 +01:00
|
|
|
%{_mandir}/man?/*
|
2013-10-14 22:40:00 +02:00
|
|
|
|
|
|
|
%files -n libuchardet%{major}
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files -n libuchardet-devel
|
2018-03-01 02:48:02 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS
|
2013-10-14 22:40:00 +02:00
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|