Compare commits

...

10 Commits

Author SHA1 Message Date
Akira TAGOH 21aa4d71b4 Bump a release to make sure shipping uchardet-devel to CRB. 2023-05-19 10:25:14 +00:00
Akira TAGOH 91d2b55302 Add CI test.
Resolves: rhbz#2011170
2021-10-06 19:06:02 +09:00
Akira TAGOH af447de795 Add CI test.
Resolves: rhbz#2011170
2021-10-06 17:14:21 +09:00
Mohan Boddu 17b4e60c6e Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-08-10 01:10:27 +00:00
Akira TAGOH 67b67d589d Add gating.yaml 2021-08-02 17:07:36 +09:00
Akira TAGOH a3593010ee Bump a release
Resolves: rhbz#1963934
2021-05-27 16:13:51 +09:00
Akira TAGOH 4392f52c49 Correct License tag
Resolves: rhbz#1963934
2021-05-25 22:30:51 +09:00
Mohan Boddu dd6b1c9d1a - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-04-16 05:59:29 +00:00
DistroBaker a1979b4811 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/uchardet.git#78f4754e4eeb631906bc03240ad1d592a8fe46cd
2021-02-04 21:35:12 +00:00
Troy Dawson 95ccfe0e6e RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/uchardet#49ee88e8bb2657255de8c08b38bf9c4377c5f392
2020-10-15 13:08:07 -07:00
8 changed files with 196 additions and 0 deletions

2
.gitignore vendored
View File

@ -0,0 +1,2 @@
/uchardet-0.0.5.tar.gz
/uchardet-0.0.6.tar.xz

1
.uchardet.metadata Normal file
View File

@ -0,0 +1 @@
c04257ee7fb5ebbae144311d70b42c1d7efe41b9 uchardet-0.0.6.tar.xz

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (uchardet-0.0.6.tar.xz) = eceeadae060bf277e298d709856609dde32921271140dc1fb0a33c7b6e1381033fc2960d616ebbd82c92815936864d2c0743b1b5ea1b7d4a200df87df80d6de5

9
tests/basic/test.sh Executable file
View File

@ -0,0 +1,9 @@
#! /bin/sh
CWD=`dirname $0`
if test x`uchardet $CWD/../tests.yml` != 'xASCII'; then
exit 1
fi
if test x`uchardet $CWD/utf8.txt` != 'xUTF-8'; then
exit 1
fi

2
tests/basic/utf8.txt Normal file
View File

@ -0,0 +1,2 @@
日本語

11
tests/tests.yml Normal file
View File

@ -0,0 +1,11 @@
- hosts: localhost
become: yes
tags:
- classic
roles:
- role: standard-test-basic
required_packages:
- uchardet
tests:
- basic:
run: ./test.sh

163
uchardet.spec Normal file
View File

@ -0,0 +1,163 @@
%undefine __cmake_in_source_build
Name: uchardet
Version: 0.0.6
Release: 15%{?dist}.2
Summary: An encoding detector library ported from Mozilla
License: MPLv1.1 or GPLv2+ or LGPLv2+
URL: https://www.freedesktop.org/wiki/Software/%{name}
Source0: https://www.freedesktop.org/software/%{name}/releases/%{name}-%{version}.tar.xz
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake
%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 devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains headers and shared libraries
for developing tools for uchardet.
%prep
%autosetup
%build
%cmake \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
-DBUILD_STATIC=OFF
%cmake_build
%install
%cmake_install
%ldconfig_scriptlets
%check
pushd %{_vpath_builddir}
ctest -VV \
%ifarch %{ix86}
|| :
%else
;
%endif
popd
%files
%license COPYING
%doc AUTHORS
%{_bindir}/%{name}
%{_libdir}/lib%{name}.so.*
%{_mandir}/man1/%{name}.1*
%files devel
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Mon May 23 2022 Akira TAGOH <tagoh@redhat.com> - 0.0.6-15.2
- Bump a release to make sure shipping uchardet-devel to CRB.
Resolves: rhbz#2086260
* Wed Oct 6 2021 Akira TAGOH <tagoh@redhat.com> - 0.0.6-15.1
- Add CI test.
Resolves: rhbz#2011170
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.6-15
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Wed May 19 2021 Akira TAGOH <tagoh@redhat.com> - 0.0.6-14
- Correct License field.
See COPYING file for more details.
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.6-13
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.6-5
- Switch to %%ldconfig_scriptlets
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Dec 22 2016 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.6-1
- update version to 0.0.6
- changed upstream url
* Thu Jul 07 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.5-4
- Rebuild for f23 to fix i686
* Fri Feb 12 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.5-3
- Fixup summary in devel subpkg
* Mon Feb 08 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.0.5-2
- Fix building on i686 properly
* Sat Feb 6 2016 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.5-1
- update version to 0.0.5
* Fri Nov 20 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.3-1
- update version to 0.0.3
- add tests
* Thu Oct 1 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.1-5
- remove macros srcname and sum
* Mon Sep 21 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.1-4
- fix enable debug packages
- fix add flag verbose for make
- fix change in build
- fix remove in libs from files
- fix add change for libs in post/postun
- fix version on 0.0.1 from git
- added macros
* Mon Sep 21 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.0-3
- fix description and summary for libs and libs-devel
* Mon Sep 21 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.0-2
- fix version on 0.0.0
- fix license path
- remove static lib
- fix description
- fix number packages
* Mon Sep 21 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.0.0-1
- Initial package