[packages/jerasure] - new

baggins baggins at pld-linux.org
Tue Jan 7 23:06:50 CET 2025


commit d6023957c14020b70d024fa0b06d41578e48dc7c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Jan 8 00:06:20 2025 +0100

    - new

 jerasure.spec | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 opt.patch     | 13 ++++++++
 2 files changed, 111 insertions(+)
---
diff --git a/jerasure.spec b/jerasure.spec
new file mode 100644
index 0000000..d0dc7e1
--- /dev/null
+++ b/jerasure.spec
@@ -0,0 +1,98 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static libraries
+#
+
+%define		gitref	505ccb4b
+
+Summary:	A Library in C Facilitating Erasure Coding for Storage
+Name:		jerasure
+Version:	2.0
+Release:	0.1
+License:	BSD
+Group:		Libraries
+Source0:	https://git.sr.ht/~thestr4ng3r/jerasure/archive/%{gitref}.tar.gz#/%{name}-%{version}.tar.gz
+# Source0-md5:	1070a05a2d2bc20b9e518eecaff7012a
+Patch0:		opt.patch
+URL:		https://web.eecs.utk.edu/~jplank/plank/www/software.html
+BuildRequires:	gf-complete-devel
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	intltool
+BuildRequires:	libtool
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A Library in C Facilitating Erasure Coding for Storage.
+
+%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}-%{gitref}
+%patch -P 0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+%ifarch %{ix86}
+	--disable-sse \
+%endif
+	%{?with_static_libs:--enable-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 Manual.pdf
+%attr(755,root,root) %{_libdir}/libJerasure.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libJerasure.so.2
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libJerasure.so
+%{_libdir}/libJerasure.la
+%{_includedir}/jerasure
+%{_includedir}/jerasure.h
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libJerasure.a
+%endif
diff --git a/opt.patch b/opt.patch
new file mode 100644
index 0000000..57b2bbf
--- /dev/null
+++ b/opt.patch
@@ -0,0 +1,13 @@
+--- jerasure-505ccb4b/configure.ac~	2019-08-19 14:45:54.000000000 +0200
++++ jerasure-505ccb4b/configure.ac	2025-01-08 00:02:05.289998143 +0100
+@@ -11,10 +11,6 @@
+ 
+ AM_INIT_AUTOMAKE([1.13 -Wall -Wno-extra-portability])
+ 
+-# Package default C compiler flags.
+-dnl This must be before LT_INIT and AC_PROG_CC.
+-: ${CFLAGS='-g -O3 -Wall'}
+-
+ LT_INIT([disable-static])
+ 
+ # Checks for programs.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/jerasure.git/commitdiff/d6023957c14020b70d024fa0b06d41578e48dc7c



More information about the pld-cvs-commit mailing list