@@ -3,15 +3,16 @@ Distribution: Azure Linux
33
44Summary: Library for handling page faults in user mode
55Name: libsigsegv
6- Version: 2.11
7- Release: 11%{?dist }
8-
9- License: GPLv2+
6+ Version: 2.14
7+ Release: 1%{?dist }
8+ License: GPL-2.0 -or-later
109URL: https://www.gnu.org/software/libsigsegv/
11- Source0: http ://ftp.gnu.org/gnu/libsigsegv/libsigsegv-%{version }.tar.gz
12- Patch0: configure.patch
10+ Source0: https ://ftp.gnu.org/gnu/libsigsegv/libsigsegv-%{version }.tar.gz
11+ Patch0: configure.patch
1312
1413BuildRequires: automake libtool
14+ BuildRequires: gcc
15+ BuildRequires: make
1516
1617%description
1718This is a library for handling page faults in user mode. A page fault
@@ -38,35 +39,24 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release}
3839
3940
4041%prep
41- %setup -q
42- %patch 0 -p1
42+ %autosetup -p1
4343
4444
4545%build
46+ # for patch1, rpaths
4647autoreconf -ivf
48+
4749%configure \
4850 --enable-shared \
4951 --disable-silent-rules \
5052 --enable-static
5153
52- make %{?_smp_mflags }
53-
54+ %make_build
5455
5556%install
56- make install DESTDIR=%{buildroot }
57-
58- ## FIXME/TODO: review if this is needed anymore, particularly after usrmove
59-
60- # move shlib to %{_lib}
61- pushd %{buildroot }%{_libdir }
62- mkdir ../../%{_lib }
63- mv libsigsegv.so.2* ../../%{_lib }/
64- ln -sf ../../%{_lib }/libsigsegv.so.2 %{buildroot }%{_libdir }/libsigsegv.so
65- popd
66-
67-
68- ## unpackaged files
69- rm -fv %{buildroot }%{_libdir }/lib*.la
57+ %make_install
58+ # remove libtool archives
59+ find %{buildroot } -type f -name " *.la" -delete
7060
7161
7262%check
@@ -76,13 +66,9 @@ make check
7666%ldconfig_scriptlets
7767
7868%files
79- %doc AUTHORS NEWS README
8069%license COPYING
81-
82- /%{_lib }/libsigsegv.so.2*
83-
84-
85-
70+ %doc AUTHORS NEWS README
71+ %{_libdir }/libsigsegv.so.2*
8672
8773%files devel
8874%{_libdir }/libsigsegv.so
@@ -93,6 +79,10 @@ make check
9379
9480
9581%changelog
82+ * Tue Nov 12 2024 Sumit Jena <v-sumitjena@microsoft.com> - 2.14-1
83+ - Update to version 2.14
84+ - License verified
85+
9686* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.11-11
9787- Initial CBL-Mariner import from Fedora 32 (license: MIT).
9888
0 commit comments