[flush/f13/master] Initial import (675914)

Oksana Kurysheva avienda at fedoraproject.org
Fri Mar 11 19:50:29 UTC 2011


commit 26c27acb7a1e779e7dac8b5702d649b5315d89f5
Author: Avienda <okurysheva at yahoo.com>
Date:   Fri Mar 11 22:50:39 2011 +0300

    Initial import (675914)

 .gitignore        |    1 +
 flush-dbus1.patch |   35 +++++++++++++++++++
 flush-dbus2.patch |   41 ++++++++++++++++++++++
 flush.desktop     |   10 +++++
 flush.spec        |   99 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 6 files changed, 187 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5f17ecc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/flush-0.9.10.tar.bz2
diff --git a/flush-dbus1.patch b/flush-dbus1.patch
new file mode 100644
index 0000000..80b211e
--- /dev/null
+++ b/flush-dbus1.patch
@@ -0,0 +1,35 @@
+--- a/configure.ac.orig 2011-03-05 17:44:34.000000000 +0300
++++ b/configure.ac	2011-03-09 18:15:42.670527001 +0300
+@@ -182,16 +182,13 @@
+ 			APP_CPPFLAGS="$APP_CPPFLAGS $dbus_CFLAGS"
+ 			APP_LDADD="$APP_LDADD $dbus_LIBS"
+ 
+-			DBUSXX_CPPFLAGS='-I $(top_srcdir)/dbus-c++/include'
+-			DBUSXX_LIBRARIES='$(top_builddir)/dbus-c++/src/.libs/libdbus-c++-1.a'
+-			AC_SUBST([DBUSXX_XML2CPP], [['$(top_builddir)/dbus-c++/tools/dbusxx-xml2cpp']])
+-
+-			APP_CPPFLAGS="$APP_CPPFLAGS $DBUSXX_CPPFLAGS"
+-			APP_DEPENDENCIES="$APP_DEPENDENCIES $DBUSXX_LIBRARIES"
+-			APP_LDADD="$APP_LDADD $DBUSXX_LIBRARIES"
+-
+-			MLIB_SET_CUSTOM_LIBRARY([[dbus_cxx]], [[$DBUSXX_CPPFLAGS]], [[$DBUSXX_LIBRARIES]])
+-		dnl DBus <--
++		dnl dbus-c++ -->
++		        PKG_CHECK_MODULES([dbus_cxx], [dbus-c++-1])
++		        APP_CPPFLAGS="$APP_CPPFLAGS $dbus_cxx_CFLAGS"
++		        APP_LDADD="$APP_LDADD $dbus_cxx_LIBS"
++		
++		        AC_SUBST([DBUSXX_XML2CPP], [['dbusxx-xml2cpp']])
++		dnl dbus-c++ <--
+ 
+ 		dnl Gettext
+ 		APP_LDADD="$APP_LDADD $LIBINTL"
+@@ -266,8 +263,6 @@
+ dnl Application flags <--
+ 
+ dnl Libraries inside of the package
+-PACKAGE_LIBRARIES_SUBDIRS="dbus-c++"
+-AC_CONFIG_SUBDIRS([dbus-c++])
+ AC_SUBST([PACKAGE_LIBRARIES_SUBDIRS])
+ 
+ dnl Summary report
diff --git a/flush-dbus2.patch b/flush-dbus2.patch
new file mode 100644
index 0000000..e51e8a5
--- /dev/null
+++ b/flush-dbus2.patch
@@ -0,0 +1,41 @@
+--- a/src/main.cpp.orig	2010-07-03 12:10:22.000000000 +0400
++++ b/src/main.cpp	2011-03-09 17:47:05.031527001 +0300
+@@ -974,36 +974,8 @@
+ 		if(is_gui_mode() && !cmd_options.only_pass)
+ 		{
+ 			// Определяем, являемся ли мы хозяином сессии -->
+-				switch(dbus_connection->request_name(dbus_name.c_str(), DBUS_NAME_FLAG_DO_NOT_QUEUE))
+-				{
+-					case DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER:
+-						is_owner = true;
+-						break;
+-
+-					case DBUS_REQUEST_NAME_REPLY_EXISTS:
+-						break;
+-
+-					case DBUS_REQUEST_NAME_REPLY_IN_QUEUE:
+-						MLIB_W(
+-							_("Unexpected DBus behavior"),
+-							_("Name request has been added to queue, but queuing has been forbidden.")
+-						);
+-						break;
+-
+-					case DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER:
+-						MLIB_W(
+-							_("Unexpected DBus behavior while requesting name"),
+-							_("DBus saying that application is already name owner, but name request has not been sent yet.")
+-						);
+-						break;
+-
+-					default:
+-						MLIB_W(
+-							_("Unexpected DBus behavior while requesting name"),
+-							_("Unknown reply has been gotten.")
+-						);
+-						break;
+-				}
++			dbus_connection->request_name(dbus_name.c_str(), DBUS_NAME_FLAG_DO_NOT_QUEUE);
++ 			is_owner = true;
+ 			// Определяем, являемся ли мы хозяином сессии <--
+ 		}
+ 		else
diff --git a/flush.desktop b/flush.desktop
new file mode 100644
index 0000000..dcd8925
--- /dev/null
+++ b/flush.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Flush
+GenericName=BitTorrent client
+Comment=GTK-based BitTorrent client
+Exec=flush
+Icon=flush
+Terminal=false
+Type=Application
+Categories=Network;FileTransfer;P2P;
+MimeType=application/x-bittorrent;
diff --git a/flush.spec b/flush.spec
new file mode 100644
index 0000000..7c24177
--- /dev/null
+++ b/flush.spec
@@ -0,0 +1,99 @@
+Name:			flush
+Version:		0.9.10
+Release:		1%{?dist}
+Summary:		GTK-based BitTorrent client
+
+License:		GPLv3+
+Group:			Applications/Internet
+URL:			http://flush.sourceforge.net/
+Source0:		http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2
+Source1:		%{name}.desktop
+Patch0:			%{name}-dbus1.patch
+Patch1:			%{name}-dbus2.patch
+
+BuildRequires:		bison-devel
+BuildRequires:		flex
+BuildRequires:		glibmm24-devel >= 2.16
+BuildRequires:		hicolor-icon-theme
+BuildRequires:		expat-devel
+BuildRequires:		libconfig-devel
+BuildRequires:		rb_libtorrent-devel
+BuildRequires:		libglademm24-devel
+BuildRequires:		libnotify-devel
+BuildRequires:		desktop-file-utils
+BuildRequires:		libtorrent
+BuildRequires:		dbus-c++-devel
+
+Requires:		hicolor-icon-theme
+
+%description
+Flush - A GTK-based BitTorrent client. 
+
+Features:
+ * Controlling running instance by command line interface.
+ * Running many instances with different configs from the same user.
+ * Automatic copying finished downloads to specified directory.
+ * Setting custom download path for each file of the torrent.
+ * Ability to choose torrent file's character set encoding.
+ * Automatic torrents loading from specified directory.
+ * Automatic pausing and removing old torrents.
+ * Temporary pausing and resuming torrents.
+ * Overall and current session statistics.
+ * Creating your own torrent files.
+ * IP filter.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+autoreconf -ivf
+%configure
+
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+
+iconv -f koi8-r -t utf-8 man/ru/flush.1 > man/ru/flush.1.new
+mv -f man/ru/flush.1.new man/ru/flush.1
+make install DESTDIR=%{buildroot}
+desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
+rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache
+
+install -dD -m 755 %{buildroot}%{_datadir}/pixmaps
+install -m644 %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/flush.png \
+	%{buildroot}%{_datadir}/pixmaps
+
+%find_lang %{name}
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+	
+
+%files -f %{name}.lang
+%defattr(-,root,root)
+%doc AUTHORS ChangeLog COPYING
+%{_bindir}/*
+%{_datadir}/icons/*/*/apps/*
+%{_datadir}/pixmaps/%{name}.png
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/%{name}/
+%{_mandir}/man?/*
+%{_mandir}/ru/man?/*
+
+
+
+%changelog
+* Mon Feb 7 2011 Oksana Kurysheva <okurysheva at yahoo.com> - 0.9.10-1
+- initial build for Fedora
diff --git a/sources b/sources
index e69de29..f6f1780 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9c605f3eb45d67a82b45c3ccfe9a51ad  flush-0.9.10.tar.bz2


More information about the scm-commits mailing list