Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37561959
en ru br
ALT Linux repositórios
S:2.1.4-alt2

Group :: Sistema/Bibliotecas
RPM: libt1ha

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: t1ha-2.1.4-alt1.patch
Download


 .gear/rules     |  2 ++
 .gear/tags/list |  2 ++
 libt1ha.spec    | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 75 insertions(+)
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..387dfa4
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,2 @@
+tar: v@version@:. name=t1ha-@version@
+diff: v@version@:. . name=t1ha-@version@-@release@.patch
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..8475514
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1,2 @@
+8645727912bf6802ae68288fcdd067e54783758c v2.1.3
+783e66f68814726308e6f4957583d2babce52a29 v2.1.4
diff --git a/libt1ha.spec b/libt1ha.spec
new file mode 100644
index 0000000..f470b01
--- /dev/null
+++ b/libt1ha.spec
@@ -0,0 +1,71 @@
+%define _unpackaged_files_terminate_build 1
+
+Name: libt1ha
+Version: 2.1.4
+Release: alt1
+
+Summary: Fast Positive Hash
+License: Zlib
+Group: System/Libraries
+
+URL: https://github.com/leo-yuriev/t1ha
+Source: t1ha-%version.tar
+Patch: t1ha-%version-%release.patch
+
+BuildRequires: gcc-c++
+
+%package devel
+Summary: Fast Positive Hash
+Group: Development/C
+
+%description
+t1ha provides a set of fast non-cryptographic hash functions.
+%description devel
+t1ha provides a set of fast non-cryptographic hash functions.
+
+%prep
+%setup -q -n t1ha-%version
+%patch -p1
+
+%build
+%ifarch %arm
+# don't allow unaligned memory access on armh
+%add_optflags -DT1HA_SYS_UNALIGNED_ACCESS=0
+%endif
+# build libt1ha_pic.a
+make libt1ha.a CFLAGS_LIB='%optflags -O3 -DNDEBUG -g0 -ffunction-sections -fpic'
+mv libt1ha{,_pic}.a
+
+# check that object files can be linked without undefined symbols
+gcc -shared *.o -Wl,--no-undefined
+rm *.o
+
+# build libt1ha.a without -fpic
+make libt1ha.a CFLAGS_LIB='%optflags -O3 -DNDEBUG -g0 -ffunction-sections'
+
+%check
+make check CFLAGS_LIB='%optflags -O3 -DNDEBUG' CFLAGS_TEST='%optflags'
+
+%install
+mkdir -p %buildroot%_includedir %buildroot%_libdir
+install -m644 t1ha.h %buildroot%_includedir
+install -m644 libt1ha{,_pic}.a %buildroot%_libdir
+
+%files devel
+%doc README.md
+%_includedir/t1ha.h
+%_libdir/libt1ha*.a
+
+%changelog
+* Wed Mar 10 2021 Slava Aseev <ptrnine@altlinux.org> 2.1.4-alt1
+- Updated to upstream version 2.1.4.
+
+* Fri Sep 25 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 2.1.3-alt1
+- Updated to upstream version 2.1.3.
+
+* Fri Mar 30 2018 Alexey Tourbin <at@altlinux.ru> 2.0.1-alt2
+- t1ha.h: push hidden visibility for all symbols in libt1ha{,_pic}.a
+
+* Thu Mar 29 2018 Alexey Tourbin <at@altlinux.ru> 2.0.1-alt1
+- initial revision
+- built libt1ha{,_pic}.a, libt1ha.so barred
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009