uchardet/uchardet.spec

110 lines
3.2 KiB
RPMSpec
Raw Normal View History

#
# 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
#
# 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/
#
%define major 0
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
Release: 0
Summary: Universal Charset Detection Library
License: MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later
Group: Productivity/Text/Utilities
URL: https://www.freedesktop.org/wiki/Software/uchardet/
Source0: https://www.freedesktop.org/software/%{name}/releases/%{name}-%{version}.tar.xz
Source1: baselibs.conf
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
%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} \
-DCMAKE_C_FLAGS="%{optflags}" \
-DCMAKE_CXX_FLAGS="%{optflags}" \
-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
%license COPYING
%doc AUTHORS
%{_bindir}/%{name}
%{_mandir}/man?/*
%files -n libuchardet%{major}
%{_libdir}/*.so.*
%files -n libuchardet-devel
%license COPYING
%doc AUTHORS
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog