# remirepo spec file for msodbcsql # # Copyright (c) 2016 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # %global __arch_install_post /bin/true %global debug_package %{nil} %global __debug_install_post /bin/true %global vendor microsoft %global libname libmsodbcsql-13.0.so.0.0 %global dm_name ODBC Driver 13 for SQL Server Name: msodbcsql Summary: Microsoft ODBC Driver for SQL Server Version: 13.0.0.0 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: Distribuable Group: Development/Languages URL: https://msdn.microsoft.com/library/hh568454(v=sql.110).aspx Source0: https://download.microsoft.com/download/B/C/D/BCDD264C-7517-4B7D-8159-C99FC5535680/msodbcsql-13.0.0.0.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: x86_64 Requires(preun): %{_bindir}/odbcinst Requires(post): %{_bindir}/odbcinst Requires: unixODBC%{?_isa} %description %{summary}. %prep %setup -q mkdir _docs tar --extract \ --file docs/en_US.tar.gz \ --directory _docs cat </dev/null || : fi %post if [ -f /etc/odbcinst.ini ]; then %{_bindir}/odbcinst -i -d -f /opt/%{vendor}/%{name}/%{version}/%{name}.ini >/dev/null || : fi %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc _docs/* %dir /opt/%{vendor} /opt/%{vendor}/%{name} %{_bindir}/bcp %{_bindir}/sqlcmd %changelog * Fri Sep 16 2016 Remi Collet - 13.0.0.0-1 - initial package