]> git.pld-linux.org Git - packages/perl-Alien-wxWidgets.git/commitdiff
- query wx-config for version, rpm may be different, rel 7 master auto/th/perl-Alien-wxWidgets-0.69-7
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 30 Sep 2023 09:08:11 +0000 (11:08 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 30 Sep 2023 09:08:11 +0000 (11:08 +0200)
perl-Alien-wxWidgets.spec

index 656e1e6f9ce9108439c9450691b6f940872f695c..1be8369d8eb6f4b4d9217bd379e9f94431714830 100644 (file)
@@ -4,7 +4,7 @@
 %bcond_without tests           # do not perform "make test"
 %bcond_without gtk2            # wxGTK2 packages support
 %bcond_without gtk3            # wxGTK3 packages support
-%bcond_without ansi            # ANSI wx packages support
+%bcond_with    ansi            # ANSI wx packages support
 %bcond_without unicode         # Unicode wx packages support
 #
 %define                _enable_debug_packages  0
@@ -15,7 +15,7 @@ Summary:      Alien::wxWidgets - building, finding and using wxWidgets binaries
 Summary(pl.UTF-8):     Alien::wxWidgets - budowanie, znajdowanie i wykorzystywanie binariów wxWidgets
 Name:          perl-Alien-wxWidgets
 Version:       0.69
-Release:       6
+Release:       7
 # same as perl
 License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
@@ -29,6 +29,8 @@ BuildRequires:        perl-Module-Build >= 0.28
 BuildRequires: perl-Module-Pluggable >= 3.1-4
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: perl(File::Spec) >= 1.50
+BuildRequires: perl-Test-Pod >= 1.0
+BuildRequires: perl-Test-Pod-Coverage >= 1.0
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildRequires: rpmbuild(macros) >= 1.745
 %if %{with gtk2}
@@ -53,7 +55,26 @@ BuildRequires:       wxGTK3-unicode-gl-devel >= 2.6.3
 %endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                wx_ver          %(rpm -q wxWidgets-devel --qf '%%{VERSION}')
+%if %{with gtk2}
+  %if %{with ansi}
+%define                wx_config       wx-gtk2-ansi-config
+  %else
+  %if %{with unicode}
+%define                wx_config       wx-gtk2-unicode-config
+  %endif
+  %endif
+%else
+  %if %{with gtk3}
+    %if %{with ansi}
+%define                wx_config       wx-gtk3-ansi-config
+    %else
+    %if %{with unicode}
+%define                wx_config       wx-gtk3-unicode-config
+    %endif
+    %endif
+  %endif
+%endif
+%define                wx_ver          %(%{wx_config} --version)
 %define                wx_ver_tag      %(echo %{wx_ver} | tr . _)
 
 %description
This page took 0.071838 seconds and 4 git commands to generate.