From df6b88463904f2f33e634087ea3ee7a9c57c83ca Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Feb 25 2014 14:05:41 +0000 Subject: import unixODBC-2.3.1-10.el7.src.rpm --- diff --git a/SOURCES/README.dist b/SOURCES/README.dist new file mode 100644 index 0000000..e71be30 --- /dev/null +++ b/SOURCES/README.dist @@ -0,0 +1,33 @@ +About unixODBC in this distribution +----------------------------------- + +In addition to the unixODBC package itself, you will want to install some +or all of these related packages: + +mysql-connector-odbc MySQL driver, needed to connect to MySQL databases +postgresql-odbc PostgreSQL driver, needed to connect to PostgreSQL +unixODBC-gui-qt Optional configuration management and test programs + + +The recommended driver definition for MySQL is: + +[MySQL] +Description = ODBC for MySQL +Driver = /usr/lib/libmyodbc5.so +Setup = /usr/lib/libodbcmyS.so +Driver64 = /usr/lib64/libmyodbc5.so +Setup64 = /usr/lib64/libodbcmyS.so +FileUsage = 1 + +You can adjust the name (in square brackets) and the description, but +the other items should usually be used verbatim. + +The recommended driver definition for PostgreSQL is: + +[PostgreSQL] +Description = ODBC for PostgreSQL +Driver = /usr/lib/psqlodbcw.so +Setup = /usr/lib/libodbcpsqlS.so +Driver64 = /usr/lib64/psqlodbcw.so +Setup64 = /usr/lib64/libodbcpsqlS.so +FileUsage = 1 diff --git a/SOURCES/README.fedora b/SOURCES/README.fedora deleted file mode 100644 index 762abf0..0000000 --- a/SOURCES/README.fedora +++ /dev/null @@ -1,33 +0,0 @@ -About unixODBC in Fedora ------------------------- - -In addition to the unixODBC package itself, you will want to install some -or all of these related packages: - -mysql-connector-odbc MySQL driver, needed to connect to MySQL databases -postgresql-odbc PostgreSQL driver, needed to connect to PostgreSQL -unixODBC-gui-qt Optional configuration management and test programs - - -The recommended driver definition for MySQL is: - -[MySQL] -Description = ODBC for MySQL -Driver = /usr/lib/libmyodbc5.so -Setup = /usr/lib/libodbcmyS.so -Driver64 = /usr/lib64/libmyodbc5.so -Setup64 = /usr/lib64/libodbcmyS.so -FileUsage = 1 - -You can adjust the name (in square brackets) and the description, but -the other items should usually be used verbatim. - -The recommended driver definition for PostgreSQL is: - -[PostgreSQL] -Description = ODBC for PostgreSQL -Driver = /usr/lib/psqlodbcw.so -Setup = /usr/lib/libodbcpsqlS.so -Driver64 = /usr/lib64/psqlodbcw.so -Setup64 = /usr/lib64/libodbcpsqlS.so -FileUsage = 1 diff --git a/SOURCES/dltest.1 b/SOURCES/dltest.1 new file mode 100644 index 0000000..2619f2e --- /dev/null +++ b/SOURCES/dltest.1 @@ -0,0 +1,52 @@ +.TH dltest 1 "Thu 13 Feb 2014" "version 2.3.1" "UnixODBC manual pages" +.SH NAME +dltest \- A simple library symbol test + +.SH SYNOPSIS +.B dltest +.R [ +.I library symbol +.R ] + +.SH DESCRIPTION +.B dltest +is simple test of occurence of the +.I symbol +in the +.IR library . +The +.I library +must be a full (with path) file name of the shared object, in which the search for +.I symbol +should be performed. + +Without any parameters, dltest print short help message. + +.SH EXAMPLES +To determine if the symbol +.B printf +is found in the +.IR libc-2\.18\.so : + +.RS +$ dltest /usr/lib/libc-2.18.so printf +.RE + +.SH AUTHORS +The authors of unixODBC are +.MT pharvey@codebydesign.com +Peter Harvey +.ME +and +.MT nick@easysoft.com +Nick Gorham +.ME . +For the full list of contributors see the +.I AUTHORS +file. + +.SH COPYRIGHT +unixODBC is licensed under the GNU Lesser General Public License. For details +about the license, see the +.I COPYING +file. diff --git a/SOURCES/isql.1 b/SOURCES/isql.1 index efb1b54..6ff5257 100644 --- a/SOURCES/isql.1 +++ b/SOURCES/isql.1 @@ -1,8 +1,7 @@ -\" vim:language en_US.UTF-8: .TH isql 1 "Tue 25 Jun 2013" "version 2.3.1" "UnixODBC manual pages" .SH NAME -isql - unixODBC command-line interactive SQL tool +isql, iusql \- unixODBC command-line interactive SQL tool .SH SYNOPSIS \fBisql\fR \fIDSN\fR [\fIUSER\fR [\fIPASSWORD\fR]] [\fIoptions\fR] @@ -13,6 +12,9 @@ is a command line tool which allows the user to execute SQL in batch or interactively. It has some interesting options such as an option to generate output wrapped in an HTML table. +.B iusql +is the same tool with built-in Unicode support. + .SH ARGUMENTS .IP \fBDSN\fR diff --git a/SOURCES/iusql.1 b/SOURCES/iusql.1 new file mode 100644 index 0000000..b717d4d --- /dev/null +++ b/SOURCES/iusql.1 @@ -0,0 +1 @@ +.so man1/isql.1 diff --git a/SOURCES/odbc_config.1 b/SOURCES/odbc_config.1 new file mode 100644 index 0000000..9c720e4 --- /dev/null +++ b/SOURCES/odbc_config.1 @@ -0,0 +1,117 @@ +.TH odbc_config 1 "Thu 13 Feb 2014" "version 2.3.1" "UnixODBC manual pages" + +.SH NAME +odbc_config \- get compile options for compiling unixODBC client + +.SH SYNOPSIS +.SY odbc_config +.OP \-\-prefix +.OP \-\-exec-prefix +.OP \-\-include-prefix +.OP \-\-lib-prefix +.OP \-\-bin-prefix +.OP \-\-version +.OP \-\-libs +.OP \-\-static-libs +.OP \-\-libtool-libs +.OP \-\-cflags +.OP \-\-odbcversion +.OP \-\-odbcini +.OP \-\-odbcinstini +.OP \-\-header +.OP \-\-ulen +.YS + +.SH DESCRIPTION +.B odbc_config +provides built-in options, specified at build time of the unixODBC suite, which +are useful for building unixODBC clients and similar programs. + +.SH OPTIONS +.B +.IP \-\-prefix +Prefix for architecture-independent file tree. + +.B +.IP \-\-exec-prefix +Prefix for architecture-dependent file tree. + +.B +.IP \-\-include-prefix +Directory with C header files for unixODBC. + +.B +.IP \-\-lib-prefix +Directory with object code (.so) libraries. + +.B +.IP \-\-bin-prefix +Location of user executables. + +.B +.IP \-\-version +unixODBC version. + +.B +.IP \-\-libs +Compiler flags for linking dynamic libraries. + +.B +.IP \-\-static-libs +Absolute file name of static unixODBC library. + +.B +.IP \-\-libtool-libs +Absolute file name of libtool unixODBC library. + +.B +.IP \-\-cflags +Compiler flags to find include files and critical compiler flags and defines used +when compiling the libodbc library. + +.B +.IP \-\-odbcversion +Version of the ODBC specification used by the unixODBC. + +.B +.IP \-\-odbcini +Absolute file name of the system-wide DSN configuration file +.IR odbc.ini . + +.B +.IP \-\-odbcinstini +Absolute file name of the driver configuration file +.IR odbcinst.ini . + +.B +.IP \-\-header +Definitions of used C preprocessor constants. It is suitable to be piped into +C header file. + +.B +.IP \-\-ulen +Compiler flag for defining +.IR SIZEOF_SQLULEN . + +.SH SEE ALSO +.BR odbcinst.ini (5), +.BR odbc.ini (5) + +.SH AUTHORS +The authors of unixODBC are +.MT pharvey@codebydesign.com +Peter Harvey +.ME +and +.MT nick@easysoft.com +Nick Gorham +.ME . +For the full list of contributors see the +.I AUTHORS +file. + +.SH COPYRIGHT +unixODBC is licensed under the GNU Lesser General Public License. For details +about the license, see the +.I COPYING +file. diff --git a/SPECS/unixODBC.spec b/SPECS/unixODBC.spec index 191559a..8e4598b 100644 --- a/SPECS/unixODBC.spec +++ b/SPECS/unixODBC.spec @@ -1,7 +1,7 @@ Summary: A complete ODBC driver manager for Linux Name: unixODBC Version: 2.3.1 -Release: 6%{?dist} +Release: 10%{?dist} Group: System Environment/Libraries URL: http://www.unixODBC.org/ # Programs are GPL, libraries are LGPL, except News Server library is GPL. @@ -10,11 +10,14 @@ License: GPLv2+ and LGPLv2+ Source: http://www.unixODBC.org/%{name}-%{version}.tar.gz Source1: odbcinst.ini Source4: conffile.h -Source5: README.fedora +Source5: README.dist Source6: isql.1 Source7: odbc.ini.5 Source8: odbcinst.1 Source9: odbcinst.ini.5 +Source10: iusql.1 +Source11: dltest.1 +Source12: odbc_config.1 Patch1: depcomp.patch Patch6: export-symbols.patch @@ -96,7 +99,8 @@ case `uname -i` in esac # add some explanatory documentation -cp %{SOURCE5} README.fedora +# remove reference to nonexistent packages +sed '/^unixODBC-gui-qt/d' "%{SOURCE5}" >README.dist # remove obsolete Postgres drivers from the package (but not the setup code) rm -f $RPM_BUILD_ROOT%{_libdir}/libodbcpsql.so* @@ -135,10 +139,13 @@ install -m644 %{SOURCE6} $RPM_BUILD_ROOT%{_mandir}/man1/isql.1 install -m644 %{SOURCE7} $RPM_BUILD_ROOT%{_mandir}/man5/odbc.ini.5 install -m644 %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/man1/odbcinst.1 install -m644 %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/man5/odbcinst.ini.5 +install -m644 %{SOURCE10} $RPM_BUILD_ROOT%{_mandir}/man1/iusql.1 +install -m644 %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man1/dltest.1 +install -m644 %{SOURCE12} $RPM_BUILD_ROOT%{_mandir}/man1/odbc_config.1 %files -f base-so-list %doc README COPYING AUTHORS ChangeLog NEWS doc -%doc README.fedora +%doc README.dist %config(noreplace) %{_sysconfdir}/odbc* %{_bindir}/odbcinst %{_bindir}/isql @@ -154,6 +161,19 @@ install -m644 %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/man5/odbcinst.ini.5 %postun -p /sbin/ldconfig %changelog +* Tue Feb 25 2014 Jan Stanek - 2.3.1-10 +- Added missing man pages + Resolves: rhbz#948935 + +* Fri Jan 24 2014 Daniel Mach - 2.3.1-9 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 2.3.1-8 +- Mass rebuild 2013-12-27 + +* Fri Dec 06 2013 Jan Stanek - 2.3.1-7 +- Renamed README.fedora to README.dist + * Thu Jul 4 2013 Honza Horak 2.3.1-6 - Spec file clean-up - Provide man pages created by Jan Stanek