[packages/zh-autoconvert] - rel 3, xchat is gone, don't build plugin package

baggins baggins at pld-linux.org
Sat Mar 1 02:05:43 CET 2025


commit a54f3329fec1911233985893191630b784fe570b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Mar 1 01:11:02 2025 +0100

    - rel 3, xchat is gone, don't build plugin package

 zh-autoconvert.spec | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/zh-autoconvert.spec b/zh-autoconvert.spec
index c2396c3..34ba3fa 100644
--- a/zh-autoconvert.spec
+++ b/zh-autoconvert.spec
@@ -1,8 +1,12 @@
+#
+# Conditional build:
+%bcond_with	xchat		# install xchat plugin
+#
 Summary:	Chinese HZ/GB/BIG5/UTF-16/UTF-7/UTF-8 encodings auto-converter
 Summary(pl.UTF-8):	Automatyczny konwerter kodowań chińskich znaków HZ/GB/BIG5/UTF-16/UTF-7/UTF-8
 Name:		zh-autoconvert
 Version:	0.3.16
-Release:	2
+Release:	3
 License:	GPL v2+
 Group:		Applications/Text
 Source0:	http://ftp.debian.org/debian/pool/main/z/zh-autoconvert/%{name}_%{version}.orig.tar.gz
@@ -90,6 +94,8 @@ install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/xchat/plugins,%{_includedir}}
 	DESTDIR=$RPM_BUILD_ROOT \
 	LIBDIR=%{_libdir}
 
+%{!?with_xchat:%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/xchat}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -114,7 +120,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/libhz.a
 
+%if %{with xchat}
 %files -n xchat-zh-autoconvert
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/xchat/plugins/xchat-autob5.so
 %attr(755,root,root) %{_libdir}/xchat/plugins/xchat-autogb.so
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/zh-autoconvert.git/commitdiff/a54f3329fec1911233985893191630b784fe570b



More information about the pld-cvs-commit mailing list