qbittorrent/qbittorrent.spec

200 lines
6.1 KiB
RPMSpec
Raw Normal View History

Name: qbittorrent
Version: 4.3.4.1
Release: 1mamba
Summary: Free and reliable P2P Bittorrent client
Group: Graphical Desktop/Applications/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: https://qbittorrent.sourceforge.net/
Source: http://downloads.sourceforge.net/qbittorrent/qbittorrent-%{version}.tar.gz
Source1: qbittorrent-nox.README
Patch0: qbittorrent-3.0.9-gcc-4.8.patch
Patch1: qbittorrent-3.1.8-libqt4-4.8.5.patch
Patch2: qbittorrent-3.1.12-libboost-1.57.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libGL-devel
BuildRequires: libboost-devel
BuildRequires: libgcc
BuildRequires: libopenssl-devel
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
BuildRequires: libtorrent-rasterbar-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libtorrent-rasterbar-devel >= 1.2.10
BuildRequires: gcc-c++
%description
The qBittorrent project aims to provide a Free Software alternative to µtorrent.
qBittorrent is based on Qt4 toolkit and libtorrent-rasterbar.
%package nox
Summary: A Headless Bittorrent Client
Group: Applications/Networking
%description nox
A Headless Bittorrent Client with a feature rich Web UI allowing users to control the clinet remotely.
#% debug_package
%prep
%setup -q
cp -p %{S:1} doc/README
%build
mkdir build-nox build-gui
# headless version
pushd build-nox
../configure \
--prefix=%{_prefix} \
--disable-gui \
--enable-systemd
cp conf.pri ..
%make
mv -f ../conf.pri ../conf.pri.nox
popd
# gui version
pushd build-gui
../configure \
--prefix=%{_prefix}
# --with-qtsingleapplication=system
cp conf.pri ..
%make
mv -f ../conf.pri ../conf.pri.gui
popd
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
# headless version
cp conf.pri.nox conf.pri
make install -C build-nox \
INSTALL_ROOT=%{buildroot}
install -d -m0755 %{buildroot}%{_unitdir}
mv %{buildroot}%{_prefix}%{_unitdir}/qbittorrent-nox@.service \
%{buildroot}%{_unitdir}/qbittorrent-nox@.service
# gui version
cp conf.pri.gui conf.pri
make install -C build-gui \
INSTALL_ROOT=%{buildroot}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/qbittorrent
%{_mandir}/man1/qbittorrent.1*
%{_datadir}/metainfo/org.qbittorrent.qBittorrent.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/pixmaps/qbittorrent.png
%{_datadir}/icons/hicolor/*/status/qbittorrent-tray.png
%{_datadir}/icons/hicolor/scalable/status/qbittorrent-tray*.svg
%doc AUTHORS COPYING
#NEWS TODO Changelog
%files nox
%defattr(-,root,root,-)
%{_bindir}/qbittorrent-nox
%{_unitdir}/qbittorrent-nox@.service
%{_mandir}/man1/qbittorrent-nox.1*
%doc AUTHORS COPYING
#doc/README
%changelog
* Sat Apr 10 2021 Automatic Build System <autodist@mambasoft.it> 4.3.4.1-1mamba
- automatic version update by autodist
* Wed Nov 25 2020 Automatic Build System <autodist@mambasoft.it> 4.3.1-1mamba
- automatic version update by autodist
* Thu Oct 22 2020 Automatic Build System <autodist@mambasoft.it> 4.3.0.1-1mamba
- automatic version update by autodist
* Mon Oct 19 2020 Automatic Build System <autodist@mambasoft.it> 4.3.0-1mamba
- automatic version update by autodist
* Mon Sep 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.5-2mamba
- rebuilt with libtorrent-rasterbar 1.2.10
* Sat Apr 25 2020 Automatic Build System <autodist@mambasoft.it> 4.2.5-1mamba
- automatic version update by autodist
* Thu Apr 23 2020 Automatic Build System <autodist@mambasoft.it> 4.2.4-1mamba
- automatic version update by autodist
* Sat Apr 04 2020 Automatic Build System <autodist@mambasoft.it> 4.2.3-1mamba
- automatic version update by autodist
* Wed Mar 25 2020 Automatic Build System <autodist@mambasoft.it> 4.2.2-1mamba
- automatic version update by autodist
* Tue Dec 31 2019 Automatic Build System <autodist@mambasoft.it> 4.2.1-1mamba
- automatic version update by autodist
* Wed Dec 04 2019 Automatic Build System <autodist@mambasoft.it> 4.2.0-1mamba
- automatic version update by autodist
* Sat Nov 02 2019 Automatic Build System <autodist@mambasoft.it> 4.1.9.1-1mamba
- automatic version update by autodist
* Mon Oct 28 2019 Automatic Build System <autodist@mambasoft.it> 4.1.9-1mamba
- automatic version update by autodist
* Fri Sep 27 2019 Automatic Build System <autodist@mambasoft.it> 4.1.8-1mamba
- automatic version update by autodist
* Mon Aug 05 2019 Automatic Build System <autodist@mambasoft.it> 4.1.7-1mamba
- automatic version update by autodist
* Mon May 27 2019 Automatic Build System <autodist@mambasoft.it> 4.1.6-1mamba
- automatic version update by autodist
* Tue Feb 12 2019 Automatic Build System <autodist@mambasoft.it> 4.1.5-1mamba
- automatic version update by autodist
* Thu Feb 26 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.12-1mamba
- update to 3.1.12
* Sun Mar 02 2014 Automatic Build System <autodist@mambasoft.it> 3.1.9-1mamba
- automatic update by autodist
* Wed Jun 05 2013 Automatic Build System <autodist@mambasoft.it> 3.0.9-1mamba
- automatic version update by autodist
* Wed Jan 30 2013 Automatic Build System <autodist@mambasoft.it> 3.0.8-2mamba
- rebuilt with libtorrent-rasterbar 0.16.7
* Wed Jan 23 2013 Automatic Build System <autodist@mambasoft.it> 3.0.8-1mamba
- automatic version update by autodist
* Thu Jan 03 2013 Automatic Build System <autodist@mambasoft.it> 3.0.6-1mamba
- automatic version update by autodist
* Mon Oct 03 2011 Automatic Build System <autodist@mambasoft.it> 2.8.5-1mamba
- automatic version update by autodist
* Tue Jul 26 2011 Automatic Build System <autodist@mambasoft.it> 2.8.2-1mamba
- automatic version update by autodist
* Mon Mar 14 2011 Automatic Build System <autodist@mambasoft.it> 2.6.9-1mamba
- automatic update by autodist
* Wed Feb 23 2011 Automatic Build System <autodist@mambasoft.it> 2.6.6-1mamba
- automatic update by autodist
* Sun Jan 23 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.6.4-1mamba
- package created by autospec