Sync from SUSE:SLFO:Main libguess revision 5be54ae7ae39f7daa569ad713bb57730

This commit is contained in:
Adrian Schröter 2024-05-03 15:02:36 +02:00
commit 72070deb16
5 changed files with 162 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 @@
libguess1

BIN
libguess-1.2.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

40
libguess.changes Normal file
View File

@ -0,0 +1,40 @@
-------------------------------------------------------------------
Tue Feb 10 13:40:57 UTC 2015 - chris@computersalat.de
- readd deleted Copyright
- fix header
-------------------------------------------------------------------
Mon Feb 9 13:20:33 UTC 2015 - sor.alexei@meowr.ru
- Update to 1.2:
* Remove mowgli dependency, deprecate libguess_init().
* Remove broken links to jira.atheme.org.
* Expose libguess_init().
* Define m4 macro directory in configure.ac.
* Switch to libmowgli-2.
- Remove libguess-1.1-libmowgli.h-path.patch: fixed upstream.
- Make description shorter.
-------------------------------------------------------------------
Mon Jun 24 23:46:46 UTC 2013 - i@marguerite.su
- add patch: libguess-1.1-libmowgli.h-path.patch
* fix libmowgli/mowgli.h path
- OSI compatible license
-------------------------------------------------------------------
Wed May 9 12:37:41 UTC 2012 - chris@computersalat.de
- update to version 1.1
- see http://git.atheme.org/libguess/log/ for more info
-------------------------------------------------------------------
Tue Jan 31 17:11:16 UTC 2012 - jengelh@medozas.de
- Remove redundant tags/sections per specfile guideline suggestions
-------------------------------------------------------------------
Sat Jul 30 23:17:34 UTC 2011 - chris@computersalat.de
- initial pkg 1.0

95
libguess.spec Normal file
View File

@ -0,0 +1,95 @@
#
# spec file for package libguess
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Scorpio IT, Deidesheim, Germany
#
# 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 http://bugs.opensuse.org/
#
Name: libguess
%define libsoname %{name}1
Summary: A high-speed character set detection library
License: BSD-3-Clause
Group: System/Libraries
Version: 1.2
Release: 0
Url: https://github.com/kaniini/libguess
Source: http://rabbit.dereferenced.org/~nenolod/distfiles/%{name}-%{version}.tar.bz2
Source1: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libmowgli2-devel >= 2.0.0
BuildRequires: pkg-config
%description
libguess employs discrete-finite automata to deduce the character
set of the input buffer. The advantage of this is that all
character sets can be checked in parallel, and quickly. Right now,
libguess passes a byte to each DFA on the same pass, meaning that
the winning character set can be deduced as efficiently as possible.
libguess is fully reentrant, using only local stack memory for DFA
operations.
%package -n %{libsoname}
Summary: Shared library for libguess
Group: System/Libraries
%description -n %{libsoname}
A high-speed character set detection library
This package contains the shared libguess library.
%package devel
Summary: Development package for libguess
Group: Development/Libraries/C and C++
Requires: %{libsoname} = %{version}
Requires: libmowgli2-devel >= 2.0.0
Requires: pkg-config
%description devel
A high-speed character set detection library
This package contains the files needed to compile programs that use the
libguess library.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%make_install
# Fatal error: "autoconf.h": No such file or directory in librcc build.
install -Dm 0644 src/%{name}/autoconf.h %{buildroot}%{_includedir}/%{name}/autoconf.h
%post -n %{libsoname} -p /sbin/ldconfig
%postun -n %{libsoname} -p /sbin/ldconfig
%files -n %{libsoname}
%defattr(-,root,root)
%{_libdir}/%{name}.so.*
%files devel
%defattr(-,root,root)
%doc COPYING README
%{_libdir}/%{name}.so
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%changelog