Update to 1.3.1

epel9 imports/e9/mingw-dlfcn-1.3.1-1.el9
Sandro Mani 2 years ago
parent a724a82149
commit 7927d2ce9e

@ -1,19 +1,21 @@
%?mingw_package_header
%{?mingw_package_header}
%global realname dlfcn-win32
Name: mingw-dlfcn
Version: 1.2.0
Release: 8%{?dist}
Version: 1.3.1
Release: 1%{?dist}
Summary: Implements a wrapper for dlfcn (dlopen dlclose dlsym dlerror)
License: LGPLv2+
URL: https://github.com/%{realname}/%{realname}
Source0: https://github.com/%{realname}/%{realname}/archive/v%{version}.tar.gz
Source0: https://github.com/%{realname}/%{realname}/archive/v%{version}/%{realname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: cmake
BuildRequires: make
BuildRequires: mingw32-filesystem >= 95
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
@ -22,8 +24,6 @@ BuildRequires: mingw64-filesystem >= 95
BuildRequires: mingw64-gcc
BuildRequires: mingw64-binutils
BuildRequires: cmake
%description
This library implements a wrapper for dlfcn, as specified in POSIX and SUS,
@ -38,6 +38,7 @@ Summary: Implements a wrapper for dlfcn (dlopen dlclose dlsym dlerror)
This library implements a wrapper for dlfcn, as specified in POSIX and SUS,
around the dynamic link library functions found in the Windows API.
%package -n mingw32-dlfcn-static
Summary: Static version of the MinGW Windows dlfcn library
Requires: mingw32-dlfcn = %{version}-%{release}
@ -45,6 +46,7 @@ Requires: mingw32-dlfcn = %{version}-%{release}
%description -n mingw32-dlfcn-static
Static version of the MinGW Windows dlfcn library.
# Win64
%package -n mingw64-dlfcn
Summary: Implements a wrapper for dlfcn (dlopen dlclose dlsym dlerror)
@ -53,6 +55,7 @@ Summary: Implements a wrapper for dlfcn (dlopen dlclose dlsym dlerror)
This library implements a wrapper for dlfcn, as specified in POSIX and SUS,
around the dynamic link library functions found in the Windows API.
%package -n mingw64-dlfcn-static
Summary: Static version of the MinGW Windows dlfcn library
Requires: mingw64-dlfcn = %{version}-%{release}
@ -61,11 +64,11 @@ Requires: mingw64-dlfcn = %{version}-%{release}
Static version of the MinGW Windows dlfcn library.
%?mingw_debug_package
%{?mingw_debug_package}
%prep
%setup -q -n %{realname}-%{version}
%autosetup -p1 -n %{realname}-%{version}
for f in README.md COPYING; do
%{__sed} -i 's/\r//' "${f}";
@ -73,37 +76,31 @@ done
%build
# Shared
export MINGW_BUILDDIR_SUFFIX=-shared
%mingw_cmake
%mingw_make_build
%mingw_make %{?_smp_mflags}
# Build static win32 lib
mkdir -p build_win32_static
pushd build_win32_static
%mingw32_cmake -DBUILD_SHARED_LIBS:BOOL=OFF
popd
# Build static win64 lib
mkdir -p build_win64_static
pushd build_win64_static
%mingw64_cmake -DBUILD_SHARED_LIBS:BOOL=OFF
popd
# Static
export MINGW_BUILDDIR_SUFFIX=-static
%mingw_cmake -DBUILD_SHARED_LIBS:BOOL=OFF
%mingw_make_build
%install
%mingw_make DESTDIR=$RPM_BUILD_ROOT install
# Install static win32 lib
pushd build_win32_static
%mingw32_make DESTDIR=$RPM_BUILD_ROOT install
popd
# Install static win64 lib
pushd build_win64_static
%mingw64_make DESTDIR=$RPM_BUILD_ROOT install
popd
# Shared
export MINGW_BUILDDIR_SUFFIX=-shared
%mingw_make_install
# Static
export MINGW_BUILDDIR_SUFFIX=-static
%mingw_make_install
# Win32
%files -n mingw32-dlfcn
%doc README.md COPYING
%doc README.md
%license COPYING
%{mingw32_bindir}/libdl.dll
%{mingw32_libdir}/libdl.dll.a
%{mingw32_includedir}/dlfcn.h
@ -114,7 +111,8 @@ popd
# Win64
%files -n mingw64-dlfcn
%doc README.md COPYING
%doc README.md
%license COPYING
%{mingw64_bindir}/libdl.dll
%{mingw64_libdir}/libdl.dll.a
%{mingw64_includedir}/dlfcn.h
@ -125,6 +123,9 @@ popd
%changelog
* Mon Nov 21 2022 Sandro Mani <manisandro@gmail.com> - 1.3.1-1
- Update to 1.3.1
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

@ -1 +1 @@
SHA512 (v1.2.0.tar.gz) = bf38d1de009fbf78edb50613252f667e122305e52e9962161af98866d48d4fdf8897dd4232495895606b69593ecc306e35a7766ee9286e59726c8ccb380b4cbf
SHA512 (dlfcn-win32-1.3.1.tar.gz) = 0aa01c49ee8628c42cdc8b9782b4741a36502764d4442227ea4e9a8062356ff17e8eaa3cdd4113009ad7ad2044b6cfd24128319d71825e13062259dd1906e27e

Loading…
Cancel
Save