diff --git a/libvisual-0.4.0-format-security.patch b/libvisual-0.4.0-format-security.patch new file mode 100644 index 0000000000000000000000000000000000000000..ab1e4d6bcd01d413404db964cc336f4d4152dd31 --- /dev/null +++ b/libvisual-0.4.0-format-security.patch @@ -0,0 +1,17 @@ +diff -up libvisual-0.4.0/libvisual/lv_plugin.c.format-security libvisual-0.4.0/libvisual/lv_plugin.c +--- libvisual-0.4.0/libvisual/lv_plugin.c.format-security 2014-06-11 15:38:36.786199952 -0400 ++++ libvisual-0.4.0/libvisual/lv_plugin.c 2014-06-11 15:38:45.990132144 -0400 +@@ -442,11 +442,11 @@ VisList *visual_plugin_registry_filter ( + + visual_list_add (list, ref); + } else if (ret != FALSE) { +- visual_log (VISUAL_LOG_WARNING, visual_error_to_string (ret)); ++ visual_log (VISUAL_LOG_WARNING, "%s", visual_error_to_string (ret)); + } + } + else if (ret != FALSE) { /* FIXME XXX TODO, patch frmo duilio check how this works */ +- visual_log (VISUAL_LOG_WARNING, visual_error_to_string (ret)); ++ visual_log (VISUAL_LOG_WARNING, "%s", visual_error_to_string (ret)); + } + } + diff --git a/libvisual-0.4.0.tar.gz b/libvisual-0.4.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..eee8f333ba1305349658b0a39cd427ad0659e7ec Binary files /dev/null and b/libvisual-0.4.0.tar.gz differ diff --git a/libvisual.spec b/libvisual.spec new file mode 100644 index 0000000000000000000000000000000000000000..3fa5fc26fbb0435721c6c22998b63f0d822e448d --- /dev/null +++ b/libvisual.spec @@ -0,0 +1,90 @@ +%define anolis_release 1 +%global smallversion 0.4 + +Name: libvisual +Version: 0.4.0 +Release: %{anolis_release}%{?dist} +Epoch: 1 +Summary: Abstraction library for audio visualisation plugins +License: LGPLv2+ +URL: http://libvisual.sf.net +Source0: http://dl.sf.net/libvisual/libvisual-%{version}.tar.gz +BuildRequires: gcc-c++ +BuildRequires: make +BuildRequires: xorg-x11-proto-devel + +#fix format-security +Patch0: libvisual-0.4.0-format-security.patch + +%description +Libvisual is an abstraction library that comes between applications and +audio visualisation plugins. + +Often when it comes to audio visualisation plugins or programs that create +visuals they do depend on a player or something else, basically there is no +general framework that enable application developers to easy access cool +audio visualisation plugins. Libvisual wants to change this by providing +an interface towards plugins and applications, through this easy to use +interface applications can easily access plugins and since the drawing is +done by the application it also enables the developer to draw the visual +anywhere he wants. + +%package devel +Summary: Development files for libvisual +Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} + +%description devel +Libvisual is an abstraction library that comes between applications and +audio visualisation plugins. + +This package contains the files needed to build an application with libvisual. + +%prep +%setup -q +%patch0 -p1 -b .format-security + +%build +%global optflags %{optflags} -fno-strict-aliasing +%configure +%make_build + +%install +%make_install + +# Avoid multilib conflicts +case `uname -i` in + x86_64) + wordsize="64" + ;; + *) + wordsize="" + ;; +esac + +if test -n "$wordsize" +then + mv %{buildroot}%{_includedir}/libvisual-%{smallversion}/libvisual/lvconfig.h \ + %{buildroot}%{_includedir}/libvisual-%{smallversion}/libvisual/lvconfig-$wordsize.h + +fi + +find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' + +%find_lang %{name}-%{smallversion} + +%files -f %{name}-%{smallversion}.lang +%doc AUTHORS ChangeLog NEWS README TODO +%license COPYING +%{_libdir}/*.so.* + +%files devel +%doc README NEWS TODO AUTHORS +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%{_includedir}/%{name}-%{smallversion} + + +%changelog +* Fri Apr 15 2022 mgb01105731 - 1:0.4.0-1 +- Init from upstream version 0.4.0 +