]> git.pld-linux.org Git - packages/libgtkhtml.git/commitdiff
add format-security.patch, drop unneeded -Wl,--as-needed auto/th/libgtkhtml-2.11.1-6
authorElan Ruusamäe <glen@delfi.ee>
Sun, 22 Mar 2015 11:56:24 +0000 (13:56 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 22 Mar 2015 11:56:39 +0000 (13:56 +0200)
format-security.patch [new file with mode: 0644]
libgtkhtml.spec

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..ab4b796
--- /dev/null
@@ -0,0 +1,40 @@
+--- libgtkhtml-2.11.1/libgtkhtml/a11y/htmlboxblocktextaccessible.c~    2015-03-22 13:54:32.000000000 +0200
++++ libgtkhtml-2.11.1/libgtkhtml/a11y/htmlboxblocktextaccessible.c     2015-03-22 13:54:34.104449611 +0200
+@@ -999,7 +999,7 @@
+       attrib_set = gail_misc_add_attribute (attrib_set,
+                                             ATK_TEXT_ATTR_PIXELS_ABOVE_LINES,
+                                             value);
+-      value = g_strdup_printf (atk_text_attribute_get_value (ATK_TEXT_ATTR_EDITABLE, 0));
++      value = g_strdup_printf ("%s", atk_text_attribute_get_value (ATK_TEXT_ATTR_EDITABLE, 0));
+       attrib_set = gail_misc_add_attribute (attrib_set,
+                                             ATK_TEXT_ATTR_EDITABLE,
+                                             value);
+@@ -1007,7 +1007,7 @@
+               int_value = 0;
+       else
+               int_value = 1;
+-      value = g_strdup_printf (atk_text_attribute_get_value (ATK_TEXT_ATTR_INVISIBLE, int_value));
++      value = g_strdup_printf ("%s", atk_text_attribute_get_value (ATK_TEXT_ATTR_INVISIBLE, int_value));
+       attrib_set = gail_misc_add_attribute (attrib_set,
+                                             ATK_TEXT_ATTR_INVISIBLE,
+                                             value);
+--- libgtkhtml-2.11.1/libgtkhtml/a11y/htmlboxtextaccessible.c~ 2015-03-22 13:55:18.000000000 +0200
++++ libgtkhtml-2.11.1/libgtkhtml/a11y/htmlboxtextaccessible.c  2015-03-22 13:55:20.216748906 +0200
+@@ -945,7 +945,7 @@
+       attrib_set = gail_misc_add_attribute (attrib_set,
+                                             ATK_TEXT_ATTR_PIXELS_ABOVE_LINES,
+                                             value);
+-      value = g_strdup_printf (atk_text_attribute_get_value (ATK_TEXT_ATTR_EDITABLE, 0));
++      value = g_strdup_printf ("%s", atk_text_attribute_get_value (ATK_TEXT_ATTR_EDITABLE, 0));
+       attrib_set = gail_misc_add_attribute (attrib_set,
+                                             ATK_TEXT_ATTR_EDITABLE,
+                                             value);
+@@ -953,7 +953,7 @@
+               int_value = 0;
+       else
+               int_value = 1;
+-      value = g_strdup_printf (atk_text_attribute_get_value (ATK_TEXT_ATTR_INVISIBLE, int_value));
++      value = g_strdup_printf ("%s", atk_text_attribute_get_value (ATK_TEXT_ATTR_INVISIBLE, int_value));
+       attrib_set = gail_misc_add_attribute (attrib_set,
+                                             ATK_TEXT_ATTR_INVISIBLE,
+                                             value);
index e4e53c5901654c55530ee7e1ff953dab979af0a1..fc1b983c6425e7e924edd9a830a346ea96e56ca9 100644 (file)
@@ -2,18 +2,19 @@ Summary:      GTK HTML widget 2
 Summary(pl.UTF-8):     Widget GTK HTML dla GNOME2
 Name:          libgtkhtml
 Version:       2.11.1
-Release:       5
+Release:       6
 License:       GPL/LGPL
 Group:         X11/Libraries
-Source0:       http://ftp.gnome.org/pub/gnome/sources/libgtkhtml/2.11/%{name}-%{version}.tar.bz2
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/libgtkhtml/2.11/%{name}-%{version}.tar.bz2
 # Source0-md5: a1d1a197dcff8c4571659deef5495e24
+Patch0:                format-security.patch
 URL:           http://gtkhtml2.codefactory.se/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: gail-devel >= 1.9.0
 BuildRequires: gtk+2-devel >= 2:2.10.0
-BuildRequires: libtool
 BuildRequires: libselinux-devel
+BuildRequires: libtool
 BuildRequires: libxml2-devel >= 1:2.6.26
 BuildRequires: pkgconfig
 BuildRequires: xorg-lib-libSM-devel
@@ -55,19 +56,18 @@ Statyczna wersja biblioteki GTK HTML 2.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-LDFLAGS="%{rpmldflags} -Wl,--as-needed"
 %configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
This page took 0.144958 seconds and 4 git commands to generate.