SFEqbittorrent.spec: initial spec
authorviskov
Mon, 29 Aug 2011 02:27:21 +0000
changeset 3734 bf06364afbe2
parent 3733 f96262d1cefc
child 3735 ce6923a54d5d
SFEqbittorrent.spec: initial spec SFElibtorrent-rasterbar.spec: initial.spec libx264.spec: update tarball
ChangeLog
SFElibtorrent-rasterbar.spec
SFEqbittorrent.spec
base-specs/libx264.spec
patches/qbittorrent-01-filesystemwatcher.diff
patches/qbittorrent-02-misc.diff
--- a/ChangeLog	Sat Aug 27 15:18:19 2011 +0000
+++ b/ChangeLog	Mon Aug 29 02:27:21 2011 +0000
@@ -1,3 +1,9 @@
+2011-08-28  Alex Viskovatoff <[email protected]>
+
+	* SFEqbittorrent.spec: initial spec
+	* SFElibtorrent-rasterbar.spec: initial.spec
+	* libx264.spec: update tarball
+
 2011-08-27 Ken Mays <[email protected]>
 
 	* SFExfce-terminal.spec: Bump to 0.4.8
@@ -61,7 +67,7 @@
 	* SFEclamav.spec: bump to 0.97.2, move docs to doc package and fix
 	  docdir group
 
-2011-08-15 Alex Viskovatoff <[email protected]>
+2011-08-15  Alex Viskovatoff <[email protected]>
 
 	* SFEgnote.spec: initial spec
 	* SFEpcre-gpp.spec: initial spec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SFElibtorrent-rasterbar.spec	Mon Aug 29 02:27:21 2011 +0000
@@ -0,0 +1,84 @@
+#
+# spec file for package SFElibtorrent-rasterbar
+#
+# includes module: libtorrent-rasterbar
+#
+
+%include Solaris.inc
+%define cc_is_gcc 1
+%include base.inc
+%define _prefix /usr/g++
+%define srcname libtorrent-rasterbar
+
+Name:		SFElibtorrent-rasterbar
+Summary:	Feature complete C++ bittorrent implementation focusing on efficiency and scalability
+Group:		System/Libraries
+URL:		http://www.rasterbar.com/products/libtorrent/
+Vendor:		Max Kellermann <[email protected]>
+Version:	0.15.7
+License:	Generic open source
+Source:		http://libtorrent.googlecode.com/files/%srcname-%version.tar.gz
+SUNW_BaseDir:	%_basedir
+BuildRoot:	%_tmppath/%name-%version-build
+%include default-depend.inc
+
+
+%package devel
+Summary:        %summary - development files
+SUNW_BaseDir:   %_basedir
+%include default-depend.inc
+Requires: %name
+
+BuildRequires:	SFEgcc
+Requires:	SFEgccruntime
+BuildRequires:	SFEboost-gpp-devel
+Requires:	SFEboost-gpp
+BuildRequires:	SFEgeoip-devel
+Requires:	SFEgeoip
+
+
+%prep
+%setup -q -n %srcname-%version
+
+%build
+CPUS=$(psrinfo | gawk '$2=="on-line"{cpus++}END{print (cpus==0)?1:cpus}')
+
+export CC=gcc
+export CXX=g++
+export CPPFLAGS="-pthreads -I/usr/g++/include"
+export CXXFLAGS="%cxx_optflags"
+export LDFLAGS="%_ldflags -pthreads -lxnet -L/usr/g++/lib -R/usr/g++/lib"
+
+./configure --prefix=%_prefix --libdir=%_libdir --with-boost=/usr/g++ --disable-static --with-libgeoip
+
+gmake -j$CPUS
+#gmake V=1
+#gmake
+
+%install
+rm -rf %buildroot
+gmake install DESTDIR=%buildroot
+rmdir  %buildroot%_bindir
+rm %buildroot%_libdir/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr (-, root, bin)
+%_libdir/lib*.so*
+%dir %attr (0755, root, other) %_libdir/pkgconfig
+%_libdir/pkgconfig/*
+
+%files devel
+%defattr (-, root, bin)
+%dir %attr (0755, root, other) %_includedir/libtorrent
+%_includedir/libtorrent/*
+
+
+%changelog
+* Sun Aug 28 2011 - Alex Viskovatoff
+- Build with gcc
+* Tue Jan 18 2011 - Alex Viskovatoff
+- Initial spec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SFEqbittorrent.spec	Mon Aug 29 02:27:21 2011 +0000
@@ -0,0 +1,118 @@
+#
+# spec file for package SFEqbittorrent
+#
+# includes module: qbittorrent
+#
+
+%include Solaris.inc
+%define cc_is_gcc 1
+%include base.inc
+%include packagenamemacros.inc
+%define srcname qbittorrent
+
+Name:		SFEqbittorrent
+Summary:	Free Software alternative to utorrent using Qt
+Group:		Applications/Internet
+URL:		http://qbittorrent.sourceforge.net/
+License:	GPLv2
+#SUNW_Copyright:	%srcname.copyright
+Group:		Applications/Internet
+Version:	2.8.4
+Source:		%sf_download/project/%srcname/%srcname/%srcname-%version/%srcname-%version.tar.gz
+Patch1:		qbittorrent-01-filesystemwatcher.diff
+Patch2:		qbittorrent-02-misc.diff
+
+SUNW_BaseDir:	%_basedir
+BuildRoot:	%_tmppath/%name-%version-build
+%include	default-depend.inc
+
+BuildRequires:	SFEgcc
+BuildRequires:	SFEqt-gpp-devel
+BuildRequires:	SFElibtorrent-rasterbar-devel
+Requires:	SFEgccruntime
+Requires:	SFEqt-gpp
+Requires:	SFElibtorrent-rasterbar
+Requires: 	%pnm_requires_python_default
+
+
+%prep
+%setup -q -n %srcname-%version
+%patch1 -p1
+%patch2 -p1
+
+%build
+CPUS=$(psrinfo | gawk '$2=="on-line"{cpus++}END{print (cpus==0)?1:cpus}')
+
+export PATH=/usr/g++/bin:$PATH
+export QMAKESPEC=solaris-g++
+export PKG_CONFIG_PATH=/usr/g++/lib/pkgconfig
+export CC=gcc
+export CXX=g++
+export CPPFLAGS="-I/usr/g++/include"
+export CFLAGS="%optflags"
+export CXXFLAGS="%cxx_optflags -pthreads"
+export LDFLAGS="%_ldflags -pthreads -lxnet -L/usr/g++/lib -R/usr/g++/lib"
+
+./configure --prefix=%_prefix --with-libboost-lib=/usr/g++/lib --with-libboost-inc=/usr/g++/include --qtdir=/usr/g++
+make -j$CPUS
+
+
+%install
+rm -rf %buildroot
+
+make install INSTALL_ROOT=%buildroot
+
+
+%clean
+rm -rf %buildroot
+
+
+%files
+%defattr (-, root, bin)
+%_bindir/%srcname
+%dir %attr (-, root, sys) %_datadir
+%_mandir
+%dir %attr (-, root, other) %_datadir/applications
+%_datadir/applications/qBittorrent.desktop
+%dir %attr (-, root, other) %_datadir/pixmaps
+%_datadir/pixmaps/%srcname.png
+%dir %attr (-, root, other) %_datadir/icons
+%dir %attr (-, root, other) %_datadir/icons/hicolor
+%dir %attr (-, root, other) %_datadir/icons/hicolor/16x16
+%dir %attr (-, root, other) %_datadir/icons/hicolor/16x16/apps
+%_datadir/icons/hicolor/16x16/apps/%srcname.png
+%dir %attr (-, root, other) %_datadir/icons/hicolor/22x22
+%dir %attr (-, root, other) %_datadir/icons/hicolor/22x22/apps
+%_datadir/icons/hicolor/22x22/apps/%srcname.png
+%dir %attr (-, root, other) %_datadir/icons/hicolor/24x24
+%dir %attr (-, root, other) %_datadir/icons/hicolor/24x24/apps
+%_datadir/icons/hicolor/24x24/apps/%srcname.png
+%dir %attr (-, root, other) %_datadir/icons/hicolor/32x32
+%dir %attr (-, root, other) %_datadir/icons/hicolor/32x32/apps
+%_datadir/icons/hicolor/32x32/apps/%srcname.png
+%dir %attr (-, root, other) %_datadir/icons/hicolor/36x36
+%dir %attr (-, root, other) %_datadir/icons/hicolor/36x36/apps
+%_datadir/icons/hicolor/36x36/apps/%srcname.png
+%dir %attr (-, root, other) %_datadir/icons/hicolor/48x48
+%dir %attr (-, root, other) %_datadir/icons/hicolor/48x48/apps
+%_datadir/icons/hicolor/48x48/apps/%srcname.png
+%dir %attr (-, root, other) %_datadir/icons/hicolor/64x64
+%dir %attr (-, root, other) %_datadir/icons/hicolor/64x64/apps
+%_datadir/icons/hicolor/64x64/apps/%srcname.png
+%dir %attr (-, root, other) %_datadir/icons/hicolor/72x72
+%dir %attr (-, root, other) %_datadir/icons/hicolor/72x72/apps
+%_datadir/icons/hicolor/72x72/apps/%srcname.png
+%dir %attr (-, root, other) %_datadir/icons/hicolor/96x96
+%dir %attr (-, root, other) %_datadir/icons/hicolor/96x96/apps
+%_datadir/icons/hicolor/96x96/apps/%srcname.png
+%dir %attr (-, root, other) %_datadir/icons/hicolor/128x128
+%dir %attr (-, root, other) %_datadir/icons/hicolor/128x128/apps
+%_datadir/icons/hicolor/128x128/apps/%srcname.png
+%dir %attr (-, root, other) %_datadir/icons/hicolor/192x192
+%dir %attr (-, root, other) %_datadir/icons/hicolor/192x192/apps
+%_datadir/icons/hicolor/192x192/apps/%srcname.png
+
+
+%changelog
+* Sun Aug 28 2011 - Alex Viskovatoff
+- Initial spec
--- a/base-specs/libx264.spec	Sat Aug 27 15:18:19 2011 +0000
+++ b/base-specs/libx264.spec	Mon Aug 29 02:27:21 2011 +0000
@@ -4,7 +4,7 @@
 # includes module(s): libx264
 #
 
-%define snap             20110714
+%define snap             20110827
 %define snaph            2245
 %define src_name         x264-snapshot
 %define src_url          http://download.videolan.org/pub/videolan/x264/snapshots
@@ -48,7 +48,8 @@
 
 export CC=gcc
 export CFLAGS="%optflags"
-export LDFLAGS="%_ldflags -lm -L/lib -R/lib"
+#export LDFLAGS="%_ldflags -lm -L/lib -R/lib"
+export LDFLAGS="%_ldflags -lm"
 
 if $( echo "%_libdir" | /usr/xpg4/bin/grep -q %_arch64 ) ; then
         export LDFLAGS="$LDFLAGS -m64"
@@ -83,6 +84,10 @@
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Sun Aug 28 2011 - Alex Viskovatoff
+- update to new tarball
+* Fri Jul 15 2011 - Alex Viskovatoff
+- update to new tarball
 * Thu Apr 27 2011 - Alex Viskovatoff
 - update to new tarball, reworking one patch
 * Fri Apr  1 2011 - Alex Viskovatoff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/qbittorrent-01-filesystemwatcher.diff	Mon Aug 29 02:27:21 2011 +0000
@@ -0,0 +1,31 @@
+--- qbittorrent-2.8.4/src/filesystemwatcher.h.orig	2011-08-09 17:25:33.000000000 +0000
++++ qbittorrent-2.8.4/src/filesystemwatcher.h	2011-08-29 00:11:21.834669128 +0000
+@@ -16,6 +16,9 @@
+ #include <sys/param.h>
+ #include <sys/mount.h>
+ #include <string.h>
++#elif defined (Q_OS_SOLARIS)
++#include <sys/types.h>
++#include <sys/statvfs.h>
+ #else
+ #include <sys/vfs.h>
+ #endif
+@@ -62,11 +65,18 @@
+     if(!file.endsWith(QDir::separator()))
+       file += QDir::separator();
+     file += ".";
++#ifdef Q_OS_SOLARIS
++    struct statvfs buf;
++    if(!statvfs(file.toLocal8Bit().constData(), &buf)) {
++#else
+     struct statfs buf;
+     if(!statfs(file.toLocal8Bit().constData(), &buf)) {
++#endif
+ #ifdef Q_WS_MAC
+       // XXX: should we make sure HAVE_STRUCT_FSSTAT_F_FSTYPENAME is defined?
+       return (strcmp(buf.f_fstypename, "nfs") == 0 || strcmp(buf.f_fstypename, "cifs") == 0 || strcmp(buf.f_fstypename, "smbfs") == 0);
++#elif defined (Q_OS_SOLARIS)
++      return (buf.f_fsid == (long)CIFS_MAGIC_NUMBER || buf.f_fsid == (long)NFS_SUPER_MAGIC || buf.f_fsid == (long)SMB_SUPER_MAGIC);
+ #else
+       return (buf.f_type == (long)CIFS_MAGIC_NUMBER || buf.f_type == (long)NFS_SUPER_MAGIC || buf.f_type == (long)SMB_SUPER_MAGIC);
+ #endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/qbittorrent-02-misc.diff	Mon Aug 29 02:27:21 2011 +0000
@@ -0,0 +1,18 @@
+--- qbittorrent-2.8.4/src/misc.cpp.orig	2011-08-09 17:25:33.000000000 +0000
++++ qbittorrent-2.8.4/src/misc.cpp	2011-08-29 00:17:52.604991116 +0000
+@@ -169,9 +169,15 @@
+   Q_ASSERT(dir_path.exists());
+ #ifndef Q_WS_WIN
+   unsigned long long available;
++#ifdef Q_OS_SOLARIS
++  struct statvfs stats;
++  const QString statfs_path = dir_path.path()+"/.";
++  const int ret = statvfs (qPrintable(statfs_path), &stats) ;
++#else
+   struct statfs stats;
+   const QString statfs_path = dir_path.path()+"/.";
+   const int ret = statfs (qPrintable(statfs_path), &stats) ;
++#endif
+   if(ret == 0) {
+     available = ((unsigned long long)stats.f_bavail) *
+         ((unsigned long long)stats.f_bsize) ;