From 7ea1c10f12c2db12f3dde19479bf8da0c7a4f393 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 16 Sep 2016 10:56:29 +0200 Subject: msodbcsql: 13.0.0.0 - New package --- msodbcsql.spec | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 msodbcsql.spec (limited to 'msodbcsql.spec') diff --git a/msodbcsql.spec b/msodbcsql.spec new file mode 100644 index 0000000..c4cde0c --- /dev/null +++ b/msodbcsql.spec @@ -0,0 +1,123 @@ +# 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 + -- cgit