diff --git a/win/mingw32/mingw32-pw3270-plugin-ipc.spec b/win/mingw32/mingw32-pw3270-plugin-ipc.spec index 3748ec6..a6cf19e 100644 --- a/win/mingw32/mingw32-pw3270-plugin-ipc.spec +++ b/win/mingw32/mingw32-pw3270-plugin-ipc.spec @@ -22,6 +22,7 @@ %define MINOR_VERSION 2 %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} +%define _product %(i686-w64-mingw32-pkg-config --variable=product_name lib3270) %define __strip %{_mingw32_strip} %define __objdump %{_mingw32_objdump} @@ -136,8 +137,8 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS README.md LICENSE %endif -%dir %{_mingw32_libdir}/pw3270-plugins -%{_mingw32_libdir}/pw3270-plugins/ipcserver.dll +%dir %{_mingw32_libdir}/%{_product}-plugins +%{_mingw32_libdir}/%{_product}-plugins/ipcserver.dll %files -n mingw32-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} %defattr(-,root,root) diff --git a/win/mingw64/mingw64-pw3270-plugin-ipc.spec b/win/mingw64/mingw64-pw3270-plugin-ipc.spec index 632782f..95fbc2b 100644 --- a/win/mingw64/mingw64-pw3270-plugin-ipc.spec +++ b/win/mingw64/mingw64-pw3270-plugin-ipc.spec @@ -22,6 +22,8 @@ %define MINOR_VERSION 2 %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} +%define _product %(x86_64-w64-mingw32-pkg-config --variable=product_name lib3270) + %define __strip %{_mingw64_strip} %define __objdump %{_mingw64_objdump} @@ -136,8 +138,8 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS README.md LICENSE %endif -%dir %{_mingw64_libdir}/pw3270-plugins -%{_mingw64_libdir}/pw3270-plugins/ipcserver.dll +%dir %{_mingw64_libdir}/%{_product}-plugins +%{_mingw64_libdir}/%{_product}-plugins/ipcserver.dll %files -n mingw64-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} %defattr(-,root,root) -- libgit2 0.21.2