From e20c151679bb7627621184bfe4d09b39ad44c4da Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 10 May 2024 13:42:09 +0200 Subject: [PATCH] update to 4.2 [release 4.2-1mamba;Thu May 02 2024] --- libiniparser-2.15-shared-library.patch | 41 -------------------------- libiniparser.spec | 16 +++++----- 2 files changed, 9 insertions(+), 48 deletions(-) delete mode 100644 libiniparser-2.15-shared-library.patch diff --git a/libiniparser-2.15-shared-library.patch b/libiniparser-2.15-shared-library.patch deleted file mode 100644 index 902faef..0000000 --- a/libiniparser-2.15-shared-library.patch +++ /dev/null @@ -1,41 +0,0 @@ -Author: Lars Müller -Subject: Build libiniparser as shared library - ---- iniparser-2.15/Makefile -+++ iniparser-2.15/Makefile 2006-04-11 17:59:16 -@@ -4,12 +4,16 @@ - - # Compiler settings - CC = gcc --CFLAGS = -O3 -+CFLAGS = -O3 -fPIC - - # Ar settings to build the library - AR = ar - ARFLAGS = rcv - -+SHLD = ${CC} ${CFLAGS} -+LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib -+LDFLAGS = -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib -+ - # Set RANLIB to ranlib on systems that require it (Sun OS < 4, Mac OSX) - # RANLIB = ranlib - RANLIB = true -@@ -34,12 +38,16 @@ - OBJS = $(SRCS:.c=.o) - - --default: libiniparser.a -+default: libiniparser.a libiniparser.so - - libiniparser.a: $(OBJS) - @($(AR) $(ARFLAGS) libiniparser.a $(OBJS)) - @($(RANLIB) libiniparser.a) - -+libiniparser.so: $(OBJS) -+ @$(SHLD) $(LDSHFLAGS) -o $@.0 $(OBJS) $(LDFLAGS) \ -+ -Wl,-soname=`basename $@`.0 -+ - clean: - $(RM) $(OBJS) - diff --git a/libiniparser.spec b/libiniparser.spec index b5a9ae7..8a23b61 100644 --- a/libiniparser.spec +++ b/libiniparser.spec @@ -1,19 +1,17 @@ Name: libiniparser -Version: 4.1 +Version: 4.2 Release: 1mamba Summary: A free stand-alone ini file parsing library Group: System/Libraries Vendor: openmamba Distribution: openmamba -Packager: Davide Madrisan -URL: http://ndevilla.free.fr/iniparser/ +Packager: Silvan Calarco +URL: https://github.com/ndevilla/iniparser Source: https://github.com/ndevilla/iniparser.git/v%{version}/iniparser-%{version}.tar.bz2 -Patch: %{name}-2.15-shared-library.patch License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Libiniparser offers parsing of ini files from the C level. @@ -25,7 +23,9 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel Libiniparser offers parsing of ini files from the C level. -This package contains static libraries and header files need for development. +This package contains static libraries and header files needed for development. + +%debug_package %prep %setup -q -n iniparser-%{version} @@ -61,9 +61,11 @@ ln -s libiniparser.so.1 %{buildroot}%{_libdir}/libiniparser.so %{_includedir}/iniparser.h %{_libdir}/libiniparser.a %{_libdir}/libiniparser.so -%doc html %changelog +* Thu May 02 2024 Silvan Calarco 4.2-1mamba +- update to 4.2 + * Wed Feb 07 2018 Automatic Build System 4.1-1mamba - automatic version update by autodist