commit 72070deb167214be1cc06b414ec171a244f565883d20a97d13a621ddb6077ff4 Author: Adrian Schröter Date: Fri May 3 15:02:36 2024 +0200 Sync from SUSE:SLFO:Main libguess revision 5be54ae7ae39f7daa569ad713bb57730 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..e0706eb --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libguess1 diff --git a/libguess-1.2.tar.bz2 b/libguess-1.2.tar.bz2 new file mode 100644 index 0000000..c97bac1 --- /dev/null +++ b/libguess-1.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8019a16bdc7ca9d2efbdcc1429d48d033d5053d42e45fccea10abf98074f05f8 +size 79685 diff --git a/libguess.changes b/libguess.changes new file mode 100644 index 0000000..ffc7733 --- /dev/null +++ b/libguess.changes @@ -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 diff --git a/libguess.spec b/libguess.spec new file mode 100644 index 0000000..7d4ce59 --- /dev/null +++ b/libguess.spec @@ -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