commit 7abd6f88f7b21ed2745aa5d2b845223058dd445a
Author: Jakub Bogusz <[email protected]>
Date:   Mon Oct 18 18:49:12 2021 +0200

    - updated to 2.0.0
    - added format patch (fixes build with -Werror=format-security)

 gingerblue-format.patch | 13 +++++++++++++
 gingerblue.spec         |  8 +++++---
 2 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/gingerblue.spec b/gingerblue.spec
index 19c2858..a905125 100644
--- a/gingerblue.spec
+++ b/gingerblue.spec
@@ -1,12 +1,13 @@
 Summary:       Free Music Software for GNOME
 Summary(pl.UTF-8):     Wolnodostępne oprogramowanie muzyczne dla GNOME
 Name:          gingerblue
-Version:       1.8.0
+Version:       2.0.0
 Release:       1
 License:       GPL v3
 Group:         X11/Applications
-Source0:       
https://download.gnome.org/sources/gingerblue/1.8/%{name}-%{version}.tar.xz
-# Source0-md5: 6dc53c67810d179bdee8083a270f71ba
+Source0:       
https://download.gnome.org/sources/gingerblue/2.0/%{name}-%{version}.tar.xz
+# Source0-md5: 9c128993364092de48fcc1cde83b7eba
+Patch0:                %{name}-format.patch
 URL:           https://wiki.gnome.org/Apps/Gingerblue
 BuildRequires: autoconf >= 2.69
 BuildRequires: automake >= 1:1.11
@@ -54,6 +55,7 @@ oryginalną muzykę w Internecie z poziomu środowiska GNOME.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__intltoolize}
diff --git a/gingerblue-format.patch b/gingerblue-format.patch
new file mode 100644
index 0000000..1e61d26
--- /dev/null
+++ b/gingerblue-format.patch
@@ -0,0 +1,13 @@
+--- gingerblue-2.0.0/src/gingerblue-main.c.orig        2021-10-16 
04:33:10.000000000 +0200
++++ gingerblue-2.0.0/src/gingerblue-main.c     2021-10-18 18:17:27.586099789 
+0200
+@@ -526,8 +526,8 @@ int main(int argc, char **argv)
+       fprintf(xspf, "<playlist version=\"1\" 
xmlns=\"http://xspf.org/ns/0/\";>\n");
+       fprintf(xspf, "<trackList>\n");
+       fprintf(xspf, "<track>\n");
+-      fprintf(xspf, g_strconcat("<title>", 
gtk_entry_get_text(GTK_ENTRY(song_entry)), "</title>\n", NULL));
+-      fprintf(xspf, g_strconcat("<location>file://", 
gtk_entry_get_text(GTK_ENTRY(computer_entry)), "/", 
gtk_entry_get_text(GTK_ENTRY(recording_entry)), "</location>\n", NULL));
++      fprintf(xspf, "<title>%s</title>\n", 
gtk_entry_get_text(GTK_ENTRY(song_entry)));
++      fprintf(xspf, "<location>file://%s/%s</location>\n", 
gtk_entry_get_text(GTK_ENTRY(computer_entry)), 
gtk_entry_get_text(GTK_ENTRY(recording_entry)));
+       fprintf(xspf, "</track>\n");
+       fprintf(xspf, "</trackList>\n");
+       fprintf(xspf, "</playlist>\n");
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gingerblue.git/commitdiff/7abd6f88f7b21ed2745aa5d2b845223058dd445a

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to