Propozycja : qbittorrent.spec , up rb_libtorrent.spec

Bart uzi18 at o2.pl
Wed May 2 23:36:52 CEST 2007


Zdaje sobie sprawę, że w Th nie miało być wersji rc ale ten spec wymaga
wersji 0.12 a takowa występuje tylko w wersji rc  jak na razie.

Samym program rb_libtorrent zacząl sie budować dopiero po poprawce na boost.

Dodatkowo wysyłam linki:

http://starowa.one.pl/uzi/pld/rb_libtorrent.spec.patch
http://starowa.one.pl/uzi/pld/qbittorrent.spec
http://starowa.one.pl/uzi/pld/qbittorrent-icon.patch

Jak zwykle czekam na glosy krytyki :)

Pozdrawiam
Bartłomiej Zimoń

-------------- next part --------------
--- src/Icons/qBittorrent_old.desktop	2007-04-03 21:57:30.000000000 +0000
+++ src/Icons/qBittorrent.desktop	2007-05-01 22:11:24.018877811 +0000
@@ -1,5 +1,5 @@
 [Desktop Entry]
-Categories=Qt;Application;Network;P2P
+Categories=Qt;Network;FileTransfer;
 Comment=V0.9.1
 Encoding=UTF-8
 Exec=qbittorrent
-------------- next part --------------
Summary:	qbittorrent - Qt4-based torrent client
Summary(pl.UTF-8):	qbittorrent - graficzny klient torrenta oparty na Qt4
Name:		qbittorrent
Version:	0.9.1
Release:	0.1
License:	GPL
Group:		X11/Applications
Source0:	http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# Source0-md5:	ee5a0ee8677d09569355195f8b2e55a9
Patch0:		%{name}-icon.patch
URL:		http://qbittorrent.sourceforge.net/
BuildRequires:	QtCore-devel
BuildRequires:	QtGui-devel
BuildRequires:	qt4-build
BuildRequires:	qt4-qmake
BuildRequires:	rpmbuild(macros) >= 1.129
BuildRequires:  curl-devel
BuildRequires:  boost-devel
BuildRequires:  boost-date_time-devel
BuildRequires:  boost-filesystem-devel
BuildRequires:  rb_libtorrent-devel >= 0.12
Requires:	python >= 2.3
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
qTorrent - Qt4-based torrent client.

%description -l pl.UTF-8
qTorrent - graficzny klient torrenta oparty na Qt4.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p0

%build
export QTDIR=/usr/include/qt4
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QTDIR/lib
./configure --prefix=/usr
%{__make}

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_desktopdir}}
install -d $RPM_BUILD_ROOT%{_pixmapsdir}/{128x128/apps,16x16/apps,192x192/apps,22x22/apps,24x24/apps,32x32/apps,36x36/apps,48x48/apps,64x64/apps,72x72/apps,96x96/apps}

install src/qbittorrent 		$RPM_BUILD_ROOT%{_bindir}
install doc/*  				$RPM_BUILD_ROOT%{_mandir}/man1
install src/Icons/qBittorrent.desktop	$RPM_BUILD_ROOT%{_desktopdir}
install src/menuicons/128x128/apps/*	$RPM_BUILD_ROOT%{_pixmapsdir}/128x128/apps
install src/menuicons/16x16/apps/*	$RPM_BUILD_ROOT%{_pixmapsdir}/16x16/apps
install src/menuicons/192x192/apps/*	$RPM_BUILD_ROOT%{_pixmapsdir}/192x192/apps
install src/menuicons/22x22/apps/*	$RPM_BUILD_ROOT%{_pixmapsdir}/22x22/apps
install src/menuicons/24x24/apps/*	$RPM_BUILD_ROOT%{_pixmapsdir}/24x24/apps
install src/menuicons/32x32/apps/*	$RPM_BUILD_ROOT%{_pixmapsdir}/32x32/apps
install src/menuicons/36x36/apps/*	$RPM_BUILD_ROOT%{_pixmapsdir}/36x36/apps
install src/menuicons/48x48/apps/*	$RPM_BUILD_ROOT%{_pixmapsdir}/48x48/apps
install src/menuicons/64x64/apps/*	$RPM_BUILD_ROOT%{_pixmapsdir}/64x64/apps
install src/menuicons/72x72/apps/*	$RPM_BUILD_ROOT%{_pixmapsdir}/72x72/apps
install src/menuicons/96x96/apps/*	$RPM_BUILD_ROOT%{_pixmapsdir}/96x96/apps

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS Changelog README
%attr(755,root,root) %{_bindir}/%{name}
%{_mandir}
%{_pixmapsdir}
%{_desktopdir}/qBittorrent.desktop

%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
-------------- next part --------------
--- rb_libtorrent.spec	2007-04-16 22:23:31.000000000 +0200
+++ rb_libtorrent.spec.new	2007-04-16 21:45:58.000000000 +0200
@@ -1,13 +1,18 @@
 # $Revision: 1.4 $, $Date: 2007/03/31 17:56:29 $
+
+%define _rc rc3
+
 Summary:	A C++ BitTorrent library
 Summary(pl.UTF-8):	Biblioteka BitTorrenta napisana w C++
 Name:		rb_libtorrent
-Version:	0.11
-Release:	0.1
+Version:	0.12
+#Release:	0.1
+Release: 0.%{_rc}.1
 License:	BSD
 Group:		Libraries
-Source0:	http://dl.sourceforge.net/libtorrent/libtorrent-%{version}.tar.gz
-# Source0-md5:	56e9071b95a6e3f9377121f2fead3499
+#Source0:	http://dl.sourceforge.net/libtorrent/libtorrent-%{version}.tar.gz
+Source0:	http://www.rasterbar.com/products/libtorrent/libtorrent-%{version}%{_rc}.tar.gz
+# Source0-md5:	aa6d0cf9d30592857c99531cd73f0dcd
 URL:		http://www.rasterbar.com/products/libtorrent/
 BuildRequires:	boost-array-devel
 BuildRequires:	boost-bind-devel


More information about the pld-devel-pl mailing list