From: Elan Ruusamäe Date: Sat, 2 Apr 2011 13:39:40 +0000 (+0000) Subject: - system QtSingleApplication build possible X-Git-Tag: auto/th/qbittorrent-2_7_1-2~1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=28db5fe716b59f01131228353d54e3200804ae5f;p=packages%2Fqbittorrent.git - system QtSingleApplication build possible - use configure & make install - more and verbose files Changed files: qbittorrent.spec -> 1.96 --- diff --git a/qbittorrent.spec b/qbittorrent.spec index 1929400..6bc5eea 100644 --- a/qbittorrent.spec +++ b/qbittorrent.spec @@ -1,3 +1,8 @@ +# +# Conditional build: +%bcond_with qsa # build with system QtSingleApplication (unfinished) + +%define qtver 4.5 Summary: qbittorrent - Qt4-based torrent client Summary(hu.UTF-8): qbittorrent - Qt4-alapú torrent kliens Summary(pl.UTF-8): qbittorrent - graficzny klient torrenta oparty na Qt4 @@ -11,16 +16,19 @@ Source0: http://downloads.sourceforge.net/qbittorrent/%{name}-%{version}.tar.gz Patch0: lang-hu-2.3.0.patch URL: http://qbittorrent.sourceforge.net/ BuildRequires: GeoIP-devel -BuildRequires: QtCore-devel >= 4.4.0 -BuildRequires: QtDBus-devel >= 4.4.0 -BuildRequires: QtGui-devel >= 4.4.0 -BuildRequires: QtNetwork-devel >= 4.4.0 -BuildRequires: QtXml-devel >= 4.4.0 +BuildRequires: QtCore-devel >= %{qtver} +BuildRequires: QtDBus-devel >= %{qtver} +BuildRequires: QtGui-devel >= %{qtver} +BuildRequires: QtNetwork-devel >= %{qtver} +%{?with_qsa:BuildRequires: QtSingleApplication-devel} +BuildRequires: QtSvg-devel >= %{qtver} +BuildRequires: QtXml-devel >= %{qtver} BuildRequires: boost-devel >= 1.36.0 +BuildRequires: libnotify-devel >= 0.4.2 BuildRequires: libtorrent-rasterbar-devel >= 1:0.15.5 BuildRequires: pkgconfig -BuildRequires: qt4-build >= 4.4.0 -BuildRequires: qt4-qmake >= 4.4.0 +BuildRequires: qt4-build >= %{qtver} +BuildRequires: qt4-qmake >= %{qtver} BuildRequires: rpmbuild(macros) >= 1.129 BuildRequires: which Requires: libtorrent-rasterbar >= 1:0.15.5 @@ -40,41 +48,31 @@ qTorrent - graficzny klient torrenta oparty na Qt4. %setup -q %patch0 -p1 +%if %{with qsa} +%{__rm} -r src/qtsingleapp +%endif + %build -qmake-qt4 \ - QMAKE_CXX="%{__cxx}" \ - QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" +# NOTE: not autoconf based configure +./configure \ + --prefix=%{_prefix} \ + %{?with_qsa:--with-qtsingleapplication=system} %{__make} %install rm -rf $RPM_BUILD_ROOT - -install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_desktopdir}} -install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{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/16x16/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps -install src/menuicons/22x22/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/apps -install src/menuicons/24x24/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps -install src/menuicons/32x32/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps -install src/menuicons/36x36/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/36x36/apps -install src/menuicons/48x48/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps -install src/menuicons/64x64/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps -install src/menuicons/72x72/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/72x72/apps -install src/menuicons/96x96/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/96x96/apps -install src/menuicons/128x128/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/128x128/apps -install src/menuicons/192x192/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/192x192/apps +%{__make} install \ + INSTALL_ROOT=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc AUTHORS Changelog README -%attr(755,root,root) %{_bindir}/%{name} -%{_mandir}/man1/*.1* -%{_iconsdir}/hicolor/*/apps/* +%doc README NEWS AUTHORS TODO Changelog +%attr(755,root,root) %{_bindir}/qbittorrent +%{_mandir}/man1/qbittorrent.1* +%{_iconsdir}/hicolor/*/apps/qbittorrent.png %{_desktopdir}/qBittorrent.desktop +%{_pixmapsdir}/qbittorrent.png