Accepting request 1233845 from network:vpn
- Set %_buildshell because of bashisms in build recipe ([[ and =~) - Replace over-the-top `find -exec rm` by just -delete (forwarded request 1232791 from jengelh) OBS-URL: https://build.opensuse.org/request/show/1233845 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvpn?expand=0&rev=117
This commit is contained in:
commit
1cb5b5ef09
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 20 08:13:18 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Set %_buildshell because of bashisms in build recipe
|
||||
- Replace over-the-top `find -exec rm` by just -delete
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 10 08:13:54 UTC 2024 - Rahul Jain <rahul.jain@suse.com>
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%define _buildshell /bin/bash
|
||||
%if ! %{defined _rundir}
|
||||
%define _rundir %{_localstatedir}/run
|
||||
%endif
|
||||
@ -121,7 +122,6 @@ This package provides the header file to build external plugins.
|
||||
%prep
|
||||
%autosetup -p0
|
||||
|
||||
|
||||
sed -e "s|\" __DATE__|$(date '+%%b %%e %%Y' -r version.m4)\"|g" \
|
||||
-i src/openvpn/options.c
|
||||
sed -e "s|@PLUGIN_LIBDIR@|%{_libdir}/openvpn/plugins|g" \
|
||||
@ -159,7 +159,7 @@ fi
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find %{buildroot} -type f -name "*.la" -print -exec rm -f {} +
|
||||
find %{buildroot} -type f -name "*.la" -print -delete
|
||||
mkdir -p %{buildroot}/%{_sysconfdir}/openvpn
|
||||
mkdir -p %{buildroot}/%{_rundir}/openvpn
|
||||
mkdir -p %{buildroot}/%{_datadir}/openvpn
|
||||
@ -179,7 +179,7 @@ install -m 755 %{SOURCE5} sample/sample-scripts/client-netconfig.down
|
||||
|
||||
# we install docs via spec into _defaultdocdir/name/management-notes.txt
|
||||
rm -rf %{buildroot}%{_datadir}/doc/{OpenVPN,%{name}}
|
||||
find sample -name .gitignore -exec rm -f {} +
|
||||
find sample -name .gitignore -delete
|
||||
|
||||
%pre
|
||||
%service_add_pre %{name}.target
|
||||
|
Loading…
x
Reference in New Issue
Block a user