--- rpms/softethervpn/contribs9/softethervpn.spec 2020/03/27 20:27:23 1.1 +++ rpms/softethervpn/contribs9/softethervpn.spec 2020/03/27 22:31:48 1.3 @@ -1,12 +1,14 @@ %define majorversion 4 -%define minorversion 19 -%define buildversion 9582 -%define dateversion 2015.10.06 +%define minorversion 34 +%define buildversion 9744 +%define dateversion 2020.03.20 %define buildrelease beta +%define version %{majorversion}.%{minorversion}.%{buildversion} +%define release 1 Name: softethervpn Version: %{majorversion}.%{minorversion}.%{buildversion} -Release: 1%{?dist} +Release: %{release}%{dist} Summary: An Open-Source Free Cross-platform Multi-protocol VPN Program Group: Applications/Internet @@ -29,11 +31,17 @@ SoftEther VPN is one of the world's most %prep %setup -q -n v%{majorversion}.%{minorversion}-%{buildversion} +%ifarch i386 i686 +cp centos/SOURCES/linux_32bit.mak Makefile +%else +cp centos/SOURCES/linux_64bit.mak Makefile +%endif + %build %ifarch i386 i686 -cp $RPM_SOURCE_DIR/linux_32bit.mak Makefile +#cp $RPM_SOURCE_DIR/v%{majorversion}.%{minorversion}-%{buildversion}/linux_32bit.mak Makefile %else -cp $RPM_SOURCE_DIR/linux_64bit.mak Makefile +#cp $RPM_SOURCE_DIR/v%{majorversion}.%{minorversion}-%{buildversion}/linux_64bit.mak Makefile %endif make @@ -42,11 +50,13 @@ rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT install -m 755 -d $RPM_BUILD_ROOT/usr/bin/ install -m 755 -d $RPM_BUILD_ROOT/etc/rc.d/init.d -install -m 755 $RPM_SOURCE_DIR/scripts/vpnserver $RPM_BUILD_ROOT/usr/bin/vpnserver -install -m 755 $RPM_SOURCE_DIR/scripts/vpnbridge $RPM_BUILD_ROOT/usr/bin/vpnbridge -install -m 755 $RPM_SOURCE_DIR/scripts/vpnclient $RPM_BUILD_ROOT/usr/bin/vpnclient -install -m 755 $RPM_SOURCE_DIR/scripts/vpncmd $RPM_BUILD_ROOT/usr/bin/vpncmd -install -m 755 $RPM_SOURCE_DIR/init.d/vpnserver $RPM_BUILD_ROOT/etc/rc.d/init.d/vpnserver +pwd +ls -lR +install -m 755 centos/SOURCES/scripts/vpnserver $RPM_BUILD_ROOT/usr/bin/vpnserver +install -m 755 centos/SOURCES/scripts/vpnbridge $RPM_BUILD_ROOT/usr/bin/vpnbridge +install -m 755 centos/SOURCES/scripts/vpnclient $RPM_BUILD_ROOT/usr/bin/vpnclient +install -m 755 centos/SOURCES/scripts/vpncmd $RPM_BUILD_ROOT/usr/bin/vpncmd +install -m 755 centos/SOURCES/init.d/vpnserver $RPM_BUILD_ROOT/etc/rc.d/init.d/vpnserver %clean rm -rf $RPM_BUILD_ROOT @@ -87,6 +97,9 @@ if [ $1 -eq 0 ]; then fi %changelog +* Fri Mar 27 2020 Jean-Philipe Pialasse 4.34.9744-1.sme +- initial release SME 9 + * Wed Sep 30 2015 Jeff Tang - 4.19.9582-1 - Update upstream to 4.19.9582-beta