GTK-based BitTorrent client
http://sourceforge.net/projects/flush/
Young and actively developed GTK-based bittorrent client,
based on libtorrent, has support for downloading and creating
torrents, automatically removing torrents after reaching
maximum number (set by user), automatical duplication of torrent
content into other directory.
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:dragonagat:gnome/flush && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
flush-0.4.1.tar.bz2 | 0000578339 565 KB | |
flush.changes | 0000000238 238 Bytes | |
flush.spec | 0000002004 1.96 KB | |
flush_desktopfile_fix.patch | 0000000924 924 Bytes | |
wizard.xml | 0000000842 842 Bytes |
Latest Revision
dragonagat
committed
(revision 9)
--This line, and those below, will be ignored-- Version Bump A flush-0.4.1.tar.bz2 D flush-0.4.tar.bz2 D flush-0.4_stringify_fix.patch A flush.changes M flush.spec D system_error_fix.patch Diff for working copy: . Index: flush.spec =================================================================== --- flush.spec (revision 8) +++ flush.spec (working copy) @@ -1,3 +1,7 @@ +## Copyright (C) 2009 Agat <dragonagat@gmail.com> +## This spec file is distributed under GPL3+ +## You can find text of the license at http://www.gnu.org/licenses/ + Name: flush BuildRequires: gcc-c++ boost-devel BuildRequires: gtk2-devel gtkmm2-devel @@ -5,13 +9,11 @@ BuildRequires: dbus-1-devel BuildRequires: libconfigduo-devel libtorrent-rasterbar-devel BuildRequires: update-desktop-files -Version: 0.4 +Version: 0.4.1 Release: 1 License: GPL v3 or later -Source: flush-0.4.tar.bz2 -Patch0: system_error_fix.patch -Patch1: flush-0.4_stringify_fix.patch -Patch2: flush_desktopfile_fix.patch +Source: flush-%{version}.tar.bz2 +Patch0: flush_desktopfile_fix.patch Group: Productivity/Networking/Web/Utilities Summary: GTK-based BitTorrent client URL: http://sourceforge.net/projects/flush/ @@ -28,8 +30,6 @@ %prep %setup -q %patch0 -p1 -%patch1 -p1 -%patch2 -p1 %build %configure --enable-system-libconfig --enable-system-libtorrent --with-ssl @@ -68,9 +68,3 @@ %dir %doc %{_mandir}/ru %dir %doc %{_mandir}/ru/man1 -%changelog -* Mon Mar 30 2009 dragonagat@gmail.com -- Added patches to fix building on openSUSE 11.0 - -* Sun Mar 29 2009 dragonagat@gmail.com -- Initial flush 0.4 package Index: flush-0.4.1.tar.bz2 =================================================================== Binary file flush-0.4.1.tar.bz2 has changed Index: flush.changes =================================================================== --- flush.changes (revision 8) +++ flush.changes (working copy) @@ -1,0 +1,9 @@ +* Sun Apr 05 2009 dragonagat@gmail.com +- Version Bump +- Unneeded patches removed + +* Mon Mar 30 2009 dragonagat@gmail.com +- Added patches to fix building on openSUSE 11.0 + +* Sun Mar 29 2009 dragonagat@gmail.com +- Initial flush 0.4 package Index: flush-0.4.tar.bz2 =================================================================== Binary file flush-0.4.tar.bz2 has changed Index: flush-0.4_stringify_fix.patch =================================================================== --- flush-0.4_stringify_fix.patch (revision 8) +++ flush-0.4_stringify_fix.patch (working copy) @@ -1,525 +1,0 @@ -diff -rc flush-0.4/src/client_cmd_options.cpp flush-0.4.patched/src/client_cmd_options.cpp -*** flush-0.4/src/client_cmd_options.cpp 2009-03-14 20:11:00.000000000 +0300 ---- flush-0.4.patched/src/client_cmd_options.cpp 2009-03-29 17:47:08.000000000 +0400 -*************** -*** 100,106 **** - Glib::OptionEntry config_path_entry; - config_path_entry.set_long_name("config"); - config_path_entry.set_flags(Glib::OptionEntry::FLAG_FILENAME); -! config_path_entry.set_description(__("Configuration directory path (default: ~/%1)", DEFAULT_CONFIG_DIR_NAME)); - config_path_entry.set_arg_description(_("DIRECTORY")); - entries_group.add_entry_filename(config_path_entry, this->config_path); - // config_path <-- ---- 100,106 ---- - Glib::OptionEntry config_path_entry; - config_path_entry.set_long_name("config"); - config_path_entry.set_flags(Glib::OptionEntry::FLAG_FILENAME); -! config_path_entry.set_description(__("Configuration directory path (default: ~/%1)", Glib::ustring(DEFAULT_CONFIG_DIR_NAME))); - config_path_entry.set_arg_description(_("DIRECTORY")); - entries_group.add_entry_filename(config_path_entry, this->config_path); - // config_path <-- -*************** -*** 160,166 **** - only_pass_entry.set_short_name('o'); - only_pass_entry.set_long_name("only-pass"); - only_pass_entry.set_flags( only_pass_entry.get_flags() | Glib::OptionEntry::FLAG_NO_ARG ); -! only_pass_entry.set_description(__("Only pass commands to already running %1 instance. Does not start new instance if it is not running yet", APP_NAME)); - entries_group.add_entry(only_pass_entry, this->only_pass); - // only_pass <-- - ---- 160,166 ---- - only_pass_entry.set_short_name('o'); - only_pass_entry.set_long_name("only-pass"); - only_pass_entry.set_flags( only_pass_entry.get_flags() | Glib::OptionEntry::FLAG_NO_ARG ); -! only_pass_entry.set_description(__("Only pass commands to already running %1 instance. Does not start new instance if it is not running yet", Glib::ustring(APP_NAME))); - entries_group.add_entry(only_pass_entry, this->only_pass); - // only_pass <-- - -diff -rc flush-0.4/src/client_settings.cpp flush-0.4.patched/src/client_settings.cpp -*** flush-0.4/src/client_settings.cpp 2009-03-14 20:11:00.000000000 +0300 ---- flush-0.4.patched/src/client_settings.cpp 2009-03-29 17:50:56.000000000 +0400 -*************** -*** 29,41 **** - #include "client_settings.hpp" - - -! #define CHECK_OPTION_TYPE(setting, type, action) \ -! { \ -! if(setting.getType() != type) \ -! { \ -! MLIB_SW(__("Client config: Bad option '%1' type at line %2.", setting.getName(), setting.getSourceLine())); \ -! action; \ -! } \ - } - - ---- 29,41 ---- - #include "client_settings.hpp" - - -! #define CHECK_OPTION_TYPE(setting, type, action) \ -! { \ -! if(setting.getType() != type) \ -! { \ -! MLIB_SW(__("Client config: Bad option '%1' type at line %2.", Glib::ustring(setting.getName()), setting.getSourceLine())); \ -! action; \ -! } \ - } - - -*************** -*** 60,66 **** - { - MLIB_SW(__( - "Client config: Bad option '%1' value '%2' at line %3.", -! setting.getName(), value, setting.getSourceLine() - )); - } - ---- 60,66 ---- - { - MLIB_SW(__( - "Client config: Bad option '%1' value '%2' at line %3.", -! Glib::ustring(setting.getName()), value, setting.getSourceLine() - )); - } - -*************** -*** 70,76 **** - { - MLIB_SW(__( - "Client config: Invalid option '%1' UTF-8 value at line %2.", -! setting.getName(), setting.getSourceLine() - )); - } - ---- 70,76 ---- - { - MLIB_SW(__( - "Client config: Invalid option '%1' UTF-8 value at line %2.", -! Glib::ustring(setting.getName()), setting.getSourceLine() - )); - } - -*************** -*** 80,86 **** - { - MLIB_SW(__( - "Client config: Unknown option '%1' at line %2.", -! setting.getName(), setting.getSourceLine() - )); - } - } ---- 80,86 ---- - { - MLIB_SW(__( - "Client config: Unknown option '%1' at line %2.", -! Glib::ustring(setting.getName()), setting.getSourceLine() - )); - } - } -*************** -*** 154,160 **** - else if(std::string(static_cast<const char*>(setting)) == "descending") - this->sort_order = SORT_ORDER_DESCENDING; - else -! bad_option_value(setting, static_cast<const char*>(setting)); - } - else if(m::is_eq(setting_name, "columns")) - { ---- 154,160 ---- - else if(std::string(static_cast<const char*>(setting)) == "descending") - this->sort_order = SORT_ORDER_DESCENDING; - else -! bad_option_value(setting, Glib::ustring(static_cast<const char*>(setting))); - } - else if(m::is_eq(setting_name, "columns")) - { -diff -rc flush-0.4/src/daemon_session.cpp flush-0.4.patched/src/daemon_session.cpp -*** flush-0.4/src/daemon_session.cpp 2009-03-22 20:15:53.000000000 +0300 ---- flush-0.4.patched/src/daemon_session.cpp 2009-03-29 17:52:18.000000000 +0400 -*************** -*** 102,108 **** - // Настройки libtorrent --> - { - lt::session_settings lt_settings = this->session->settings(); -! lt_settings.user_agent = _C("%1 %2", APP_NAME, APP_VERSION_STRING); - lt_settings.ignore_limits_on_local_network = false; - this->session->set_settings(lt_settings); - } ---- 102,108 ---- - // Настройки libtorrent --> - { - lt::session_settings lt_settings = this->session->settings(); -! lt_settings.user_agent = _C("%1 %2", Glib::ustring(APP_NAME), Glib::ustring(APP_VERSION_STRING)); - lt_settings.ignore_limits_on_local_network = false; - this->session->set_settings(lt_settings); - } -diff -rc flush-0.4/src/daemon_settings.cpp flush-0.4.patched/src/daemon_settings.cpp -*** flush-0.4/src/daemon_settings.cpp 2009-03-22 20:09:14.000000000 +0300 ---- flush-0.4.patched/src/daemon_settings.cpp 2009-03-29 17:53:53.000000000 +0400 -*************** -*** 34,46 **** - #include "daemon_types.hpp" - - -! #define CHECK_OPTION_TYPE(setting, type, action) \ -! { \ -! if(setting.getType() != type) \ -! { \ -! MLIB_SW(__("Daemon config: Bad option '%1' type at line %2.", setting.getName(), setting.getSourceLine())); \ -! action; \ -! } \ - } - - ---- 34,46 ---- - #include "daemon_types.hpp" - - -! #define CHECK_OPTION_TYPE(setting, type, action) \ -! { \ -! if(setting.getType() != type) \ -! { \ -! MLIB_SW(__("Daemon config: Bad option '%1' type at line %2.", Glib::ustring(setting.getName()), setting.getSourceLine())); \ -! action; \ -! } \ - } - - -*************** -*** 65,71 **** - { - MLIB_SW(__( - "Daemon config: Bad option '%1' value '%2' at line %3.", -! setting.getName(), value, setting.getSourceLine() - )); - } - ---- 65,71 ---- - { - MLIB_SW(__( - "Daemon config: Bad option '%1' value '%2' at line %3.", -! Glib::ustring(setting.getName()), value, setting.getSourceLine() - )); - } - -*************** -*** 75,81 **** - { - MLIB_SW(__( - "Daemon config: Invalid option '%1' UTF-8 value at line %2.", -! setting.getName(), setting.getSourceLine() - )); - } - ---- 75,81 ---- - { - MLIB_SW(__( - "Daemon config: Invalid option '%1' UTF-8 value at line %2.", -! Glib::ustring(setting.getName()), setting.getSourceLine() - )); - } - -*************** -*** 85,91 **** - { - MLIB_SW(__( - "Daemon config: Unknown option '%1' at line %2.", -! setting.getName(), setting.getSourceLine() - )); - } - } ---- 85,91 ---- - { - MLIB_SW(__( - "Daemon config: Unknown option '%1' at line %2.", -! Glib::ustring(setting.getName()), setting.getSourceLine() - )); - } - } -diff -rc flush-0.4/src/main.cpp flush-0.4.patched/src/main.cpp -*** flush-0.4/src/main.cpp 2009-03-14 20:11:00.000000000 +0300 ---- flush-0.4.patched/src/main.cpp 2009-03-29 17:56:39.000000000 +0400 -*************** -*** 116,124 **** - if(is_gui_mode()) - { - Gtk::MessageDialog dialog("", false, Gtk::MESSAGE_WARNING, Gtk::BUTTONS_OK); -! dialog.set_title(__("%1: Error", APP_NAME)); - if(title.empty()) -! dialog.set_message(__("Starting %1 failed:", APP_NAME)); - else - dialog.set_message(title); - dialog.set_secondary_text(message); ---- 116,124 ---- - if(is_gui_mode()) - { - Gtk::MessageDialog dialog("", false, Gtk::MESSAGE_WARNING, Gtk::BUTTONS_OK); -! dialog.set_title(__("%1: Error", Glib::ustring(APP_NAME))); - if(title.empty()) -! dialog.set_message(__("Starting %1 failed:", Glib::ustring(APP_NAME))); - else - dialog.set_message(title); - dialog.set_secondary_text(message); -*************** -*** 206,212 **** - debug_info = L2U(argv[3]); - - -! m::gtk::Window error_window(__("%1: Critical error", APP_NAME)); - error_window.set_border_width(m::gtk::WINDOW_BORDER_WIDTH * 2); - error_window.set_resizable(false); - ---- 206,212 ---- - debug_info = L2U(argv[3]); - - -! m::gtk::Window error_window(__("%1: Critical error", Glib::ustring(APP_NAME))); - error_window.set_border_width(m::gtk::WINDOW_BORDER_WIDTH * 2); - error_window.set_resizable(false); - -*************** -*** 373,379 **** - // <-- - - message_dialog = new Gtk::Dialog( -! _C("%1: %2", APP_NAME, title), - parent_window, true - ); - message_dialog->set_border_width(m::gtk::WINDOW_BORDER_WIDTH); ---- 373,379 ---- - // <-- - - message_dialog = new Gtk::Dialog( -! _C("%1: %2", Glib::ustring(APP_NAME), title), - parent_window, true - ); - message_dialog->set_border_width(m::gtk::WINDOW_BORDER_WIDTH); -*************** -*** 704,710 **** - { - MLIB_W(__( - "Can't communicate with running %1 instance. Error while reading link '%2' target path: %3.", -! APP_NAME, m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - ---- 704,710 ---- - { - MLIB_W(__( - "Can't communicate with running %1 instance. Error while reading link '%2' target path: %3.", -! Glib::ustring(APP_NAME), m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - -*************** -*** 720,726 **** - { - MLIB_W(__( - "Can't communicate with running %1 instance. Error while reading link '%2' target path: %3.", -! APP_NAME, m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - ---- 720,726 ---- - { - MLIB_W(__( - "Can't communicate with running %1 instance. Error while reading link '%2' target path: %3.", -! Glib::ustring(APP_NAME), m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - -*************** -*** 732,743 **** - { - MLIB_W(__( - "Can't set environment variable '%1'='%2': %3.", -! DBUS_SESSION_ENV_NAME, dbus_address - )); - } - } - else -! MLIB_W(__("Can't communicate with running %1 instance. It is not running.", APP_NAME)); - } - // <-- - ---- 732,743 ---- - { - MLIB_W(__( - "Can't set environment variable '%1'='%2': %3.", -! Glib::ustring(DBUS_SESSION_ENV_NAME), dbus_address - )); - } - } - else -! MLIB_W(__("Can't communicate with running %1 instance. It is not running.", Glib::ustring(APP_NAME))); - } - // <-- - -*************** -*** 831,837 **** - { - MLIB_W(__( - "Creating %1 session failed. Can't remove DBus session link '%2'. %3", -! APP_NAME, m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - } ---- 831,837 ---- - { - MLIB_W(__( - "Creating %1 session failed. Can't remove DBus session link '%2'. %3", -! Glib::ustring(APP_NAME), m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - } -*************** -*** 840,853 **** - { - MLIB_W(__( - "Creating %1 session failed. Error while reading link '%2' target path: %3.", -! APP_NAME, m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - - const char *dbus_session_address = getenv(DBUS_SESSION_ENV_NAME); - if(!dbus_session_address) - { -! MLIB_W(__("Creating %1 session failed. Can't get DBus session bus address.", APP_NAME)); - } - - try ---- 840,853 ---- - { - MLIB_W(__( - "Creating %1 session failed. Error while reading link '%2' target path: %3.", -! Glib::ustring(APP_NAME), m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - - const char *dbus_session_address = getenv(DBUS_SESSION_ENV_NAME); - if(!dbus_session_address) - { -! MLIB_W(__("Creating %1 session failed. Can't get DBus session bus address.", Glib::ustring(APP_NAME))); - } - - try -*************** -*** 858,864 **** - { - MLIB_W(__( - "Creating %1 session failed. Can't create DBus session link '%2': %3.", -! APP_NAME, m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - } ---- 858,864 ---- - { - MLIB_W(__( - "Creating %1 session failed. Can't create DBus session link '%2': %3.", -! Glib::ustring(APP_NAME), m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - } -*************** -*** 888,894 **** - { - MLIB_W(__( - "Closing %1 session failed. Can't remove DBus session link '%2': %3.", -! APP_NAME, m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - // Удаляем созданную ссылку <-- ---- 888,894 ---- - { - MLIB_W(__( - "Closing %1 session failed. Can't remove DBus session link '%2': %3.", -! Glib::ustring(APP_NAME), m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - // Удаляем созданную ссылку <-- -*************** -*** 904,910 **** - { - MLIB_W(__( - "Closing %1 session failed. Can't remove DBus session link '%2': %3.", -! APP_NAME, m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - // Удаляем созданную ссылку <-- ---- 904,910 ---- - { - MLIB_W(__( - "Closing %1 session failed. Can't remove DBus session link '%2': %3.", -! Glib::ustring(APP_NAME), m::fs::get_abs_path_lazy(DBUS_SESSION_LINK_NAME), EE(e) - )); - } - // Удаляем созданную ссылку <-- -*************** -*** 935,946 **** - } - catch(DBus::Error e) - { -! MLIB_W(__("Can't communicate with running %1 instance via DBus: %2.", APP_NAME, EE(e))); - } - } - } - else -! MLIB_W(__("Can't communicate with running %1 instance. It is not running.", APP_NAME)); - } - - MLIB_D("Exiting..."); ---- 935,946 ---- - } - catch(DBus::Error e) - { -! MLIB_W(__("Can't communicate with running %1 instance via DBus: %2.", Glib::ustring(APP_NAME), EE(e))); - } - } - } - else -! MLIB_W(__("Can't communicate with running %1 instance. It is not running.", Glib::ustring(APP_NAME))); - } - - MLIB_D("Exiting..."); -diff -rc flush-0.4/src/mlib/errors.cpp flush-0.4.patched/src/mlib/errors.cpp -*** flush-0.4/src/mlib/errors.cpp 2009-03-14 20:11:00.000000000 +0300 ---- flush-0.4.patched/src/mlib/errors.cpp 2009-03-29 17:43:37.000000000 +0400 -*************** -*** 96,102 **** - std::string get(const libconfig::ParseException& error) - { - libconfig::ParseException error_non_const_copy = error; -! return __("%1 at line %2", error_non_const_copy.getError(), error_non_const_copy.getLine()); - } - #endif - ---- 96,102 ---- - std::string get(const libconfig::ParseException& error) - { - libconfig::ParseException error_non_const_copy = error; -! return __("%1 at line %2", Glib::ustring(error_non_const_copy.getError()), error_non_const_copy.getLine()); - } - #endif - -diff -rc flush-0.4/src/mlib/string.hh flush-0.4.patched/src/mlib/string.hh -*** flush-0.4/src/mlib/string.hh 2009-03-14 20:11:00.000000000 +0300 ---- flush-0.4.patched/src/mlib/string.hh 2009-03-29 17:43:03.000000000 +0400 -*************** -*** 151,157 **** - - Glib::ustring __(const char* fmt) - { -! return Glib::ustring::compose(_(fmt) + "%1", ""); - } - - ---- 151,157 ---- - - Glib::ustring __(const char* fmt) - { -! return Glib::ustring::compose(_(fmt) + "%1", Glib::ustring("")); - } - - Index: system_error_fix.patch =================================================================== --- system_error_fix.patch (revision 8) +++ system_error_fix.patch (working copy) @@ -1,21 +1,0 @@ -diff -Naur flush-0.4.orig//src/create_torrent_dialog.cpp flush-0.4/src/create_torrent_dialog.cpp ---- flush-0.4.orig//src/create_torrent_dialog.cpp 2009-03-30 01:57:10.973044330 +0700 -+++ flush-0.4/src/create_torrent_dialog.cpp 2009-03-30 02:16:31.604064334 +0700 -@@ -362,7 +362,7 @@ - { - M_THROW(__( - "Error while reading torrent files. File '%1': %2.", -- e.path1().string(), strerror(e.system_error())) -+ e.path1().string(), Glib::ustring(e.what())) - ); - } - catch(...) -@@ -409,7 +409,7 @@ - { - M_THROW(__( - "Error while reading torrent files. File '%1': %2.", -- e.path1().string(), strerror(e.system_error())) -+ e.path1().string(), Glib::ustring(e.what())) - ); - } - catch(...)
Comments 0