diff --git a/libguess-1.2.tar.bz2 b/libguess-1.2.tar.bz2 new file mode 100644 index 0000000..01cef49 Binary files /dev/null and b/libguess-1.2.tar.bz2 differ diff --git a/libguess.spec b/libguess.spec new file mode 100644 index 0000000..0c5d8df --- /dev/null +++ b/libguess.spec @@ -0,0 +1,73 @@ +Name: libguess +Version: 1.2 +Release: 1 + +Summary: High-speed character set detection library +Group: System Environment/Libraries +License: BSD +URL: http://rabbit.dereferenced.org/~nenolod/distfiles/ +Source0: http://rabbit.dereferenced.org/~nenolod/distfiles/%{name}-%{version}.tar.bz2 + +BuildRequires: pkgconfig + +%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 devel +Summary: Files needed for developing with %{name} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains the files that are needed when building +software that uses %{name}. + + +%prep +%setup -q + +sed -i '\,^.SILENT:,d' buildsys.mk.in + + +%build +%configure +make %{?_smp_mflags} + + +%install +make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p" + + +%check +cd src/tests/testbench +LD_LIBRARY_PATH=${RPM_BUILD_ROOT}%{_libdir} make + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%doc COPYING README +%{_libdir}/%{name}.so.1 +%{_libdir}/%{name}.so.1.* + +%files devel +%{_libdir}/%{name}.so +%dir %{_includedir}/%{name} +%{_includedir}/%{name}/%{name}.h +%{_libdir}/pkgconfig/%{name}.pc + + +%changelog +* Thu May 13 2021 He Rengui - 1.2-1 +- package init \ No newline at end of file