multilib: delegate decisions to multilib-rpm-config
Related: rhbz#1286193 Version: 2.3.4-3
This commit is contained in:
parent
f75c2dc8ab
commit
3af8c7577f
31
conffile.h
31
conffile.h
@ -1,31 +0,0 @@
|
|||||||
/*
|
|
||||||
* Kluge to support multilib installation of both 32- and 64-bit RPMS:
|
|
||||||
* we need to arrange that header files that appear in both RPMs are
|
|
||||||
* identical. Hence, this file is architecture-independent and calls
|
|
||||||
* in an arch-dependent file that will appear in just one RPM.
|
|
||||||
*
|
|
||||||
* To avoid breaking arches not explicitly supported by Red Hat, we
|
|
||||||
* use this indirection file *only* on known multilib arches.
|
|
||||||
*
|
|
||||||
* Note: this may well fail if user tries to use gcc's -I- option.
|
|
||||||
* But that option is deprecated anyway.
|
|
||||||
*/
|
|
||||||
#if defined(__x86_64__)
|
|
||||||
#include "CONFFILE_x86_64.h"
|
|
||||||
#elif defined(__ia64__)
|
|
||||||
#include "CONFFILE_ia64.h"
|
|
||||||
#elif defined(__i386__)
|
|
||||||
#include "CONFFILE_i386.h"
|
|
||||||
#elif defined(__ppc64__) || defined(__powerpc64__)
|
|
||||||
#include "CONFFILE_ppc64.h"
|
|
||||||
#elif defined(__ppc__) || defined(__powerpc__)
|
|
||||||
#include "CONFFILE_ppc.h"
|
|
||||||
#elif defined(__s390x__)
|
|
||||||
#include "CONFFILE_s390x.h"
|
|
||||||
#elif defined(__s390__)
|
|
||||||
#include "CONFFILE_s390.h"
|
|
||||||
#elif defined(__sparc__) && defined(__arch64__)
|
|
||||||
#include "CONFFILE_sparc64.h"
|
|
||||||
#elif defined(__sparc__)
|
|
||||||
#include "CONFFILE_sparc.h"
|
|
||||||
#endif
|
|
@ -1,7 +1,7 @@
|
|||||||
Summary: A complete ODBC driver manager for Linux
|
Summary: A complete ODBC driver manager for Linux
|
||||||
Name: unixODBC
|
Name: unixODBC
|
||||||
Version: 2.3.4
|
Version: 2.3.4
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://www.unixODBC.org/
|
URL: http://www.unixODBC.org/
|
||||||
# Programs are GPL, libraries are LGPL, except News Server library is GPL.
|
# Programs are GPL, libraries are LGPL, except News Server library is GPL.
|
||||||
@ -9,7 +9,6 @@ License: GPLv2+ and LGPLv2+
|
|||||||
|
|
||||||
Source: http://www.unixODBC.org/%{name}-%{version}.tar.gz
|
Source: http://www.unixODBC.org/%{name}-%{version}.tar.gz
|
||||||
Source1: odbcinst.ini
|
Source1: odbcinst.ini
|
||||||
Source4: conffile.h
|
|
||||||
Source5: README.dist
|
Source5: README.dist
|
||||||
|
|
||||||
Patch6: export-symbols.patch
|
Patch6: export-symbols.patch
|
||||||
@ -20,6 +19,7 @@ Conflicts: iodbc
|
|||||||
|
|
||||||
BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex
|
BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
|
BuildRequires: multilib-rpm-config
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Install unixODBC if you want to access databases through ODBC.
|
Install unixODBC if you want to access databases through ODBC.
|
||||||
@ -79,19 +79,7 @@ make all
|
|||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
|
install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
|
||||||
|
%multilib_fix_c_header --file %{_includedir}/unixodbc_conf.h
|
||||||
# multilib header hacks
|
|
||||||
# we only apply this to known Red Hat multilib arches, per bug #181335
|
|
||||||
case `uname -i` in
|
|
||||||
i386 | x86_64 | ia64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 )
|
|
||||||
mv $RPM_BUILD_ROOT%{_includedir}/unixodbc_conf.h $RPM_BUILD_ROOT%{_includedir}/unixodbc_conf_`uname -i`.h
|
|
||||||
rm -f unixodbc_conf.h
|
|
||||||
sed s/CONFFILE/unixodbc_conf/ %{SOURCE4} >unixodbc_conf.h
|
|
||||||
install -m 644 unixodbc_conf.h $RPM_BUILD_ROOT%{_includedir}
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# add some explanatory documentation
|
# add some explanatory documentation
|
||||||
cp %{SOURCE5} README.dist
|
cp %{SOURCE5} README.dist
|
||||||
@ -146,6 +134,9 @@ done
|
|||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 22 2016 Pavel Raiskup <praiskup@redhat.com> - 2.3.4-3
|
||||||
|
- delegate multilib hacks to multilib-rpm-config package
|
||||||
|
|
||||||
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-2
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user