summaryrefslogtreecommitdiffstats
path: root/distro
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2012-05-12 22:03:53 +0300
committerDavid Sommerseth <davids@redhat.com>2012-06-01 13:47:05 +0200
commit46977f29077521802f0cb6ab3cd4c894b9d4f5f6 (patch)
treef5ad535671b9cf35d8cbb361a1a936f2573fc8a9 /distro
parent03d9cb1ec6432ce218dbff5e0675cd5250a40ca3 (diff)
downloadopenvpn-46977f29077521802f0cb6ab3cd4c894b9d4f5f6.zip
openvpn-46977f29077521802f0cb6ab3cd4c894b9d4f5f6.tar.gz
openvpn-46977f29077521802f0cb6ab3cd4c894b9d4f5f6.tar.xz
build: insall README* document using build system
Purpose: make distro packager task simpler, more flexible to provide more documentation without changing the packaging script. Remove installation related documents from rpm as package already installed when viewed. +Workaround rpm bug[1]. [1] http://rpm.org/ticket/836 Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Acked-by: David Sommerseth <davids@redhat.com> Message-Id: 1336849433-23066-1-git-send-email-alon.barlev@gmail.com URL: http://article.gmane.org/gmane.network.openvpn.devel/6536 Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'distro')
-rw-r--r--distro/rpm/openvpn.spec.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/distro/rpm/openvpn.spec.in b/distro/rpm/openvpn.spec.in
index 3d22764..3c316bf 100644
--- a/distro/rpm/openvpn.spec.in
+++ b/distro/rpm/openvpn.spec.in
@@ -164,6 +164,10 @@ done
%__mv -f src/plugins/README src/plugins/README.plugins
+# Install extra %doc stuff
+cp -r AUTHORS ChangeLog NEWS contrib/ sample/ src/plugins/README.* \
+ "%{buildroot}/%{_docdir}/%{name}-%{version}"
+
#
# Clean section
#
@@ -207,13 +211,15 @@ fi
#
# Files section
#
+# don't use %doc as old rpmbuild removes it[1].
+# [1] http://rpm.org/ticket/836
%files
%defattr(-,root,root)
-%doc AUTHORS ChangeLog COPYING COPYRIGHT.GPL INSTALL NEWS PORTS README
%{_mandir}
%{_sbindir}/%{name}
%{_datadir}/%{name}
+%{_docdir}/%{name}-%{version}
%dir /etc/%{name}
%if "%{VENDOR}" == "SuSE"
/etc/init.d/%{name}
@@ -221,9 +227,6 @@ fi
/etc/rc.d/init.d/%{name}
%endif
-# Install extra %doc stuff
-%doc contrib/ sample/ src/plugins/README.*
-
%files devel
%defattr(-,root,root)
%{_includedir}/*