[fatrat/f13/master] initial release

jvcelak jvcelak at fedoraproject.org
Mon Sep 27 08:23:38 UTC 2010


commit e72c5a787f6a7ce37a67b53f240a739caa701880
Author: Jan Vcelak <jvcelak at redhat.com>
Date:   Mon Sep 27 10:23:06 2010 +0200

    initial release

 .gitignore                        |    3 +
 fatrat-czshare-libdir.patch       |   14 +++
 fatrat-gcc-4.5.patch              |   15 ++++
 fatrat-opensubtitles-libdir.patch |   14 +++
 fatrat-plugins-path.patch         |   13 +++
 fatrat.spec                       |  169 +++++++++++++++++++++++++++++++++++++
 sources                           |    3 +
 7 files changed, 231 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2d58099 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/fatrat-1.1.2.tar.gz
+/fatrat-opensubtitles-1.1.2.tar.gz
+/fatrat-czshare-1.1.2.tar.gz
diff --git a/fatrat-czshare-libdir.patch b/fatrat-czshare-libdir.patch
new file mode 100644
index 0000000..043394e
--- /dev/null
+++ b/fatrat-czshare-libdir.patch
@@ -0,0 +1,14 @@
+library location in Fedora depends on architecture (lib/lib64)
+
+diff -uNPrp fatrat-czshare-1.1.2.old/CMakeLists.txt fatrat-czshare-1.1.2.new/CMakeLists.txt
+--- fatrat-czshare-1.1.2.old/CMakeLists.txt	2010-02-12 12:49:36.000000000 +0100
++++ fatrat-czshare-1.1.2.new/CMakeLists.txt	2010-09-08 14:36:57.759648272 +0200
+@@ -65,7 +65,7 @@ if(WITH_NLS)
+ 	install(FILES ${lrelease_outputs} DESTINATION share/fatrat/lang)
+ endif(WITH_NLS)
+ 
+-install(TARGETS fatrat-czshare DESTINATION lib/fatrat/plugins)
++install(TARGETS fatrat-czshare DESTINATION ${CMAKE_INSTALL_LIBDIR}/fatrat/plugins)
+ 
+ install(FILES
+ 	${CMAKE_CURRENT_SOURCE_DIR}/data/TRANSLATIONS
diff --git a/fatrat-gcc-4.5.patch b/fatrat-gcc-4.5.patch
new file mode 100644
index 0000000..be54b6a
--- /dev/null
+++ b/fatrat-gcc-4.5.patch
@@ -0,0 +1,15 @@
+workaround for buggy gcc-4.5:
+error: 'Proxy::Proxy' names the constructor, not the type
+
+diff -uNPrp fatrat-1.1.2.old/src/Proxy.cpp fatrat-1.1.2.new/src/Proxy.cpp
+--- fatrat-1.1.2.old/src/Proxy.cpp	2010-02-12 12:47:31.000000000 +0100
++++ fatrat-1.1.2.new/src/Proxy.cpp	2010-09-06 17:07:59.210664313 +0200
+@@ -57,7 +57,7 @@ QList<Proxy> Proxy::loadProxys()
+ }
+ 
+ 
+-Proxy::Proxy Proxy::getProxy(QUuid uuid)
++Proxy Proxy::getProxy(QUuid uuid)
+ {
+ 	if(uuid.isNull())
+ 		return Proxy();
diff --git a/fatrat-opensubtitles-libdir.patch b/fatrat-opensubtitles-libdir.patch
new file mode 100644
index 0000000..a8b367e
--- /dev/null
+++ b/fatrat-opensubtitles-libdir.patch
@@ -0,0 +1,14 @@
+library location in Fedora depends on architecture (lib/lib64)
+
+diff -uNPrp fatrat-opensubtitles-1.1.2.old/CMakeLists.txt fatrat-opensubtitles-1.1.2.new/CMakeLists.txt
+--- fatrat-opensubtitles-1.1.2.old/CMakeLists.txt	2010-02-12 12:49:53.000000000 +0100
++++ fatrat-opensubtitles-1.1.2.new/CMakeLists.txt	2010-09-08 14:40:44.574647555 +0200
+@@ -72,7 +72,7 @@ if(WITH_NLS)
+ 	install(FILES ${lrelease_outputs} DESTINATION share/fatrat/lang)
+ endif(WITH_NLS)
+ 
+-install(TARGETS fatrat-opensubtitles DESTINATION lib/fatrat/plugins)
++install(TARGETS fatrat-opensubtitles DESTINATION ${CMAKE_INSTALL_LIBDIR}/fatrat/plugins)
+ 
+ install(FILES
+ 	DESTINATION share/fatrat/data/plugins/fatrat-opensubtitles
diff --git a/fatrat-plugins-path.patch b/fatrat-plugins-path.patch
new file mode 100644
index 0000000..747d1b8
--- /dev/null
+++ b/fatrat-plugins-path.patch
@@ -0,0 +1,13 @@
+library location in Fedora depends on architecture (lib/lib64)
+
+diff -uNPrp fatrat-1.1.2/config.h.in fatrat-1.1.2.new/config.h.in
+--- fatrat-1.1.2/config.h.in	2010-02-12 12:47:31.000000000 +0100
++++ fatrat-1.1.2.new/config.h.in	2010-09-08 15:28:47.963772361 +0200
+@@ -17,6 +17,6 @@
+ #cmakedefine GLOOX_1_0
+ 
+ #define DATA_LOCATION "${CMAKE_INSTALL_PREFIX}/share/fatrat"
+-#define PLUGIN_LOCATION "${CMAKE_INSTALL_PREFIX}/lib/fatrat/plugins"
++#define PLUGIN_LOCATION "${CMAKE_INSTALL_LIBDIR}/fatrat/plugins"
+ 
+ #endif
diff --git a/fatrat.spec b/fatrat.spec
new file mode 100644
index 0000000..fd37b92
--- /dev/null
+++ b/fatrat.spec
@@ -0,0 +1,169 @@
+Name: fatrat
+Version: 1.1.2
+Release: 1%{?dist}
+Summary: Feature-rich download manager
+Group: Applications/Internet
+License: GPLv2+
+URL: http://fatrat.dolezel.info/
+Source0: http://www.dolezel.info/download/data/fatrat/fatrat-%{version}.tar.gz
+Source1: http://www.dolezel.info/download/data/fatrat-czshare/fatrat-czshare-%{version}.tar.gz
+Source2: http://www.dolezel.info/download/data/fatrat-opensubtitles/fatrat-opensubtitles-%{version}.tar.gz
+
+Patch0: fatrat-gcc-4.5.patch
+Patch1: fatrat-plugins-path.patch
+Patch100: fatrat-czshare-libdir.patch
+Patch200: fatrat-opensubtitles-libdir.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: cmake, qt4-devel >= 4.4
+BuildRequires: libcurl-devel >= 7.18.2
+BuildRequires: rb_libtorrent-devel => 0.14.5, asio-devel
+BuildRequires: gloox-devel >= 0.9
+BuildRequires: desktop-file-utils
+
+%description
+FatRat is download manager written in C++ and build on top of the Qt4 library.
+It is rich in features and is continuously extended. Main characteristics:
+
+- HTTP(S)/FTP downloads
+- FTP uploads
+- RSS feed support + special functions for TV shows and podcasts
+- BitTorrent support (including torrent creating, DHT, UPnP, encryption etc.)
+- Torrent search
+- Support for SOCKS5 and HTTP proxies
+- RapidShare.com FREE downloads
+- RapidShare.com uploads
+- RapidShare.com link verification and folder extraction
+- RapidSafe link decoding
+- MD4/MD5/SHA1 hash computing
+- Remote control via Jabber
+- Remote control via a web interface
+
+%package devel
+Summary: Development libraries for fatrat
+Group: Development/Libraries
+Requires: fatrat = %{version}-%{release}
+
+%description devel
+FatRat is download manager written in C++ and build on top of the Qt4 library.
+It is rich in features and is continuously extended.
+
+This package contains header files needed for development of FatRat plugins.
+
+%package czshare
+Summary: FatRat plugin enabling CZShare.com downloads and uploads
+Group: Applications/Internet
+Requires: fatrat = %{version}-%{release}
+
+%description czshare
+FatRat is download manager written in C++ and build on top of the Qt4 library.
+It is rich in features and is continuously extended.
+
+This package contains plugin for downloading and uploading to CZshare.com.
+
+%package opensubtitles
+Summary: FatRat plugin enabling OpenSubtitles.org integration
+Group: Applications/Internet
+Requires: fatrat = %{version}-%{release}
+
+%description opensubtitles
+FatRat is download manager written in C++ and build on top of the Qt4 library.
+It is rich in features and is continuously extended.
+
+This package contains plugin for integration with OpenSubtitles.org (easy
+subtitle searching).
+
+%prep
+
+# setup include dir for plugins compilation
+mkdir include
+ln -s ../fatrat-%{version}/src include/fatrat
+
+# unpack all archives
+%setup -q -b 1 -b 2
+
+# patches for main application
+%patch0 -p1 -b gcc45
+%patch1 -p1 -b plugins-path
+
+# patches for plugins
+cd ../fatrat-czshare-%{version}
+%patch100 -p1 -b libdir
+
+cd ../fatrat-opensubtitles-%{version}
+%patch200 -p1 -b opensubtitles
+
+%build
+
+# build main application
+
+%{cmake} . \
+	-DWITH_EVERYTHING=ON \
+	-DCMAKE_EXE_LINKER_FLAGS="-Wl,-lpthread,-ldl,-lboost_system-mt,-lboost_filesystem-mt"
+
+make %{?_smp_mflags}
+
+# build plugins
+
+for plugin in czshare opensubtitles; do
+	cd %{_builddir}/fatrat-${plugin}-%{version}
+	%{cmake} . -DFATRAT_INCLUDE_DIR=%{_builddir}/include
+	make %{?_smp_mflags}
+done
+
+%install
+rm -rf %{buildroot}
+
+# install main application
+make install DESTDIR=%{buildroot}
+
+# update desktop file
+sed -i '/^Categories=/s/Application;//g;/^Icon=/s/\.png$//' %{buildroot}/%{_datadir}/applications/fatrat.desktop
+desktop-file-validate %{buildroot}/%{_datadir}/applications/fatrat.desktop
+
+# install plugins
+for plugin in czshare opensubtitles; do
+	cd %{_builddir}/fatrat-${plugin}-%{version}
+	make install DESTDIR=%{buildroot}
+done
+
+# documentation will be installed by doc macro
+rm -rf %{buildroot}/%{_docdir}
+
+# fatrat requires documentation in it's datadir
+for file in AUTHORS INSTALL LICENSE README TRANSLATIONS; do
+	rm -f %{buildroot}/%{_datadir}/fatrat/${file}
+	[ $file == INSTALL ] && continue
+	ln -s %{_docdir}/fatrat-%{version}/${file} %{buildroot}/%{_datadir}/fatrat/${file}
+done
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS LICENSE README TRANSLATIONS
+%{_bindir}/fatrat
+%{_datadir}/fatrat
+%{_mandir}/man1/*
+%{_datadir}/applications/fatrat.desktop
+%{_datadir}/pixmaps/fatrat.png
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/fatrat
+
+%files czshare
+%defattr(-,root,root,-)
+%doc ../fatrat-czshare-%{version}/data/TRANSLATIONS
+%{_libdir}/fatrat/plugins/libfatrat-czshare.so
+
+%files opensubtitles
+%defattr(-,root,root,-)
+%doc ../fatrat-opensubtitles-%{version}/data/TRANSLATIONS
+%{_libdir}/fatrat/plugins/libfatrat-opensubtitles.so
+
+%changelog
+* Wed Sep 08 2010 Jan Vcelak <jvcelak at redhat.com> 1.1.2-1
+- initial release
diff --git a/sources b/sources
index e69de29..b076b48 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,3 @@
+4768c2b5837408b114cd25d4d0578a4a  fatrat-1.1.2.tar.gz
+be18bc202dc7646c7b0f2fe0947ed5a8  fatrat-opensubtitles-1.1.2.tar.gz
+627a7b06229d9d61ccc93406eb24c367  fatrat-czshare-1.1.2.tar.gz


More information about the scm-commits mailing list