Accepting request 869573 from home:cgiboudeaux:branches:server:database

- Fix incorrect permission for documentation files.
  Using %attr affects the documentation subdirectory permission.
  Instead, the executable bit for doc files will be removed in
  the %prep section.

OBS-URL: https://build.opensuse.org/request/show/869573
OBS-URL: https://build.opensuse.org/package/show/server:database/unixODBC?expand=0&rev=63
This commit is contained in:
Michael Vetter 2021-02-04 20:30:08 +00:00 committed by Git OBS Bridge
parent 6a0465e982
commit 66304fec74
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Feb 4 18:45:24 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Fix incorrect permission for documentation files.
Using %attr affects the documentation subdirectory permission.
Instead, the executable bit for doc files will be removed in
the %prep section.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 22 20:27:56 UTC 2020 - Jan Engelhardt <jengelh@inai.de> Tue Sep 22 20:27:56 UTC 2020 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package unixODBC # spec file for package unixODBC
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -70,6 +70,8 @@ Includes for ODBC development (based on unixODBC).
%patch3 -p1 %patch3 -p1
%patch4 -p1 %patch4 -p1
chmod -x NEWS README doc/*.html doc/*.gif
%build %build
perl -i -pe 's{^ACLOCAL_AMFLAGS.*}{}' Makefile.am perl -i -pe 's{^ACLOCAL_AMFLAGS.*}{}' Makefile.am
export -n LANG LINGUAS LC_ALL export -n LANG LINGUAS LC_ALL
@ -108,7 +110,7 @@ rm -f "%{buildroot}/%{_libdir}"/unixODBC/libodbcpsql.*
%files %files
%license COPYING %license COPYING
%attr(644,root,root) %doc AUTHORS ChangeLog NEWS README doc/*.html doc/*.gif %doc AUTHORS ChangeLog NEWS README doc/*.html doc/*.gif
%docdir %{_mandir} %docdir %{_mandir}
%{_mandir}/man1/dltest.1%{?ext_man} %{_mandir}/man1/dltest.1%{?ext_man}
%{_mandir}/man1/isql.1%{?ext_man} %{_mandir}/man1/isql.1%{?ext_man}