From b8f9d534f434a6658bc1aeda67584043264064189948fe897934d641ee7f2382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 1 Aug 2011 15:01:09 +0000 Subject: [PATCH] Accepting request 77561 from home:computersalat:devel:libs should be here OBS-URL: https://build.opensuse.org/request/show/77561 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libguess?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + baselibs.conf | 1 + libguess-1.0.tar.bz2 | 3 ++ libguess.changes | 5 ++ libguess.spec | 108 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 141 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 baselibs.conf create mode 100644 libguess-1.0.tar.bz2 create mode 100644 libguess.changes create mode 100644 libguess.spec 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc 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.0.tar.bz2 b/libguess-1.0.tar.bz2 new file mode 100644 index 0000000..0400ecd --- /dev/null +++ b/libguess-1.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9c3ca9bbbdef360418df9065fae5c709b83f44d0d0774b6ac332a72abdb087f +size 76348 diff --git a/libguess.changes b/libguess.changes new file mode 100644 index 0000000..f6e48dc --- /dev/null +++ b/libguess.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +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..75ba35b --- /dev/null +++ b/libguess.spec @@ -0,0 +1,108 @@ +# +# spec file for package libguess +# +# 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 +Version: 1.0 +Release: 1 +License: Other +Group: System/Libraries +URL: http://www.atheme.org/project/libguess +Source0: %{name}-%{version}.tar.bz2 +Source1: baselibs.conf +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: libmowgli-devel >= 0.7.0 +BuildRequires: pkg-config +%define debug_package_requires %{libsoname} = %{version}-%{release} + +%description +A high-speed character set detection library + +libguess has two functions: + +libguess_determine_encoding(const char *inbuf, int length, const char *region); +This detects a character set. Returns an appropriate charset name that can be +passed to iconv_open(). Region is the name of the language or region that the +data is related to, e.g. 'Baltic' for the Baltic states, or 'Japanese' for +Japan. + +libguess_validate_utf8(const char *inbuf, int length); +This employs libguess's DFA-based character set validation rules to ensure that +a string is pure UTF-8. GLib's UTF-8 validation functions are broken, for +example. + +Just include libguess.h and link to libguess to get these functions in your +program. For your convenience, a pkg-config file is also supplied. +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: libmowgli-devel 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 -n %{name}-%{version} + +%build +%configure +%{__make} %{?_smp_mflags} + +%install +%makeinstall + +%post -n %{libsoname} -p /sbin/ldconfig +%postun -n %{libsoname} -p /sbin/ldconfig + +%clean +%{__rm} -rf %{buildroot} + +%files -n %{libsoname} +%defattr(-,root,root) +%{_libdir}/%{name}.so.* + +%files devel +%defattr(-,root,root) +%doc COPYING README +%{_libdir}/%{name}.so +%dir %{_includedir}/%{name} +%{_includedir}/%{name}/%{name}.h +%{_libdir}/pkgconfig/%{name}.pc + +%changelog