[postgresql-odbc] spec: cleanup

Pavel Raiskup praiskup at fedoraproject.org
Thu Dec 19 17:54:03 UTC 2013


commit 100981b87ac8b82e295ae614b9ca8fc29f4edeb0
Author: Pavel Raiskup <praiskup at redhat.com>
Date:   Thu Dec 19 18:23:25 2013 +0100

    spec: cleanup
    
    Several cleanup changes:
    * The acinclude.m4 does not seem to be needed anymore.  I actually
    don't know why it was originally added (very long time ago) but
    now even 'autoreconf' works fine — so lets see what will happen.
    * Don't autoreconf as it is not needed.
    * Trim lines.
    
    Version: 09.03.0100-1

 postgresql-odbc.spec |   34 +++++-----------------------------
 1 files changed, 5 insertions(+), 29 deletions(-)
---
diff --git a/postgresql-odbc.spec b/postgresql-odbc.spec
index 35c46c1..9bb928f 100644
--- a/postgresql-odbc.spec
+++ b/postgresql-odbc.spec
@@ -8,51 +8,27 @@ URL: http://psqlodbc.projects.postgresql.org/
 
 Source0: http://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-%{version}.tar.gz
 
-# CAUTION: acinclude.m4 has to be kept in sync with package's aclocal.m4.
-# This is a kluge that ought to go away, but upstream currently isn't
-# shipping their custom macros anywhere except in aclocal.m4.  (The macros
-# actually come from the Postgres source tree, but we haven't got that
-# available while building this RPM.)  To generate: in psqlodbc source tree,
-#   aclocal -I . -I $PGSRC/config
-# then strip aclocal.m4 down to just the PGAC macros.
-# BUT: as of 09.01.0200, configure.ac hasn't been updated to use latest
-# PG macros, so keep using the previous version of acinclude.m4.
-Source1: acinclude.m4
-
 BuildRequires: unixODBC-devel
 BuildRequires: libtool automake autoconf postgresql-devel
 BuildRequires: openssl-devel krb5-devel pam-devel zlib-devel readline-devel
 
-# This spec file and ancillary files are licensed in accordance with 
+# This spec file and ancillary files are licensed in accordance with
 # the psqlodbc license.
 
 %description
 This package includes the driver needed for applications to access a
 PostgreSQL system via ODBC (Open Database Connectivity).
 
+
 %prep
 %setup -q -n psqlodbc-%{version}
 
-# Some missing macros.  Courtesy Owen Taylor <otaylor at redhat.com>.
-cp -p %{SOURCE1} .
-
-# Use build system's libtool.m4, not the one in the package.
-rm -f libtool.m4 config/libtool.m4
-
-libtoolize --force  --copy
-aclocal -I .
-automake --add-missing --copy
-autoconf
-autoheader
 
 %build
-
 %configure --with-unixodbc --disable-dependency-tracking
-
-make
+make %{?_smp_mflags}
 
 %install
-
 make DESTDIR=$RPM_BUILD_ROOT install
 
 # Provide the old library name "psqlodbc.so" as a symlink,
@@ -66,7 +42,7 @@ popd
 %postun -p /sbin/ldconfig
 
 %files
-%attr(755,root,root) %{_libdir}/psqlodbcw.so
+%{_libdir}/psqlodbcw.so
 %{_libdir}/psqlodbc.so
 %doc license.txt readme.txt docs/*
 
@@ -205,7 +181,7 @@ Related: #845110
 - import new community version 07.03.0200
 
 * Mon Sep 15 2003 Andrew Overholt <overholt at redhat.com> 7.3-3
-- autotools fixes (courtesy Alex Oliva <aoliva at redhat.com> and 
+- autotools fixes (courtesy Alex Oliva <aoliva at redhat.com> and
   Owen Taylor <otaylor at redhat.com>)
 
 * Tue Jul 08 2003 Andrew Overholt <overholt at redhat.com> 7.3-3


More information about the scm-commits mailing list