]> git.pld-linux.org Git - packages/Xlt.git/commitdiff
- added format patch (fixes build with -Werror=format-security) auto/th/Xlt-13.0.13-2
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 13 May 2018 06:43:58 +0000 (08:43 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 13 May 2018 06:43:58 +0000 (08:43 +0200)
- license is LGPL (2+) as stated in source files
- release 2

Xlt-format.patch [new file with mode: 0644]
Xlt.spec

diff --git a/Xlt-format.patch b/Xlt-format.patch
new file mode 100644 (file)
index 0000000..d01965d
--- /dev/null
@@ -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,
index e888f501590404799e65b4356777f9d2a741e017..80486c424fc5d7a628abdd089b9866820f963fd6 100644 (file)
--- 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)
This page took 0.052837 seconds and 4 git commands to generate.