[packages/libchardet] - updated to 1.0.6

qboosh qboosh at pld-linux.org
Wed May 20 22:00:43 CEST 2026


commit f2320483b3ac7384a48a38abe1384339a4dcd910
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed May 20 22:00:44 2026 +0200

    - updated to 1.0.6

 libchardet.spec | 64 +++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 39 insertions(+), 25 deletions(-)
---
diff --git a/libchardet.spec b/libchardet.spec
index 4a3a53c..76da10f 100644
--- a/libchardet.spec
+++ b/libchardet.spec
@@ -1,26 +1,40 @@
 Summary:	Mozilla's universal character set detector
+Summary(pl.UTF-8):	Uniwersalny wykrywacz zestawu znaków Mozilli
 Name:		libchardet
-Version:	1.0.5
-Release:	3
-License:	MPL
-URL:		http://ftp.oops.org/pub/oops/libchardet/
-Source0:	https://github.com/Joungkyun/libchardet/archive/%{version}.tar.gz
-# Source0-md5:	218efba7ae9789202d40fe8133311729
+Version:	1.0.6
+Release:	1
+License:	MPL v1.1
+Group:		Libraries
+#Source0Download: https://github.com/Joungkyun/libchardet/releases
+Source0:	https://github.com/Joungkyun/libchardet/releases/download/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5:	0c5b054e20a1c6de1a9b59df77ae715d
 Patch0:		%{name}-1.0.4-pc.in.patch
-BuildRequires:	coreutils
+URL:		http://ftp.oops.org/pub/oops/libchardet/
 BuildRequires:	libstdc++-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 libchardet provides an interface to Mozilla's universal charset
 detector, which detects the charset used to encode data.
 
+%description -l pl.UTF-8
+libchardet udostępnia interfejs do uniwersalnego narzędzia Mozilli do
+wykrywania zestawu znaków, wykrywającego zestaw znaków użyty do
+kodowania danych.
+
 %package devel
-Summary:	Header and object files for development using libchardet
+Summary:	Header files for development using libchardet
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libchardet
+Group:		Development/Libraries
 Requires:	%{name}%{?_isa} = %{version}-%{release}
 
 %description devel
-The libchardet-devel package contains the header and object files
-necessary for developing programs which use the libchardet libraries.
+This package contains the header files necessary for developing
+programs which use the libchardet library.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
+wykorzystujących bibliotekę libchardet.
 
 %prep
 %setup -q
@@ -29,46 +43,46 @@ necessary for developing programs which use the libchardet libraries.
 # Fix rpmlint file-not-utf8
 cd man/en
 for i in detect_init.3 detect_obj_free.3 detect_obj_init.3 detect_reset.3 ; do
-  iconv --from=ISO-8859-1 --to=UTF-8 $i > $i.conv
-  mv $i.conv $i
+	iconv --from=ISO-8859-1 --to=UTF-8 $i > $i.conv
+	%{__mv} $i.conv $i
 done
-cd ../..
 
 %build
 %configure \
 	--disable-static \
-	--enable-shared \
+	--enable-shared
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-# remove all '*.la' files
-find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libchardet.la
 
 # remove LICENSE file from %%_docdir
-rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/{LICENSE,Changelog}
-
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/{LICENSE,Changelog}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc Changelog README.md
-%doc LICENSE
-%{_libdir}/%{name}.so.*
+%doc Changelog
+%{_libdir}/libchardet.so.*.*.*
+%ghost %{_libdir}/libchardet.so.1
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/chardet-config
-%{_libdir}/*.so
+%{_libdir}/libchardet.so
 %{_pkgconfigdir}/chardet.pc
 %{_includedir}/chardet
-%{_mandir}/man3/*
+%{_mandir}/man3/detect*.3*
 %lang(ko) %{_mandir}/ko/man3/detect*.3*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libchardet.git/commitdiff/f2320483b3ac7384a48a38abe1384339a4dcd910



More information about the pld-cvs-commit mailing list