فهرست منبع

update spec for crossbuild

z3APA3A 5 سال پیش
والد
کامیت
8fd5a943a6
2فایلهای تغییر یافته به همراه16 افزوده شده و 2 حذف شده
  1. 15 1
      scripts/rh/3proxy.spec
  2. 1 1
      src/version.h

+ 15 - 1
scripts/rh/3proxy.spec

@@ -7,6 +7,7 @@ URL:            https://3proxy.org/
 Vendor:         3proxy.org 3proxy@3proxy.org
 Prefix:         %{_prefix}
 Packager: 	z3APA3A
+Target:		%{_target}
 Source:		https://github.com/%{packager}/%{name}/tarball/devel
 
 %description
@@ -20,7 +21,7 @@ ln -s Makefile.Linux Makefile
 make
 
 %install
-make DESTDIR=$RPM_BUILD_ROOT install
+make DESTDIR=%buildroot install
 
 %clean
 make clean
@@ -47,6 +48,18 @@ make clean
 /usr/local/3proxy/libexec/StringsPlugin.ld.so
 /usr/local/3proxy/libexec/TrafficPlugin.ld.so
 /usr/local/3proxy/libexec/TransparentPlugin.ld.so
+%if "%{cross}" == "yes"
+/usr/share/man/man3/3proxy.cfg.3
+/usr/share/man/man8/3proxy.8
+/usr/share/man/man8/ftppr.8
+/usr/share/man/man8/icqpr.8
+/usr/share/man/man8/pop3p.8
+/usr/share/man/man8/proxy.8
+/usr/share/man/man8/smtpp.8
+/usr/share/man/man8/socks.8
+/usr/share/man/man8/tcppm.8
+/usr/share/man/man8/udppm.8
+%else
 /usr/share/man/man3/3proxy.cfg.3.gz
 /usr/share/man/man8/3proxy.8.gz
 /usr/share/man/man8/ftppr.8.gz
@@ -57,6 +70,7 @@ make clean
 /usr/share/man/man8/socks.8.gz
 /usr/share/man/man8/tcppm.8.gz
 /usr/share/man/man8/udppm.8.gz
+%endif
 /var/log/3proxy
 
 %doc doc/*

+ 1 - 1
src/version.h

@@ -1,5 +1,5 @@
 #ifndef VERSION
-#define VERSION "3proxy-0.9-devel"
+#define VERSION "3proxy-10-devel"
 #endif
 #ifndef BUILDDATE
 #define BUILDDATE ""