Accepting request 263220 from home:jengelh:branches:server:database

- Account for changes in libtool 2.4.3: remove ACLOCAL_AMFLAGS
  and explicit libtoolize call.
- Replace $RPM_BUILD_ROOT by macro (fits with the other macros used)

OBS-URL: https://build.opensuse.org/request/show/263220
OBS-URL: https://build.opensuse.org/package/show/server:database/unixODBC?expand=0&rev=34
This commit is contained in:
Tomáš Chvátal 2014-12-01 10:13:30 +00:00 committed by Git OBS Bridge
parent 29e1bf4d5d
commit cf023f126e
2 changed files with 20 additions and 12 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 27 10:40:29 UTC 2014 - jengelh@inai.de
- Account for changes in libtool 2.4.3: remove ACLOCAL_AMFLAGS
and explicit libtoolize call.
- Replace $RPM_BUILD_ROOT by macro (fits with the other macros used)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Sep 8 07:51:54 UTC 2014 - jengelh@inai.de Mon Sep 8 07:51:54 UTC 2014 - jengelh@inai.de

View File

@ -17,9 +17,6 @@
Name: unixODBC Name: unixODBC
BuildRequires: bison
BuildRequires: gcc-c++
BuildRequires: libtool
Version: 2.3.2 Version: 2.3.2
Release: 0 Release: 0
Summary: ODBC driver manager with some drivers included Summary: ODBC driver manager with some drivers included
@ -43,6 +40,10 @@ Patch13: %{name}-2.3.1-uninitialized.patch
Patch15: %{name}-2.3.1-bison.patch Patch15: %{name}-2.3.1-bison.patch
Patch16: %{name}-2.3.1-declarations.patch Patch16: %{name}-2.3.1-declarations.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake
BuildRequires: bison
BuildRequires: gcc-c++
BuildRequires: libtool
%package devel %package devel
Summary: Includes for ODBC Development Summary: Includes for ODBC Development
@ -89,12 +90,12 @@ Authors:
install -m 644 %{S:1} . install -m 644 %{S:1} .
%build %build
perl -i -pe 's{^ACLOCAL_AMFLAGS.*}{}' Makefile.am
export -n LANG LINGUAS LC_ALL export -n LANG LINGUAS LC_ALL
rm -rf libltdl rm -rf libltdl
libtoolize --ltdl
autoreconf --force --install autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export CFLAGS="%optflags -fno-strict-aliasing"
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export CXXFLAGS="%optflags -fno-strict-aliasing"
%configure \ %configure \
--prefix=%{_prefix} \ --prefix=%{_prefix} \
--mandir=%{_mandir} \ --mandir=%{_mandir} \
@ -108,13 +109,13 @@ export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
make make
%install %install
install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}/%{name} install -d -m 755 "%buildroot/%_sysconfdir/%name"
install -d -m 755 $RPM_BUILD_ROOT/%{_libdir}/%{name} install -d -m 755 "%buildroot/%_libdir/%name"
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR="%buildroot" install
rm -rf $RPM_BUILD_ROOT/usr/share/libtool rm -rf "%buildroot/%_datadir/libtool"
# packaged in gui-gtk # packaged in gui-gtk
rm -f $RPM_BUILD_ROOT/%{_libdir}/libmimerS.* rm -f "%buildroot/%_libdir"/libmimerS.*
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/*.la rm -f "%buildroot/%_libdir/%name"/*.la
%post -p /sbin/ldconfig %post -p /sbin/ldconfig