| |
@@ -1,6 +1,12 @@
|
| |
+ %if 0%{?rhel} >= 9
|
| |
+ %bcond_with mingw
|
| |
+ %else
|
| |
+ %bcond_without mingw
|
| |
+ %endif
|
| |
+
|
| |
Name: librttopo
|
| |
Version: 1.1.0
|
| |
- Release: 9%{?dist}
|
| |
+ Release: 10%{?dist}
|
| |
Summary: Create and manage SQL/MM topologies
|
| |
|
| |
License: GPLv2+
|
| |
@@ -16,6 +22,7 @@
|
| |
BuildRequires: libtool
|
| |
BuildRequires: make
|
| |
|
| |
+ %if %{with mingw}
|
| |
BuildRequires: mingw32-filesystem >= 95
|
| |
BuildRequires: mingw32-gcc
|
| |
BuildRequires: mingw32-geos
|
| |
@@ -23,6 +30,7 @@
|
| |
BuildRequires: mingw64-filesystem >= 95
|
| |
BuildRequires: mingw64-gcc
|
| |
BuildRequires: mingw64-geos
|
| |
+ %endif
|
| |
|
| |
|
| |
%description
|
| |
@@ -39,6 +47,7 @@
|
| |
developing applications that use %{name}.
|
| |
|
| |
|
| |
+ %if %{with mingw}
|
| |
%package -n mingw32-%{name}
|
| |
Summary: MinGW Windows Leptonica library
|
| |
BuildArch: noarch
|
| |
@@ -56,6 +65,7 @@
|
| |
|
| |
|
| |
%{?mingw_debug_package}
|
| |
+ %endif
|
| |
|
| |
|
| |
%prep
|
| |
@@ -73,21 +83,27 @@
|
| |
%make_build
|
| |
popd
|
| |
|
| |
+ %if %{with mingw}
|
| |
# MinGW build
|
| |
MINGW32_CONFIGURE_ARGS="PKGCONFIG=%{mingw32_target}-pkg-config" \
|
| |
MINGW64_CONFIGURE_ARGS="PKGCONFIG=%{mingw64_target}-pkg-config" \
|
| |
%mingw_configure --disable-static
|
| |
%mingw_make_build
|
| |
+ %endif
|
| |
|
| |
|
| |
%install
|
| |
%make_install -C build_native
|
| |
+ %if %{with mingw}
|
| |
%mingw_make_install
|
| |
+ %endif
|
| |
|
| |
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
| |
|
| |
|
| |
+ %if %{with mingw}
|
| |
%mingw_debug_install_post
|
| |
+ %endif
|
| |
|
| |
|
| |
%files
|
| |
@@ -101,6 +117,7 @@
|
| |
%{_libdir}/%{name}.so
|
| |
%{_libdir}/pkgconfig/rttopo.pc
|
| |
|
| |
+ %if %{with mingw}
|
| |
%files -n mingw32-%{name}
|
| |
%license COPYING
|
| |
%{mingw32_bindir}/%{name}-1.dll
|
| |
@@ -116,8 +133,12 @@
|
| |
%{mingw64_includedir}/%{name}_geom.h
|
| |
%{mingw64_libdir}/%{name}.dll.a
|
| |
%{mingw64_libdir}/pkgconfig/rttopo.pc
|
| |
+ %endif
|
| |
|
| |
%changelog
|
| |
+ * Sat Jun 11 2022 Orion Poplawski <orion@nwra.com> - 1.1.0-10
|
| |
+ - Disable mingw for EL9 for now
|
| |
+
|
| |
* Fri Mar 25 2022 Sandro Mani <manisandro@gmail.com> - 1.1.0-9
|
| |
- Rebuild with mingw-gcc-12
|
| |
|
| |
Scratch build for EPEL9 succeeds - https://koji.fedoraproject.org/koji/taskinfo?taskID=88157048