- Install license

- replace_manpage_with_links.sh: replace named links with symlinks
  and stop using fdupes as it just linked linked manpages

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/neon?expand=0&rev=43
This commit is contained in:
Adam Majer 2018-03-20 09:27:04 +00:00 committed by Git OBS Bridge
parent 17d1f79171
commit 989cd53bd5
3 changed files with 28 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Mar 20 08:41:59 UTC 2018 - adam.majer@suse.de
- Install license
- replace_manpage_with_links.sh: replace named links with symlinks
and stop using fdupes as it just linked linked manpages
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 19 13:46:17 UTC 2018 - marco.strigl@suse.com Mon Mar 19 13:46:17 UTC 2018 - marco.strigl@suse.com

View File

@ -27,10 +27,10 @@ Source0: http://www.webdav.org/neon/neon-%{version}.tar.gz
Source1: http://www.webdav.org/neon/neon-%{version}.tar.gz.asc Source1: http://www.webdav.org/neon/neon-%{version}.tar.gz.asc
Source2: %{name}.keyring Source2: %{name}.keyring
Source3: baselibs.conf Source3: baselibs.conf
Source10: replace_manpage_with_links.sh
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/Packaging/Patches # PATCH-MISSING-TAG -- See http://wiki.opensuse.org/Packaging/Patches
Patch0: %{name}-0.28.4-bloat.patch Patch0: %{name}-0.28.4-bloat.patch
Patch1: fix_timeout_tests_for_ppc64le.patch Patch1: fix_timeout_tests_for_ppc64le.patch
BuildRequires: fdupes
BuildRequires: krb5-devel BuildRequires: krb5-devel
BuildRequires: libexpat-devel BuildRequires: libexpat-devel
BuildRequires: libopenssl-devel BuildRequires: libopenssl-devel
@ -91,7 +91,7 @@ make %{?_smp_mflags}
%install %install
make DESTDIR=%{buildroot} docdir=%{_defaultdocdir}/%{name} install install-man install-html %{?_smp_mflags} make DESTDIR=%{buildroot} docdir=%{_defaultdocdir}/%{name} install install-man install-html %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
%fdupes -s %{buildroot} find %{buildroot}%{_mandir} -type f -exec bash %{S:10} {} \;
%check %check
make %{?_smp_mflags} check make %{?_smp_mflags} check
@ -102,6 +102,7 @@ make %{?_smp_mflags} check
%files -n libneon27 %files -n libneon27
%doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO %doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
%{_libdir}/*.so.27* %{_libdir}/*.so.27*
%license src/COPYING.LIB
%files -n libneon-devel %files -n libneon-devel
%doc %{_defaultdocdir}/%{name} %doc %{_defaultdocdir}/%{name}

View File

@ -0,0 +1,18 @@
#!/bin/bash
# Is this just a linked manpage?
echo "Processing $1"
grep '^\.so man\([0-7]\?\)/.*\1$' "$1" || exit 0
# extract target name
TARGET=`sed -e 's/^\.so man\([0-7]\?\)\///' "$1"`
MANDIR=`dirname "$1"`
# verify that target exists
[ -e "$MANDIR"/"$TARGET" ] || exit 1
# replace manpage reload with symlink
echo " -> $TARGET"
rm "$1"
ln -s $TARGET "$1"