Browse Source

gwenhywfar-5.7.3-1

Tomohiro "Tomo-p" KATO 2 years ago
parent
commit
242cdecd97
1 changed files with 32 additions and 13 deletions
  1. 32 13
      g/gwenhywfar/gwenhywfar-vl.spec

+ 32 - 13
g/gwenhywfar/gwenhywfar-vl.spec

@@ -1,6 +1,8 @@
+%bcond_with qt5
+
 Summary: A multi-platform helper library for other libraries
 Name: gwenhywfar
-Version: 5.6.0
+Version: 5.7.3
 Release: 1%{?_dist_release}
 Group: system
 Vendor: Project Vine
@@ -8,13 +10,18 @@ Distribution: Vine Linux
 
 License: LGPLv2+
 URL: https://www.aquamaniac.de/sites/aqbanking/index.php
-Source0: https://github.com/aqbanking/gwenhywfar/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source0: https://github.com/aqbanking/gwenhywfar/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: openssl-devel
 BuildRequires: gnutls-devel
 BuildRequires: libgcrypt-devel
 BuildRequires: gettext
+%if %{with qt5}
+Requires: %{name}-gui-qt5 = %{version}-%{release}
+%else
+Obsoletes: %{name}-gui-qt5 < 5.7.3
+%endif
 
 %description
 This is Gwenhywfar, a multi-platform helper library for networking and
@@ -28,7 +35,9 @@ Group: programming
 Requires: %{name} = %{version}-%{release}
 Requires: %{name}-gui-cpp = %{version}-%{release}
 Requires: %{name}-gui-gtk3 = %{version}-%{release}
+%if %{with qt5}
 Requires: %{name}-gui-qt5 = %{version}-%{release}
+%endif
 Requires: pkgconfig
 
 %description devel
@@ -50,21 +59,25 @@ Summary: Gwenhywfar GUI framework for GTK3
 Group: system
 BuildRequires: gtk3-devel
 Requires: %{name} = %{version}-%{release}
-Obsoletes: gui-gtk2
+Obsoletes: %{name}-gui-gtk2 < 5.7.0
 
 %description gui-gtk3
 This package contains the gtk3 gwenhywfar GUI backend.
 
 
+%if %{with qt5}
 %package gui-qt5
 Summary: Gwenhywfar GUI framework for Qt5
 Group: system
+BuildRequires: qt5-rpm-macros
 BuildRequires: qt5-qtbase-devel
+BuildRequires: qt5-linguist
 Requires: %{name} = %{version}-%{release}
-Obsoletes: gui-qt4
+Obsoletes: %{name}-gui-qt4 < 5.7.0
 
 %description gui-qt5
 This package contains the qt5 gwenhywfar GUI backend.
+%endif
 
 
 %debug_package
@@ -82,11 +95,13 @@ export PATH=$PATH:%{_qt5_bindir}
 %configure \
 	--disable-static \
 	--enable-system-certs \
-	--with-openssl-libs=%{_libdir} \
-	--with-guis="gtk3 qt5" \
+	--with-guis="gtk3" \
+%if %{with qt5}
 	--with-qt5-qmake=%{_bindir}/qmake-qt5 \
 	--with-qt5-moc=%{_bindir}/moc-qt5 \
-	--with-qt5-uic=%{_bindir}/uic-qt5
+	--with-qt5-uic=%{_bindir}/uic-qt5 \
+%endif
+	%{nil}
 
 # kill rpath
 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
@@ -113,10 +128,6 @@ find $RPM_BUILD_ROOT -name *.la -exec rm -f {} \;
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
 
 
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-
-
 %files -f %{name}.lang
 %defattr(-,root,root)
 %license COPYING
@@ -126,8 +137,6 @@ find $RPM_BUILD_ROOT -name *.la -exec rm -f {} \;
 %{_libdir}/%{name}
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/dialogs
-%{_datadir}/%{name}/typemaker2
-%exclude %{_datadir}/%{name}/typemaker*
 %{_datadir}/%{name}/ca-bundle.crt
 
 %files devel
@@ -139,6 +148,8 @@ find $RPM_BUILD_ROOT -name *.la -exec rm -f {} \;
 %{_libdir}/pkgconfig/*.pc
 %{_libdir}/cmake/*
 %{_datadir}/aclocal/gwenhywfar.m4
+%{_datadir}/gwenbuild
+%{_datadir}/%{name}/gwenbuild
 %{_datadir}/%{name}/typemaker*
 
 %files gui-cpp
@@ -149,12 +160,20 @@ find $RPM_BUILD_ROOT -name *.la -exec rm -f {} \;
 %defattr(-,root,root)
 %{_libdir}/libgwengui-gtk3.so.*
 
+%if %{with qt5}
 %files gui-qt5
 %defattr(-,root,root)
 %{_libdir}/libgwengui-qt5.so.*
+%endif
 
 
 %changelog
+* Sat Oct 30 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.7.3-1
+- new upstream release.
+- built with openssl-3.0.0.
+- dropped ldconfig scriptlets.
+- disabled qt5 as default.
+
 * Sat Feb 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.6.0-1
 - new upstream release.