- Add BuildRequires: pkgconfig since we install .pc files

- Add unixODBC-rpmlintrc: devel files are in the right place

OBS-URL: https://build.opensuse.org/package/show/server:database/unixODBC?expand=0&rev=52
This commit is contained in:
Michael Vetter 2018-03-22 14:24:53 +00:00 committed by Git OBS Bridge
parent 3172bd0b5d
commit a6b55d4922
3 changed files with 20 additions and 9 deletions

3
unixODBC-rpmlintrc Normal file
View File

@ -0,0 +1,3 @@
# All .so files are in the main package as many ext apps
# dlopen those so you need these on regular package.
addFilter("devel-file-in-non-devel-package")

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 22 14:09:43 UTC 2018 - mvetter@suse.com
- Add BuildRequires: pkgconfig since we install .pc files
- Add unixODBC-rpmlintrc: devel files are in the right place
-------------------------------------------------------------------
Mon Mar 19 12:53:15 UTC 2018 - mvetter@suse.com

View File

@ -25,16 +25,18 @@ Group: Productivity/Databases/Tools
Url: http://www.unixodbc.org/
Source0: ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-%{version}.tar.gz
Source1: baselibs.conf
Source2: unixODBC-rpmlintrc
Patch1: unixODBC-paths.patch
Patch2: unixODBC-gccwarnings.patch
# https://github.com/lurcher/unixODBC/issues/8
Patch3: unixODBC-2.3.1-libodbcinst-exports.patch
Patch4: unixODBC-2.3.6-declarations.patch
Patch4: unixODBC-2.3.6-declarations.patch
BuildRequires: automake
BuildRequires: bison
BuildRequires: gcc-c++
BuildRequires: libltdl-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: readline-devel
# bsc#1062860: to stay feature complete
Recommends: psqlODBC
@ -99,14 +101,14 @@ rm -f "%{buildroot}/%{_libdir}"/unixODBC/libodbcpsql.*
%license COPYING
%attr(644,root,root) %doc AUTHORS ChangeLog NEWS README doc/*.html doc/*.gif
%docdir %{_mandir}
%{_mandir}/man1/dltest.1%{ext_man}
%{_mandir}/man1/isql.1%{ext_man}
%{_mandir}/man1/iusql.1%{ext_man}
%{_mandir}/man1/odbc_config.1%{ext_man}
%{_mandir}/man1/odbcinst.1%{ext_man}
%{_mandir}/man5/odbc.ini.5%{ext_man}
%{_mandir}/man5/odbcinst.ini.5%{ext_man}
%{_mandir}/man7/unixODBC.7%{ext_man}
%{_mandir}/man1/dltest.1%{?ext_man}
%{_mandir}/man1/isql.1%{?ext_man}
%{_mandir}/man1/iusql.1%{?ext_man}
%{_mandir}/man1/odbc_config.1%{?ext_man}
%{_mandir}/man1/odbcinst.1%{?ext_man}
%{_mandir}/man5/odbc.ini.5%{?ext_man}
%{_mandir}/man5/odbcinst.ini.5%{?ext_man}
%{_mandir}/man7/unixODBC.7%{?ext_man}
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/ODBCDataSources
%dir %{_libdir}/%{name}