[packages/Xlt] - added format patch (fixes build with -Werror=format-security) - license is LGPL (2+) as stated in
qboosh
qboosh at pld-linux.org
Sun May 13 08:43:15 CEST 2018
commit 7660d975f7111f750c26b58e422f2724347788ff
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun May 13 08:43:58 2018 +0200
- added format patch (fixes build with -Werror=format-security)
- license is LGPL (2+) as stated in source files
- release 2
Xlt-format.patch | 11 +++++++++++
Xlt.spec | 20 +++++++++++++++-----
2 files changed, 26 insertions(+), 5 deletions(-)
---
diff --git a/Xlt.spec b/Xlt.spec
index e888f50..80486c4 100644
--- a/Xlt.spec
+++ b/Xlt.spec
@@ -2,11 +2,12 @@ Summary: The LessTif/Motif extension library
Summary(pl.UTF-8): Biblioteka rozszerzeń do LessTifa/Motifa
Name: Xlt
Version: 13.0.13
-Release: 1
-License: GPL
+Release: 2
+License: LGPL v2+
Group: X11/Libraries
Source0: http://dl.sourceforge.net/xlt/%{name}-%{version}.tar.gz
# Source0-md5: 46b6259c7637d6e9b87520eb91b6ea51
+Patch0: %{name}-format.patch
URL: http://xlt.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
@@ -51,6 +52,7 @@ Biblioteka statyczna Xlt.
%prep
%setup -q
+%patch0 -p1
touch MaintainerMode.am
@@ -73,6 +75,11 @@ install -d $RPM_BUILD_ROOT%{_aclocaldir}
DESTDIR=$RPM_BUILD_ROOT \
mandir=%{_mandir}
+# packaged as %doc in -devel
+%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/Xlt
+# packaged in motif
+%{__rm} $RPM_BUILD_ROOT%{_aclocaldir}/ac_find_motif.m4
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -81,8 +88,9 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README
-%attr(755,root,root) %{_libdir}/libXlt.so.*.*
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/libXlt.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libXlt.so.0
%files devel
%defattr(644,root,root,755)
@@ -92,7 +100,9 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/Xlt
%{_aclocaldir}/ac_find_xlt.m4
%{_aclocaldir}/ac_find_xpm.m4
-%{_mandir}/man3/*
+%{_mandir}/man3/StrokeInstall.3*
+%{_mandir}/man3/Strokes.3*
+%{_mandir}/man3/Xlt*.3*
%files static
%defattr(644,root,root,755)
diff --git a/Xlt-format.patch b/Xlt-format.patch
new file mode 100644
index 0000000..d01965d
--- /dev/null
+++ b/Xlt-format.patch
@@ -0,0 +1,11 @@
+--- Xlt-13.0.13/lib/EntrySB.c.orig 2001-08-16 11:18:04.000000000 +0200
++++ Xlt-13.0.13/lib/EntrySB.c 2018-05-12 23:04:01.881363705 +0200
+@@ -303,7 +303,7 @@
+ if (!sscanf(((XltEntrySBWidget)self)->xltEntrySB.maxval,"%f",&((XltEntrySBWidget)self)->xltEntrySB.internal_max))
+ return;
+
+- sprintf(((XltEntrySBWidget)self)->xltEntrySB.value_buf,((XltEntrySBWidget)self)->xltEntrySB.value);
++ strcpy(((XltEntrySBWidget)self)->xltEntrySB.value_buf,((XltEntrySBWidget)self)->xltEntrySB.value);
+ rowcol = XtVaCreateManagedWidget
+ ("box", xmRowColumnWidgetClass, self,
+ XmNorientation, XmHORIZONTAL,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/Xlt.git/commitdiff/7660d975f7111f750c26b58e422f2724347788ff
More information about the pld-cvs-commit
mailing list