[packages/gf-complete: 1/2] - new

baggins baggins at pld-linux.org
Tue Jan 7 22:41:44 CET 2025


commit 9e1456441960f2c200b862513ede98571f8e7300
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Jan 7 23:37:20 2025 +0100

    - new

 gf-complete.spec | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 opt.patch        |  63 +++++++++++++++++++++++++++++++
 2 files changed, 175 insertions(+)
---
diff --git a/gf-complete.spec b/gf-complete.spec
new file mode 100644
index 0000000..a2a61a4
--- /dev/null
+++ b/gf-complete.spec
@@ -0,0 +1,112 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static libraries
+#
+
+%define		gitref	fa54a467
+
+Summary:	A Comprehensive Open Source Library for Galois Field Arithmetic
+Name:		gf-complete
+Version:	1.03
+Release:	0.1
+License:	BSD
+Group:		Libraries
+Source0:	https://git.sr.ht/~thestr4ng3r/gf-complete/archive/%{gitref}.tar.gz#/%{name}-%{version}.tar.gz
+# Source0-md5:	c60da1b2406225dea63bb9efd7400237
+Patch0:		opt.patch
+URL:		https://web.eecs.utk.edu/~jplank/plank/www/software.html
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	intltool
+BuildRequires:	libtool
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A Comprehensive Open Source Library for Galois Field Arithmetic.
+
+%package tools
+Summary:	Galois Field Arithmetic calculations tools
+Summary(pl.UTF-8):	Wspólne pliki biblioteki %{name}
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description tools
+Galois Field Arithmetic calculations tools.
+
+%package devel
+Summary:	Header files for %{name} library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name} library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki %{name}.
+
+%package static
+Summary:	Static %{name} library
+Summary(pl.UTF-8):	Statyczna biblioteka %{name}
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static %{name} library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka %{name}.
+
+%prep
+%setup -q -n %{name}-master
+%patch -P 0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	%{!?with_static_libs:--disable-static}
+%{__make}
+
+%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)
+%doc License.txt README
+%attr(755,root,root) %{_libdir}/libgf_complete.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgf_complete.so.1
+
+%files tools
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/gf_add
+%attr(755,root,root) %{_bindir}/gf_div
+%attr(755,root,root) %{_bindir}/gf_inline_time
+%attr(755,root,root) %{_bindir}/gf_methods
+%attr(755,root,root) %{_bindir}/gf_mult
+%attr(755,root,root) %{_bindir}/gf_poly
+%attr(755,root,root) %{_bindir}/gf_time
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgf_complete.so
+%{_libdir}/libgf_complete.la
+%{_includedir}/gf_*.h
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libgf_complete.a
+%endif
diff --git a/opt.patch b/opt.patch
new file mode 100644
index 0000000..4280334
--- /dev/null
+++ b/opt.patch
@@ -0,0 +1,63 @@
+--- gf-complete-master/configure.ac~	2019-08-19 13:28:51.000000000 +0200
++++ gf-complete-master/configure.ac	2025-01-07 23:19:41.886663985 +0100
+@@ -3,9 +3,6 @@
+ # FIXME - add project url as the last argument
+ AC_INIT(gf-complete, 1.0)
+ 
+-# Override default CFLAGS
+-: ${CFLAGS="-Wall -Wpointer-arith -O3 -g"}
+-
+ AC_PREREQ([2.61])
+ 
+ AM_INIT_AUTOMAKE([no-dependencies foreign parallel-tests])
+--- gf-complete-master/src/Makefile.am~	2019-08-19 13:28:51.000000000 +0200
++++ gf-complete-master/src/Makefile.am	2025-01-07 23:22:27.086664066 +0100
+@@ -11,13 +11,13 @@
+ # with SIMD_FLAGS, this static library will get linked into gf_complete.so
+ noinst_LTLIBRARIES = libgf_util.la
+ libgf_util_la_SOURCES = gf_method.c
+-libgf_util_la_CFLAGS = -O3 -fPIC -Wsign-compare
++libgf_util_la_CFLAGS = -fPIC -Wsign-compare
+ 
+ # we narrowly use SIMD_FLAGS for code that needs it
+ lib_LTLIBRARIES = libgf_complete.la
+ libgf_complete_la_SOURCES = gf.c gf_wgen.c gf_w4.c gf_w8.c gf_w16.c gf_w32.c \
+           gf_w64.c gf_w128.c gf_rand.c gf_general.c gf_cpu.c
+-libgf_complete_la_CFLAGS = -O3 $(SIMD_FLAGS) -fPIC -Wsign-compare
++libgf_complete_la_CFLAGS = $(SIMD_FLAGS) -fPIC -Wsign-compare
+ libgf_complete_la_LIBADD = libgf_util.la
+ 
+ if HAVE_NEON
+--- gf-complete-master/tools/Makefile.am~	2019-08-19 13:28:51.000000000 +0200
++++ gf-complete-master/tools/Makefile.am	2025-01-07 23:23:10.876664081 +0100
+@@ -1,7 +1,7 @@
+ # GF-Complete 'tools' AM file
+ 
+ AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
+-AM_CFLAGS = -O3 -fPIC
++AM_CFLAGS = -fPIC
+ 
+ bin_PROGRAMS = gf_mult gf_div gf_add gf_time gf_methods gf_poly gf_inline_time
+ 
+--- gf-complete-master/test/Makefile.am~	2019-08-19 13:28:51.000000000 +0200
++++ gf-complete-master/test/Makefile.am	2025-01-07 23:23:32.843330753 +0100
+@@ -1,7 +1,7 @@
+ # GF-Complete 'test' AM file
+ 
+ AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
+-AM_CFLAGS = -O3 -fPIC
++AM_CFLAGS = -fPIC
+ 
+ bin_PROGRAMS = gf_unit 
+ 
+--- gf-complete-master/examples/Makefile.am~	2019-08-19 13:28:51.000000000 +0200
++++ gf-complete-master/examples/Makefile.am	2025-01-07 23:23:53.209997432 +0100
+@@ -1,7 +1,7 @@
+ # GF-Complete 'examples' AM file
+ 
+ AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
+-AM_CFLAGS = -O3 $(SIMD_FLAGS) -fPIC
++AM_CFLAGS = $(SIMD_FLAGS) -fPIC
+ 
+ bin_PROGRAMS = gf_example_1 gf_example_2 gf_example_3 gf_example_4 \
+                gf_example_5 gf_example_6 gf_example_7
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gf-complete.git/commitdiff/2ef3a3284df75d2f7d72d8db6db6ebc0a03048a6



More information about the pld-cvs-commit mailing list