[phat] Initial import (#725128).
Brendan Jones
bsjones at fedoraproject.org
Mon Aug 8 12:08:22 UTC 2011
commit cdadef3d08273ef47ba6342097b9ee410c6dec88
Author: bsjones <brendan.jones.it at gmail.com>
Date: Mon Aug 8 22:08:05 2011 +1000
Initial import (#725128).
.gitignore | 1 +
phat-fix-fsf-address.patch | 26 +++++++
phat-unused-but-set-variable.patch | 143 ++++++++++++++++++++++++++++++++++++
phat.spec | 90 ++++++++++++++++++++++
sources | 1 +
5 files changed, 261 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..952bc95 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/phat-0.4.1.tar.gz
diff --git a/phat-fix-fsf-address.patch b/phat-fix-fsf-address.patch
new file mode 100644
index 0000000..e803d6d
--- /dev/null
+++ b/phat-fix-fsf-address.patch
@@ -0,0 +1,26 @@
+diff -Nurp phat-0.4.1//COPYING phat-0.4.1.fsf//COPYING
+--- phat-0.4.1//COPYING 2006-03-14 23:27:25.000000000 +1000
++++ phat-0.4.1.fsf//COPYING 2011-07-21 15:14:42.458523258 +1000
+@@ -2,7 +2,7 @@
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
++ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+diff -Nurp phat-0.4.1//phat/phatknob.h phat-0.4.1.fsf//phat/phatknob.h
+--- phat-0.4.1//phat/phatknob.h 2007-04-24 09:08:27.000000000 +1000
++++ phat-0.4.1.fsf//phat/phatknob.h 2011-07-21 15:15:36.007269033 +1000
+@@ -16,8 +16,8 @@
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the Free
+- * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+- * MA 02111-1307, USA.
++ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
++ * MA 02110-1301 USA
+ */
+
+ #ifndef __PHAT_KNOB_H__
diff --git a/phat-unused-but-set-variable.patch b/phat-unused-but-set-variable.patch
new file mode 100644
index 0000000..ce2e9fd
--- /dev/null
+++ b/phat-unused-but-set-variable.patch
@@ -0,0 +1,143 @@
+diff -Nurp phat-0.4.1.orig//phat/phatfanslider.c phat-0.4.1//phat/phatfanslider.c
+--- phat-0.4.1.orig//phat/phatfanslider.c 2007-04-24 09:08:27.000000000 +1000
++++ phat-0.4.1//phat/phatfanslider.c 2011-07-21 13:42:55.003938754 +1000
+@@ -490,7 +490,6 @@ static void phat_fan_slider_destroy (Gtk
+ {
+ GtkObjectClass* klass;
+ PhatFanSlider* slider;
+- GtkWidget* widget;
+
+ debug ("destroy %p\n", object);
+
+@@ -499,7 +498,6 @@ static void phat_fan_slider_destroy (Gtk
+
+ klass = GTK_OBJECT_CLASS (parent_class);
+ slider = (PhatFanSlider*) object;
+- widget = GTK_WIDGET (object);
+
+ if (slider->arrow_cursor != NULL)
+ {
+diff -Nurp phat-0.4.1.orig//phat/phatknob.c phat-0.4.1//phat/phatknob.c
+--- phat-0.4.1.orig//phat/phatknob.c 2007-04-24 09:08:27.000000000 +1000
++++ phat-0.4.1//phat/phatknob.c 2011-07-21 13:43:39.998664060 +1000
+@@ -450,14 +450,12 @@ static void phat_knob_size_request (GtkW
+ }
+
+ static void phat_knob_size_allocate (GtkWidget *widget, GtkAllocation *allocation) {
+- PhatKnob *knob;
+
+ g_return_if_fail(widget != NULL);
+ g_return_if_fail(PHAT_IS_KNOB(widget));
+ g_return_if_fail(allocation != NULL);
+
+ widget->allocation = *allocation;
+- knob = PHAT_KNOB(widget);
+
+ if (GTK_WIDGET_REALIZED(widget)) {
+ gdk_window_move_resize(widget->window,
+diff -Nurp phat-0.4.1.orig//phat/phatpad.c phat-0.4.1//phat/phatpad.c
+--- phat-0.4.1.orig//phat/phatpad.c 2007-04-24 09:08:27.000000000 +1000
++++ phat-0.4.1//phat/phatpad.c 2011-07-21 13:45:54.127853341 +1000
+@@ -202,7 +202,6 @@ static void phat_pad_destroy (GtkObject*
+ {
+ GtkObjectClass* klass;
+ PhatPad* pad;
+- GtkWidget* widget;
+
+ debug ("destroy %p\n", object);
+
+@@ -211,7 +210,6 @@ static void phat_pad_destroy (GtkObject*
+
+ klass = GTK_OBJECT_CLASS (parent_class);
+ pad = (PhatPad*) object;
+- widget = GTK_WIDGET (object);
+
+
+ if (pad->pixmap)
+@@ -258,12 +256,10 @@ static void phat_pad_unrealize (GtkWidge
+
+ static void phat_pad_map (GtkWidget *widget)
+ {
+- PhatPad* pad;
+
+ debug ("map\n");
+
+ g_return_if_fail (PHAT_IS_PAD(widget));
+- pad = (PhatPad*) widget;
+ //debug ("during map\n");
+
+ GTK_WIDGET_CLASS (parent_class)->map (widget);
+@@ -276,12 +272,9 @@ static void phat_pad_map (GtkWidget *wid
+
+ static void phat_pad_unmap (GtkWidget *widget)
+ {
+- PhatPad* pad;
+-
+ debug ("unmap\n");
+
+ g_return_if_fail (PHAT_IS_PAD(widget));
+- pad = (PhatPad*) widget;
+
+ GTK_WIDGET_CLASS (parent_class)->unmap (widget);
+ }
+@@ -290,9 +283,6 @@ static void phat_pad_unmap (GtkWidget *w
+ static void phat_pad_size_allocate (GtkWidget* widget,
+ GtkAllocation* allocation)
+ {
+- PhatPad* pad;
+- pad = PHAT_PAD(widget);
+-
+ g_return_if_fail (widget != NULL);
+ g_return_if_fail (allocation != NULL);
+ g_return_if_fail (PHAT_IS_PAD(widget));
+@@ -331,7 +321,6 @@ static gboolean phat_pad_expose (GtkWidg
+ GdkEventExpose* event)
+ {
+ PhatPad* pad;
+- GtkAllocation* a;
+
+ g_return_val_if_fail (widget != NULL, FALSE);
+ g_return_val_if_fail (PHAT_IS_PAD(widget), FALSE);
+@@ -342,7 +331,6 @@ static gboolean phat_pad_expose (GtkWidg
+ debug ("expose\n");
+
+ pad = PHAT_PAD(widget);
+- a = &widget->allocation;
+
+ gdk_draw_drawable (widget->window,
+ widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
+diff -Nurp phat-0.4.1.orig//phat/phatsliderbutton.c phat-0.4.1//phat/phatsliderbutton.c
+--- phat-0.4.1.orig//phat/phatsliderbutton.c 2007-04-24 09:08:27.000000000 +1000
++++ phat-0.4.1//phat/phatsliderbutton.c 2011-07-21 13:48:26.992943841 +1000
+@@ -664,7 +664,6 @@ static void phat_slider_button_destroy (
+ {
+ GtkObjectClass* klass;
+ PhatSliderButton* button;
+- GtkWidget* widget;
+
+ //debug ("destroy %p\n", object);
+
+@@ -673,7 +672,6 @@ static void phat_slider_button_destroy (
+
+ klass = GTK_OBJECT_CLASS (parent_class);
+ button = (PhatSliderButton*) object;
+- widget = GTK_WIDGET (object);
+
+ if (button->arrow_cursor)
+ {
+@@ -1558,7 +1556,6 @@ static void update_size (PhatSliderButto
+ int label_len = 0;
+ int prefix_len = 0;
+ int postfix_len = 0;
+- double label_frac = 0;
+ double prefix_frac = 0;
+ double postfix_frac = 0;
+ int width = 0;
+@@ -1587,7 +1584,6 @@ static void update_size (PhatSliderButto
+
+ gtk_widget_size_request (button->entry, &req);
+
+- label_frac = label_len * 1.0 / width;
+ prefix_frac = prefix_len * 1.0 / width;
+ postfix_frac = postfix_len * 1.0 / width;
+ width_avail = req.width;
diff --git a/phat.spec b/phat.spec
new file mode 100644
index 0000000..a490b3f
--- /dev/null
+++ b/phat.spec
@@ -0,0 +1,90 @@
+Summary: A collection of GTK+ widgets useful for audio applications
+Name: phat
+Version: 0.4.1
+Release: 4%{?dist}
+License: GPLv2+
+Group: System Environment/Libraries
+URL: http://phat.berlios.de/
+Source0: http://download.berlios.de/%{name}/%{name}-%{version}.tar.gz
+# Remove unused variables - to be submitted upstream
+Patch0: phat-unused-but-set-variable.patch
+Patch1: phat-fix-fsf-address.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: gtk2-devel
+BuildRequires: libgnomecanvas-devel
+
+%description
+PHAT is a collection of GTK+ widgets geared toward pro-audio apps. The
+goal is to eliminate duplication of effort and provide some
+standardization (well, at least for GTK+ apps).
+
+%package devel
+Summary: Header files for PHAT
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Header files and additional libraries used for developing applications
+with the PHAT Audio Toolkit.
+
+%package docs
+Summary: Documentation for PHAT
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: gtk-doc
+
+%description docs
+Documentation for the PHAT Audio Toolkit.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+%configure --enable-debug --disable-static
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make DESTDIR=%{buildroot} install
+
+rm %{buildroot}%{_libdir}/libphat.*a
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO
+%{_bindir}/phat*
+%{_libdir}/libphat.so.*
+%{_datadir}/%{name}
+
+%files devel
+%defattr(-,root,root,-)
+%{_libdir}/libphat.so
+%{_libdir}/pkgconfig/%{name}.pc
+%{_includedir}/%{name}
+
+%files docs
+%{_datadir}/gtk-doc/html/%{name}
+
+%changelog
+* Sun Jul 24 2011 Brendan Jones <brendan.jones.it at gmail.com> 0.4.1-4
+- correct spelling
+
+* Sat Jul 23 2011 Brendan Jones <brendan.jones.it at gmail.com> 0.4.1-3
+- correct spelling
+
+* Sat Jul 23 2011 Brendan Jones <brendan.jones.it at gmail.com> 0.4.1-2
+- correct gtk-doc Requires and macros, removed static libraries
+- adjusted description and soname mask
+
+* Thu Jul 21 2011 Brendan Jones <brendan.jones.it at gmail.com> 0.4.1-1
+- initial build, seeded from CCRMA phat-0.4.1-1.fc14.ccrma.src.rpm
diff --git a/sources b/sources
index e69de29..d1dbdf5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b8d1d3ae0d7094d705a33753fe821ebc phat-0.4.1.tar.gz
More information about the scm-commits
mailing list