diff options
author | Robin Lee <robinlee.sysu@gmail.com> | 2010-06-12 13:18:55 +0800 |
---|---|---|
committer | Robin Lee <robinlee.sysu@gmail.com> | 2010-06-12 13:18:55 +0800 |
commit | f59b6f1ac73a896cc40e91741f1e5d5ea2c398ff (patch) | |
tree | fbca6eaac4f8646075253d36c44a960738902875 /gsopcast | |
download | rpm-f59b6f1ac73a896cc40e91741f1e5d5ea2c398ff.tar.gz rpm-f59b6f1ac73a896cc40e91741f1e5d5ea2c398ff.tar.xz rpm-f59b6f1ac73a896cc40e91741f1e5d5ea2c398ff.zip |
Initial commit
Diffstat (limited to 'gsopcast')
-rw-r--r-- | gsopcast/F-13/gsopcast-build.patch | 25 | ||||
-rw-r--r-- | gsopcast/F-13/gsopcast-desktop.patch | 15 | ||||
-rw-r--r-- | gsopcast/F-13/gsopcast.spec | 54 |
3 files changed, 94 insertions, 0 deletions
diff --git a/gsopcast/F-13/gsopcast-build.patch b/gsopcast/F-13/gsopcast-build.patch new file mode 100644 index 0000000..80770df --- /dev/null +++ b/gsopcast/F-13/gsopcast-build.patch @@ -0,0 +1,25 @@ +diff -Naur gsopcast-0.4.0/src/channel.cc gsopcast-0.4.0-new/src/channel.cc +--- gsopcast-0.4.0/src/channel.cc 2008-01-09 17:55:39.000000000 +0800 ++++ gsopcast-0.4.0-new/src/channel.cc 2010-03-21 09:26:44.720387730 +0800 +@@ -206,8 +206,8 @@ + buf_pt = strstr(buf_pt, "type=\""); + buf_pt += strlen("type=\""); + found = FALSE; +- if (*buf_pt != '0') ///filter +- found = TRUE; ++ //if (*buf_pt != '0') ///filter ++ //found = TRUE; + /////////////statistics + //for (i = 0; i < 9; i++) { + for (i = 0; i < 12; i++) { +diff -Naur gsopcast-0.4.0/src/header.h gsopcast-0.4.0-new/src/header.h +--- gsopcast-0.4.0/src/header.h 2008-01-09 17:55:39.000000000 +0800 ++++ gsopcast-0.4.0-new/src/header.h 2010-03-21 09:23:44.978388612 +0800 +@@ -35,6 +35,7 @@ + #include <stdlib.h> + #include <signal.h> + #include <string> ++#include <string.h> + #include <unistd.h> + #include <termios.h> + #include <pthread.h> diff --git a/gsopcast/F-13/gsopcast-desktop.patch b/gsopcast/F-13/gsopcast-desktop.patch new file mode 100644 index 0000000..3043679 --- /dev/null +++ b/gsopcast/F-13/gsopcast-desktop.patch @@ -0,0 +1,15 @@ +--- gsopcast-0.4.0/data/gsopcast.desktop.in.in 2008-01-17 22:02:25.000000000 +0800 ++++ gsopcast-0.4.0-new/data/gsopcast.desktop.in.in 2010-03-21 09:51:53.007388317 +0800 +@@ -1,10 +1,9 @@ + [Desktop Entry] +-Encoding=UTF-8 + _Name=Gsopcast + _Comment=Streaming Direct Broadcast System based on P2P + Exec=gsopcast + Terminal=false + Type=Application + StartupNotify=true +-Icon=gsopcast.png +-Categories=Application;Multimedia;AudioVideo; ++Icon=gsopcast ++Categories=AudioVideo;Video; diff --git a/gsopcast/F-13/gsopcast.spec b/gsopcast/F-13/gsopcast.spec new file mode 100644 index 0000000..26f4665 --- /dev/null +++ b/gsopcast/F-13/gsopcast.spec @@ -0,0 +1,54 @@ +Name: gsopcast +Version: 0.4.0 +Release: 1%{?dist} +Summary: A GUI for SopCast P2P streaming media + +Group: Applications/Multimedia +License: GPLv2+ +URL: http://code.google.com/p/gsopcast/ +Source0: http://gsopcast.googlecode.com/files/%{name}-%{version}.tar.bz2 +Patch0: gsopcast-build.patch +Patch1: gsopcast-desktop.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gtk2-devel +BuildRequires: alsa-lib-devel +BuildRequires: intltool +Requires: /usr/bin/sp-sc + +%description +GSopCast is a GUI for SopCast P2P streaming media. + +%prep +%setup -q +%patch0 -p1 -b .fix +%patch1 -p1 -b .fix + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +%find_lang %{name} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files -f %{name}.lang +%defattr(-,root,root,-) +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/pixmaps/%{name}.png +%doc AUTHORS ChangeLog COPYING README + + + +%changelog +* Sun Mar 21 2010 Cheese Lee <cheeselee@126.com> - 0.4.0-1 +- Initial packaging by Cheese Lee |