Skip to content

Commit

Permalink
updated spec file for amazonlinux
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed May 22, 2023
1 parent 7eccacf commit c0c6709
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 12 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 || %{defined mgaversion} || ( 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} || %{defined amzn} || ( 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 || %{defined mgaversion} || ( 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} || %{defined amzn} || ( 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 || %{defined mgaversion} || ( 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} || %{defined amzn} || ( 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 || %{defined mgaversion} || ( 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} || %{defined amzn} || ( 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
7 changes: 6 additions & 1 deletion indimail-auth/indimail-auth.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ AutoReqProv: Yes
BuildRequires: gcc gcc-c++ make autoconf automake libtool
BuildRequires: glibc glibc-devel procps binutils
BuildRequires: sed findutils gzip coreutils grep
BuildRequires: mysql-devel pam-devel libqmail-devel libqmail
BuildRequires: pam-devel libqmail-devel libqmail
%if %{defined amzn}
BuildRequires: mariadb-connector-c-devel
%else
BuildRequires: mysql-devel
%endif

################################# OBS ###############################
%if %build_on_obs == 1
Expand Down
2 changes: 1 addition & 1 deletion indimail-spamfilter-x/indimail-spamfilter.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ BuildRequires: flex bison
%if 0%{?suse_version}
BuildRequires: db-devel
%else
%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}
%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 amzn} || %{defined mgaversion}
BuildRequires: libdb-devel
%else
BuildRequires: db4-devel
Expand Down
9 changes: 7 additions & 2 deletions indimail-x/indimail.spec.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
#
# $Id: indimail.spec.in,v 1.133 2023-05-22 20:58:23+05:30 Cprogrammer Exp mbhangui $
# $Id: indimail.spec.in,v 1.134 2023-05-22 23:14:09+05:30 Cprogrammer Exp mbhangui $
%undefine _missing_build_ids_terminate_build
%global _unpackaged_files_terminate_build 1

Expand Down Expand Up @@ -104,7 +104,12 @@ BuildRequires: openssl-devel rpm coreutils grep
BuildRequires: glibc glibc-devel openssl procps ncurses-devel
BuildRequires: gzip autoconf automake libtool pkgconfig
BuildRequires: sed findutils binutils
BuildRequires: mysql-devel libgsasl-devel
BuildRequires: libgsasl-devel
%if %{defined amzn}
BuildRequires: mariadb-connector-c-devel
%else
BuildRequires: mysql-devel
%endif

BuildRequires: libqmail-devel > 1.1
Requires: libqmail > 1.1
Expand Down
9 changes: 7 additions & 2 deletions indium-x/indium.spec.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
#
# $Id: indium.spec.in,v 1.29 2023-05-14 09:49:08+05:30 Cprogrammer Exp mbhangui $
# $Id: indium.spec.in,v 1.30 2023-05-22 23:15:01+05:30 Cprogrammer Exp mbhangui $
%undefine _missing_build_ids_terminate_build
%global _unpackaged_files_terminate_build 1

Expand Down Expand Up @@ -61,7 +61,12 @@ BuildRequires: tcl-devel rpm gcc gcc-c++ make coreutils grep
BuildRequires: tk-devel glibc glibc-devel procps tcl tk cpio
BuildRequires: sed gettext-devel
BuildRequires: findutils
BuildRequires: gzip autoconf mysql-devel
BuildRequires: gzip autoconf
%if %{defined amzn}
BuildRequires: mariadb-connector-c-devel
%else
BuildRequires: mysql-devel
%endif

%if %{undefined centos_version} && %{undefined rhel_version} && %{undefined sles_version} && %{undefined fedora} && %{undefined rhel}
BuildRequires: chrpath
Expand Down
2 changes: 1 addition & 1 deletion logalert-x/logalert.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ BuildRequires: gcc gcc-c++ make autoconf automake
%if %{defined suse_version} || %{defined sles_version}
BuildRequires: bison
%endif
%if 0%{?fedora_version} > 27 || 0%{?centos_version} > 700 || 0%{?rhel_version} > 700 || 0%{?almalinux_version} > 700 || 0%{?rocky_version} > 700 || 0%{?fedora} > 30 || 0%{?rhel} > 7 || %{defined mgaversion}
%if 0%{?fedora_version} > 27 || 0%{?centos_version} > 700 || 0%{?rhel_version} > 700 || 0%{?almalinux_version} > 700 || 0%{?rocky_version} > 700 || 0%{?fedora} > 30 || 0%{?rhel} > 7 || %{defined amzn} || %{defined mgaversion}
BuildRequires: libtirpc libtirpc-devel
%endif
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150300
Expand Down
4 changes: 3 additions & 1 deletion pam-multi-x/pam-multi.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ Source: http://downloads.sourceforge.net/indimail/%{name}-%{version}.tar.gz

URL: http://www.indimail.org
BuildRequires: pam-devel
%if %build_on_obs == 1
%if %{defined amzn}
BuildRequires: mariadb-connector-c-devel
%else
BuildRequires: mysql-devel
%endif
%if %{undefined centos_version} && %{undefined rhel_version} && %{undefined sles_version}
Expand Down

0 comments on commit c0c6709

Please sign in to comment.