Browse Source

openvpn change pkgdocdir into current marcro

Signed-off-by: basebuilder_pel7x64builder0 <basebuilder@powerel.org>
master
basebuilder_pel7x64builder0 7 years ago
parent
commit
cf2fe3211b
  1. 22
      SPECS/openvpn.spec

22
SPECS/openvpn.spec

@ -85,7 +85,7 @@ find contrib sample -type f -perm /100 \
--enable-selinux \ --enable-selinux \
--enable-systemd \ --enable-systemd \
--enable-x509-alt-username \ --enable-x509-alt-username \
--docdir=%{_pkgdocdir} \ --docdir=%{_docdir}/%{name} \
SYSTEMD_UNIT_DIR=%{_unitdir} \ SYSTEMD_UNIT_DIR=%{_unitdir} \
TMPFILES_DIR=%{_tmpfilesdir} \ TMPFILES_DIR=%{_tmpfilesdir} \
IPROUTE=/sbin/ip IPROUTE=/sbin/ip
@ -138,14 +138,14 @@ mkdir -m 0770 -p $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}
# DEPRECATED openvpn@.service ... this unit file will be removed in EPEL8 # DEPRECATED openvpn@.service ... this unit file will be removed in EPEL8
install -D -m 0644 %{SOURCE5} $RPM_BUILD_ROOT%{_unitdir}/ install -D -m 0644 %{SOURCE5} $RPM_BUILD_ROOT%{_unitdir}/


# Package installs into %%{_pkgdocdir} directly # Package installs into %%{_docdir}/%{name} directly
# Add various additional files # Add various additional files
cp -a AUTHORS ChangeLog contrib sample distro/systemd/README.systemd $RPM_BUILD_ROOT%{_pkgdocdir} cp -a AUTHORS ChangeLog contrib sample distro/systemd/README.systemd $RPM_BUILD_ROOT%{_docdir}/%{name}


# Remove some files which does not really belong here # Remove some files which does not really belong here
rm -f $RPM_BUILD_ROOT%{_pkgdocdir}/sample/Makefile{,.in,.am} rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/sample/Makefile{,.in,.am}
rm -f $RPM_BUILD_ROOT%{_pkgdocdir}/contrib/multilevel-init.patch rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/contrib/multilevel-init.patch
rm -rf $RPM_BUILD_ROOT%{_pkgdocdir}/sample/sample-keys rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/sample/sample-keys


%pre %pre
getent group openvpn &>/dev/null || groupadd -r openvpn getent group openvpn &>/dev/null || groupadd -r openvpn
@ -168,10 +168,10 @@ getent passwd openvpn &>/dev/null || \




%files %files
%{_pkgdocdir} %{_docdir}/%{name}
%exclude %{_pkgdocdir}/README.IPv6 %exclude %{_docdir}/%{name}/README.IPv6
%exclude %{_pkgdocdir}/README.mbedtls %exclude %{_docdir}/%{name}/README.mbedtls
%exclude %{_pkgdocdir}/sample/sample-plugins %exclude %{_docdir}/%{name}/sample/sample-plugins
%{_mandir}/man8/%{name}.8* %{_mandir}/man8/%{name}.8*
%{_sbindir}/%{name} %{_sbindir}/%{name}
%{_libdir}/%{name}/ %{_libdir}/%{name}/
@ -187,7 +187,7 @@ getent passwd openvpn &>/dev/null || \
%attr(0770,openvpn,openvpn) %{_sharedstatedir}/%{name} %attr(0770,openvpn,openvpn) %{_sharedstatedir}/%{name}


%files devel %files devel
%{_pkgdocdir}/sample/sample-plugins %{_docdir}/%{name}/sample/sample-plugins
%{_includedir}/openvpn-plugin.h %{_includedir}/openvpn-plugin.h
%{_includedir}/openvpn-msg.h %{_includedir}/openvpn-msg.h



Loading…
Cancel
Save