Forráskód Böngészése

updated: apr-util, gambas2, gambas3, openldap, php5, qt, qt4, unixODBC

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3408 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 14 éve
szülő
commit
8238435819

+ 6 - 1
a/apr-util/apr-util-vl.spec

@@ -4,10 +4,12 @@ Summary: Apache Portable Runtime Utility library
 Summary(ja): Apache ポータブルランタイムユーティリティライブラリ
 Name: apr-util
 Version: 1.3.9
-Release: 5%{?_dist_release}
+Release: 6%{?_dist_release}
+
 License: Apache Software License 2.0
 Group: System Environment/Libraries
 URL: http://apr.apache.org/
+
 Source0: %{name}-%{version}.tar.bz2
 Patch1: apr-util-1.2.7-pkgconf.patch
 Patch2: apr-util-1.3.7-nodbmdso.patch
@@ -215,6 +217,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/apr-util-%{apuver}/apr_ldap*
 
 %changelog
+* Sat Apr  9 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.9-6
+- rebuilt with unixODBC-2.2.14 
+
 * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 1.3.9-5
 - rebuilt with rpm-4.8.1 for pkg-config
 

+ 4 - 1
g/gambas2/gambas2-vl.spec

@@ -8,7 +8,7 @@ Summary:	BASIC compiler, IDE and GUI builder
 Summary(ja): 	GUI ビルダーを備えた BASIC ベースの統合開発環境(IDE)
 Name:		gambas2
 Version:	2.21.0
-Release: 	4%{?_dist_release}
+Release: 	5%{?_dist_release}
 Source0:	%{name}-%{version}.tar.bz2
 Source1:	gambas2.desktop
 #Source2:	gambas2-2.6.0-ja.po
@@ -1131,6 +1131,9 @@ xdg-mime install %{_datadir}/gambas2/application-x-gambas.xml
 
 
 %changelog
+* Sat Apr  9 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.21.0-5
+- rebuilt with unixODBC-2.2.14
+
 * Sat Mar 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.21.0-4
 - rebuilt with poppler-0.16.3
 

+ 7 - 1
g/gambas3/gambas3-vl.spec

@@ -4,7 +4,7 @@ Summary:	BASIC compiler, IDE and GUI builder
 Summary(ja): 	GUI ビルダーを備えた BASIC ベースの統合開発環境(IDE)
 Name:		gambas3
 Version:	2.99.0
-Release: 	3.svn%{svnrevision}%{?_dist_release}
+Release: 	4.svn%{svnrevision}%{?_dist_release}
 Source0:	%{name}-%{version}.svn%{svnrevision}.tar.bz2
 Source1:	gambas3.desktop
 #Source2:	gambas2-2.6.0-ja.po
@@ -1474,6 +1474,12 @@ xdg-mime install %{_datadir}/%{name}/application-x-gambas.xml
 
 
 %changelog
+* Sat Apr  9 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.99.0-4.svn3396
+- rebuilt with unixODBC-2.2.14
+
+* Sat Mar 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.99.0-3.svn3396
+- rebuilt with poppler-0.16.3
+
 * Fri Dec 24 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.99.0-2.svn3396
 - source updated to latest revision
 

+ 5 - 1
o/openldap/openldap-vl.spec

@@ -16,7 +16,7 @@ Summary: The configuration files, libraries and documentation for OpenLDAP.
 Summary(ja): OpenLDAP の設定ファイル,ライブラリ,ドキュメント.
 Name: openldap
 Version: 2.4.23
-Release: 1%{?_dist_release}
+Release: 2%{?_dist_release}
 License: OpenLDAP
 Group: System Environment/Libraries
 %if %{stable}
@@ -291,6 +291,7 @@ build() {
         --with-tls \
         --with-cyrus-sasl \
         --with-gssapi \
+        --with-odbc=unixodbc \
         \
         --enable-wrappers \
         \
@@ -687,6 +688,9 @@ fi
 
 
 %changelog
+* Sat Apr  9 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.23-2
+- added --with-odbc=unixodbc to configure
+
 * Wed Apr  6 2011 IWAI, Masaharu <iwai@alib.jp> 2.4.23-1
 - new upstream release
 - update MigrationTools 47

+ 15 - 3
p/php5/php5-vl.spec

@@ -28,7 +28,7 @@ Name: php5
 Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
 Summary(ja): HTML 埋め込み型スクリプト言語 PHP
 Version: 5.3.6
-Release: 1%{_dist_release}
+Release: 2%{_dist_release}
 
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -146,6 +146,7 @@ components.  This package contains the basic PEAR components.
 %endif
 
 #----------------------------------------------------------------------
+%if %{?_dist_release} == "vl5"
 %package apache
 Summary: php5 module for Apache version 1
 Summary(ja): Apache バージョン 1 用の php5 モジュール
@@ -157,7 +158,7 @@ Provides: php-apache = %{version}-%{release}
 
 %description apache
 This package contains the php5 module for Apache version 1.
-
+%endif
 #----------------------------------------------------------------------
 %package apache2
 Group: System Environment/Daemons
@@ -463,11 +464,12 @@ popd
 
 #----------------------------------------------------------------------
 # Build Apache1 module
+%if %{?_dist_release} == "vl5"
 pushd build-apache
 build \
   --with-apxs=%{_sbindir}/apxs
 popd
-
+%endif
 #----------------------------------------------------------------------
 # Build Apache2 module
 pushd build-apache2
@@ -536,6 +538,7 @@ done
 mv $RPM_BUILD_ROOT%{_bindir}/php-cgi%{majorver} $RPM_BUILD_ROOT%{_bindir}/%{_name}-cgi
 
 # Install the Apache1 module, CGI SAPI, config fragment
+%if %{?_dist_release} == "vl5"
 %{__install} -m 755 -d $RPM_BUILD_ROOT%{apache1_moduledir}
 %{__install} -m 755 build-apache/libs/lib%{_name}.so $RPM_BUILD_ROOT%{apache1_moduledir}
 %{__install} -m 755 -d $RPM_BUILD_ROOT%{apache1_cgidir}
@@ -544,6 +547,7 @@ ln -sf %{_bindir}/%{_name}-cgi $RPM_BUILD_ROOT%{apache1_cgidir}/%{_name}-cgi
 ln -sf %{_bindir}/%{_name}-cgi $RPM_BUILD_ROOT%{apache1_fcgidir}/%{_name}-fcgi
 %{__install} -m 755 -d $RPM_BUILD_ROOT%{apache1_confdir}
 %{__install} -m 644 %{SOURCE23} $RPM_BUILD_ROOT%{apache1_confdir}/%{_name}.conf
+%endif
 
 # Install the Apache2 module, CGI SAPI, config fragment
 %{__install} -m 755 -d $RPM_BUILD_ROOT%{apache2_moduledir}
@@ -650,8 +654,10 @@ if [ "$1" = "0" ]; then
     /sbin/update-alternatives --auto pear
 fi
 
+%if %{?_dist_release} == "vl5"
 %post apache
 chown root:apache %{_localstatedir}/%{_name}/session 2>/dev/null || true
+%endif
 
 %post apache2
 chown root:apache %{_localstatedir}/%{_name}/session 2>/dev/null || true
@@ -703,12 +709,14 @@ rm -f files.*
 %dir %{pear_cachedir}
 %endif
 
+%if %{?_dist_release} == "vl5"
 %files apache
 %defattr(-,root,root)
 %config %{apache1_confdir}/%{_name}.conf
 %{apache1_moduledir}/lib%{_name}.so
 %{apache1_cgidir}/%{_name}-cgi
 %{apache1_fcgidir}/%{_name}-fcgi
+%endif
 
 %files apache2
 %defattr(-,root,root)
@@ -732,6 +740,10 @@ rm -f files.*
 
 #======================================================================
 %changelog
+* Sat Apr  9 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.3.6-2
+- new upstream release
+- dropt apache subpackage on VineSeed (apache1 will be orphaned on Vine 6)
+
 * Mon Mar 28 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.6-1
 - new upstream release.
 - added tags "Vendor:", "Distribution:" and "Packager:".

+ 4 - 1
q/qt/qt-vl.spec

@@ -1,6 +1,6 @@
 %define type x11
 %define qtdir %{_libdir}/qt-%{version}
-%define rel 9
+%define rel 10
 %define buildstatic 1
 %define buildnonthread 0
 %define styleplugins 0
@@ -743,6 +743,9 @@ fi
 %endif
 
 %changelog
+* Sat Apr  9 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.3.8-10
+- rebuilt with unixODBC-2.2.14 and cups-1.4.6
+
 * Tue Mar  8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.3.8-9
 - updated %%post. %%posttrans and %%postun section
 

+ 4 - 1
q/qt4/qt4-vl.spec

@@ -35,7 +35,7 @@ Summary: Qt toolkit
 Summary(ja): Qt ツールキット
 Name: qt4
 Version: 4.7.2
-Release: 2%{?_dist_release}
+Release: 3%{?_dist_release}
 
 # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
 License: (LGPLv2 with exceptions or GPLv3 with exceptions) and ASL 2.0 and BSD and FTL and MIT
@@ -989,6 +989,9 @@ fi
 %endif
 
 %changelog
+* Mon Apr 11 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-3
+- rebuilt with unixODBC-2.2.14
+
 * Sat Apr  9 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-2
 - added Patch 106, 301 and 302
 - fixed /etc/rpm/macros.qt4

+ 109 - 90
u/unixODBC/unixODBC-vl.spec

@@ -1,43 +1,41 @@
 %define __libtoolize true
-%define vine26 0
 
-%define kde 1
-# disable -kde subpackage on Vine Linux 2.5,2.6/alpha
-%if %{vine26}
-%ifarch alpha
-%define kde 0
-%endif
-%endif
+%define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo 4.7.2)
+%define _qt4_bindir %(pkg-config --variable bindir --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt-%{_qt4_version}/bin)
 
-Summary: A complete ODBC Driver Manager for Linux
 Name: unixODBC
-Version: 2.2.12
+Summary: A complete ODBC Driver Manager for Linux
+Version: 2.2.14
 Release: 1%{?_dist_release}
-License: LGPL
+
 Group: System Environment/Libraries
+# Programs are GPL, libraries are LGPL, except News Server library is GPL.
+License: GPLv2+ and LGPLv2+
+URL: http://www.unixODBC.org/
+
 Source: http://www.unixODBC.org/%{name}-%{version}.tar.gz
 Source1: odbcinst.ini
 Source2: ODBCConfig.desktop
 Source3: DataManager.desktop
-
-Patch1: unixODBC-2.2.11-symbols.patch
-Patch2: nortldglobal.patch
-Patch100: unixODBC-2.2.5-backslash-typo.patch
-URL: http://www.unixODBC.org/
+Source4: conffile.h
+
+Patch1: depcomp.patch
+Patch2: multilib-config.patch
+Patch3: warning-cleanup.patch
+Patch6: export-symbols.patch
+Patch7: libtool-config.patch
+Patch8: so-version-bump.patch
+Patch9: keep-typedefs.patch
+Patch10: odbcint64-config.patch
+Patch11: enable-items.patch
+Patch12: isql-fixes.patch
 Conflicts: iodbc
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-%if %{vine26}
-BuildRequires: autoconf253 automake15
-%else
-BuildRequires: autoconf >= 2.53
-BuildRequires: automake >= 1.5
-%endif
-%if %{kde}
-BuildRequires: kdelibs-devel
-BuildRequires: qt-devel
-BuildRequires: libmng-devel
-%endif
+BuildRequires: libX11-devel libXt-devel libXext-devel
+BuildRequires: qt4-devel qt-assistant-adp-devel readline-devel
+BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex
+BuildRequires: desktop-file-utils
 
 %description
 The unixODBC Project goals are to develop and promote unixODBC to
@@ -53,7 +51,7 @@ you'll also need to have the unixODBC package installed.
 %package devel
 Summary: Development files for programs which will use the unixODBC library.
 Group: Development/Libraries
-Requires: unixODBC = %{version}
+Requires: %{name} = %{version}-%{release}
 
 %description devel
 Install unixODBC if you'd like to access databases through ODBC drivers.
@@ -64,80 +62,103 @@ you'll also need to install the unixODBC-devel (this) package.
 %package kde
 Summary: KDE DriverManager components for ODBC
 Group: System Environment/Libraries
-Requires: unixODBC = %{version}
-#Requires: XFree86-libs qt freetype2 libjpeg libmng libpng zlib
+Requires: %{name} = %{version}-%{release}
 
 %description kde
 Components for the ODBCConfig and DataManager (KDE) Components of unixODBC.
 
 %prep
 %setup -q
-
 %patch1 -p1
-
-# 2.2.8 includes a libtool that is too old for some of our architectures.
-# Blow it away and replace with build system's libtool.  (We intend to use
-# the installed libtool anyway, but this makes sure they match.)
-rm -rf config.guess config.sub ltmain.sh libltdl
-cp -r /usr/share/libtool/* .
-
-# Use newer install-sh and mkinstalldirs, too
-if [ -f libltdl/install-sh ]; then
-  cp -f libltdl/install-sh .
-fi
-if [ -f libltdl/mkinstalldirs ]; then
-  cp -f libltdl/mkinstalldirs .
-fi
-
-# libltdl patch has to be applied after the above
 %patch2 -p1
+%patch3 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+
+chmod 0644 Drivers/MiniSQL/*.c
+chmod 0644 Drivers/nn/*.c
+chmod 0644 Drivers/template/*.c
+chmod 0644 doc/ProgrammerManual/Tutorial/*.html
+chmod 0644 doc/lst/*
+chmod 0644 include/odbcinst.h
+
+# Blow away the embedded libtool and replace with build system's libtool.
+# (We will use the installed libtool anyway, but this makes sure they match.)
+rm -rf config.guess config.sub install-sh ltmain.sh libltdl
+# this hack is so we can build with either libtool 2.2 or 1.5
+libtoolize --install || libtoolize
 
 %build
-%if %{vine26}
-[ -x /usr/bin/autoconf-2.5? ] && ln -s /usr/bin/autoconf-2.5? autoconf
-[ -x /usr/bin/autoheader-2.5? ] && ln -s /usr/bin/autoheader-2.5? autoheader
-[ -x /usr/bin/aclocal-1.5 ] && ln -s /usr/bin/aclocal-1.5 aclocal
-[ -x /usr/bin/automake-1.5 ] && ln -s /usr/bin/automake-1.5 automake
-export PATH=`pwd`:$PATH
-%endif
-
-%if %{kde}
 # pick up qt path
-export QTDIR=
-. /etc/profile.d/qt.sh
-%endif
+export PATH="%{_qt4_bindir}:$PATH"
+# clean up old moc files
+(cd odbcinstQ4 && rm -f mC*.cpp)
 
 aclocal
 automake --add-missing
 autoconf
-pushd libltdl
-aclocal
-automake
-autoconf
-popd
 
-%configure --with-gnu-ld=yes --enable-threads=yes --enable-gui=yes --enable-static=yes --enable-drivers
+# unixODBC 2.2.14 is not aliasing-safe
+CFLAGS="%{optflags} -fno-strict-aliasing"
+CXXFLAGS="$CFLAGS"
+export CFLAGS CXXFLAGS
+
+%configure --with-gnu-ld=yes --enable-threads=yes --enable-gui=yes --enable-drivers --enable-ltdllib --with-qt-programs="%{_qt4_bindir}" --with-qt-libraries="%{_qt4_libdir}"
 make all
 
 %install
-%if %{kde}
 # pick up qt path
-unset QTDIR || : ; . /etc/profile.d/qt.sh
-%endif
+export PATH="%{_qt4_bindir}:$PATH"
 
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/System
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
 
-%makeinstall
+make DESTDIR=$RPM_BUILD_ROOT install
 cp %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
-#cp DataManager/LinuxODBC.xpm $RPM_BUILD_ROOT%{_datadir}/icons
-#cp odbcinstQ/smallLinuxODBC.xpm $RPM_BUILD_ROOT%{_datadir}/icons
 
-#install -m755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/System
-#install -m755 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/System
+# install *.desktop files
+desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2}
+
+# package doesn't supply an icon for ODBCConfig, so use the one for DataManager
+cp DataManager/LinuxODBC.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps
+
+# multilib header hacks
+# we only apply this to known Red Hat multilib arches, per bug #181335
+case `uname -i` in
+  i386 | x86_64 | 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
+
+# remove obsolete Postgres drivers from the package (but not the setup code)
+rm -f $RPM_BUILD_ROOT%{_libdir}/libodbcpsql.so*
 
-rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
+# copy text driver documentation into main doc directory
+# currently disabled because upstream no longer includes text driver
+# mkdir -p doc/Drivers/txt
+# cp -pr Drivers/txt/doc/* doc/Drivers/txt
+
+# don't want to install doc Makefiles as docs
+#find doc -name 'Makefile*' | xargs rm
+
+# we do not want to ship static libraries
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
+
+# remove unpackaged files from the buildroot
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+rm -f $RPM_BUILD_ROOT%{_libdir}/libltdl.*
+rm -rf $RPM_BUILD_ROOT%{_datadir}/libtool
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -146,11 +167,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %postun -p /sbin/ldconfig
 
-%if %{kde}
 %post kde -p /sbin/ldconfig
 
 %postun kde -p /sbin/ldconfig
-%endif
 
 %files
 %defattr(-,root,root)
@@ -174,9 +193,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libodbcminiS.so.*
 %{_libdir}/libodbcmyS.so.*
 %{_libdir}/libodbcnnS.so.*
-%{_libdir}/libodbcpsql.so.*
+#%{_libdir}/libodbcpsql.so.*
 %{_libdir}/libodbcpsqlS.so.*
-%{_libdir}/libodbctxt.so.*
+#%{_libdir}/libodbctxt.so.*
 %{_libdir}/libodbctxtS.so.*
 %{_libdir}/liboplodbcS.so.*
 %{_libdir}/liboraodbcS.so.*
@@ -202,30 +221,30 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libodbcminiS.so
 %{_libdir}/libodbcmyS.so
 %{_libdir}/libodbcnnS.so
-%{_libdir}/libodbcpsql.so
+#%{_libdir}/libodbcpsql.so
 %{_libdir}/libodbcpsqlS.so
-%{_libdir}/libodbctxt.so
+#%{_libdir}/libodbctxt.so
 %{_libdir}/libodbctxtS.so
 %{_libdir}/liboplodbcS.so
 %{_libdir}/liboraodbcS.so
 %{_libdir}/libsapdbS.so
 %{_libdir}/libtdsS.so
 %{_libdir}/libtemplate.so
-%{_libdir}/*.a
+#{_libdir}/*.a
 #{_libdir}/*.la
 
-%if %{kde}
 %files kde
 %defattr(-,root,root)
-%{_bindir}/DataManager
-%{_bindir}/DataManagerII
 %{_bindir}/ODBCConfig
-%{_bindir}/odbctest
-%{_libdir}/libodbcinstQ.so*
-#%{_sysconfdir}/X11/applnk/System/*
-%endif
+%{_datadir}/applications/ODBCConfig.desktop
+%{_datadir}/pixmaps/LinuxODBC.xpm
+%{_libdir}/libodbcinstQ*so
+%{_libdir}/libodbcinstQ*so.*
 
 %changelog
+* Sat Apr 09 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.14-1
+- updated to 2.2.14
+
 * Sat Sep 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.12-1
 - applied new versioning policy
 - removed *.la files from devel package