Skip to content

Commit

Permalink
updated spec file for mageia
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed May 22, 2023
1 parent bfa0b98 commit 52b1a99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions indimail-access/indimail-access.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%endif
%endif

%if 0%{?fedora_version} > 30 || 0%{?centos_version} > 700 || 0%{?rhel_version} > 700 || 0%{?centos_ver} > 7 || 0%{?almalinux_version} > 700 || 0%{?rocky_version} > 700 || 0%{?fedora} > 30 || 0%{?rhel} > 7 || ( 0%{?sle_version} >= 150400 && 0%{?is_opensuse} )
%if 0%{?fedora_version} > 30 || 0%{?centos_version} > 700 || 0%{?rhel_version} > 700 || 0%{?centos_ver} > 7 || 0%{?almalinux_version} > 700 || 0%{?rocky_version} > 700 || 0%{?fedora} > 30 || 0%{?rhel} > 7 || %{defined mgaversion} || ( 0%{?sle_version} >= 150400 && 0%{?is_opensuse} )
%global pythondir %{python3_sitelib}
%else
%global pythondir %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
Expand Down Expand Up @@ -93,7 +93,7 @@ BuildRequires: gzip autoconf automake libtool pkgconfig
BuildRequires: sed findutils procps
BuildRequires: xz bison flex
BuildRequires: gettext-devel
%if 0%{?fedora_version} > 30 || 0%{?centos_version} > 700 || 0%{?rhel_version} > 700 || 0%{?centos_ver} > 7 || 0%{?almalinux_version} > 700 || 0%{?rocky_version} > 700 || 0%{?fedora} > 30 || 0%{?rhel} > 7 || ( 0%{?sle_version} >= 150400 && 0%{?is_opensuse} )
%if 0%{?fedora_version} > 30 || 0%{?centos_version} > 700 || 0%{?rhel_version} > 700 || 0%{?centos_ver} > 7 || 0%{?almalinux_version} > 700 || 0%{?rocky_version} > 700 || 0%{?fedora} > 30 || 0%{?rhel} > 7 || %{defined mgaversion} || ( 0%{?sle_version} >= 150400 && 0%{?is_opensuse} )
BuildRequires: python3 python3-devel
%else
BuildRequires: python python-devel
Expand Down Expand Up @@ -176,7 +176,7 @@ echo target_alias %_target_alias
echo target_cpu %_target_cpu
echo target_os %_target_os
echo target_vendor %_target_vendor
%if 0%{?fedora_version} > 30 || 0%{?centos_version} > 700 || 0%{?rhel_version} > 700 || 0%{?centos_ver} > 7 || 0%{?almalinux_version} > 700 || 0%{?rocky_version} > 700 || 0%{?fedora} > 30 || 0%{?rhel} > 7 || ( 0%{?sle_version} >= 150400 && 0%{?is_opensuse} )
%if 0%{?fedora_version} > 30 || 0%{?centos_version} > 700 || 0%{?rhel_version} > 700 || 0%{?centos_ver} > 7 || 0%{?almalinux_version} > 700 || 0%{?rocky_version} > 700 || 0%{?fedora} > 30 || 0%{?rhel} > 7 || %{defined mgaversion} || ( 0%{?sle_version} >= 150400 && 0%{?is_opensuse} )
echo pythondir %{python3_sitelib}
%else
echo pythondir %{pythondir}
Expand Down Expand Up @@ -393,7 +393,7 @@ done
%lang(ro) /usr/share/indimail/locale/ro/LC_MESSAGES/fetchmail.mo
%lang(sr) /usr/share/indimail/locale/sr/LC_MESSAGES/fetchmail.mo

%if 0%{?fedora_version} > 30 || 0%{?centos_version} > 700 || 0%{?rhel_version} > 700 || 0%{?centos_ver} > 7 || 0%{?almalinux_version} > 700 || 0%{?rocky_version} > 700 || 0%{?fedora} > 30 || 0%{?rhel} > 7 || ( 0%{?sle_version} >= 150400 && 0%{?is_opensuse} )
%if 0%{?fedora_version} > 30 || 0%{?centos_version} > 700 || 0%{?rhel_version} > 700 || 0%{?centos_ver} > 7 || 0%{?almalinux_version} > 700 || 0%{?rocky_version} > 700 || 0%{?fedora} > 30 || 0%{?rhel} > 7 || %{defined mgaversion} || ( 0%{?sle_version} >= 150400 && 0%{?is_opensuse} )
%attr(644,root,root) %{python3_sitelib}/__pycache__/*.pyc
%attr(755,root,root) %{python3_sitelib}/fetchmailconf.py
%else
Expand Down

0 comments on commit 52b1a99

Please sign in to comment.