packages: libguess/libguess.spec (NEW) - initial

arekm arekm at pld-linux.org
Sun Nov 13 10:47:33 CET 2011


Author: arekm                        Date: Sun Nov 13 09:47:33 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/libguess:
   libguess.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/libguess/libguess.spec
diff -u /dev/null packages/libguess/libguess.spec:1.1
--- /dev/null	Sun Nov 13 10:47:33 2011
+++ packages/libguess/libguess.spec	Sun Nov 13 10:47:28 2011
@@ -0,0 +1,83 @@
+# $Revision$, $Date$
+Summary:	A high-speed character set detection library
+Name:		libguess
+Version:	1.0
+Release:	1
+License:	Other
+Group:		Applications/System
+Source0:	http://distfiles.atheme.org/%{name}-%{version}.tgz
+# Source0-md5:	89ef9296162a9b5baf32a321d9e367c0
+URL:		http://www.atheme.org/project/libguess/
+BuildRequires:	libmowgli-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+%package devel
+Summary:	Header files and development documentation for libguess
+Summary(pl.UTF-8):	Pliki nagłówkowe i dokumentacja do libguess
+Summary(pt_BR.UTF-8):	Arquivos de desenvolvimento para capabilities
+Group:		Development/Libraries
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+
+%description devel
+Header files and development documentation for libguess.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe i dokumentacja do libguess.
+
+%description devel -l pt_BR.UTF-8
+Arquivos de desenvolvimento para capabilities.
+
+%prep
+%setup -q
+
+%build
+%configure
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libguess.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libguess.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libguess.so
+%{_includedir}/libguess
+%{_pkgconfigdir}/libguess.pc
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/11/13 09:47:28  arekm
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list