transmission/transmission.spec

277 lines
9.7 KiB
RPMSpec
Raw Normal View History

Name: transmission
Version: 4.0.6
Release: 2mamba
Summary: Transmission is a fast, easy, and free multi-platform BitTorrent client
Group: Graphical Desktop/Applications/Internet
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://transmissionbt.com/
Source: https://github.com/transmission/transmission.git/%{version}/transmission-%{version}.tar.bz2
Source1: transmission-cli.sysusers
Source2: transmission-cli.tmpfiles
Patch0: transmission-4.0.6-miniupnpc-2.2.8.patch
License: GPL2
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libb64-devel
BuildRequires: libcairo-devel
BuildRequires: libcairomm-devel
BuildRequires: libcurl-devel
BuildRequires: libdeflate-devel
BuildRequires: libevent-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libglibmm-devel
BuildRequires: libglvnd-devel
BuildRequires: libgraphene-devel
BuildRequires: libgtk-devel
BuildRequires: libgtkmm-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libminiupnpc-devel
BuildRequires: libnatpmp-devel
BuildRequires: libopenssl-devel
BuildRequires: libpango-devel
BuildRequires: libpangomm-devel
BuildRequires: libpsl-devel
BuildRequires: libsigc++-devel
BuildRequires: libstdc++6-devel
BuildRequires: libsystemd-devel
BuildRequires: libvulkan-devel
BuildRequires: qt6-qtbase-devel
BuildRequires: qt6-qtsvg-devel
## AUTOBUILDREQ-END
BuildRequires: libdht-devel
BuildRequires: libminiupnpc-devel >= 0:2.2.8-1mamba
%description
Transmission is a fast, easy, and free multi-platform BitTorrent client.
Transmission is designed from the ground up to balance power with simplicity. We've set initial preferences so things "Just Work", while advanced features like watch directories, bad peer blocking, and the web interface can be configured with just a few clicks. When Ubuntu chose Transmission as its default BitTorrent client, one of the most-cited reasons was its easy learning curve.
This package provides the Gtk interface.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%package cli
Summary: Cli interface for %{name}
Group: Applications/Communication
%description cli
Transmission is a fast, easy, and free multi-platform BitTorrent client.
Transmission is designed from the ground up to balance power with simplicity. We've set initial preferences so things "Just Work", while advanced features like watch directories, bad peer blocking, and the web interface can be configured with just a few clicks. When Ubuntu chose Transmission as its default BitTorrent client, one of the most-cited reasons was its easy learning curve.
This package provides the UI interface.
%package qt
Summary: Qt interface for %{name}
Group: Graphical Desktop/Applications/Internet
%description qt
Transmission is a fast, easy, and free multi-platform BitTorrent client.
Transmission is designed from the ground up to balance power with simplicity. We've set initial preferences so things "Just Work", while advanced features like watch directories, bad peer blocking, and the web interface can be configured with just a few clicks. When Ubuntu chose Transmission as its default BitTorrent client, one of the most-cited reasons was its easy learning curve.
This package provides the Qt interface.
%debug_package
%prep
%setup -q
#-D -T
#:<< _EOF
%patch 0 -p1
%build
#:<< _EOF
%cmake \
-DENABLE_CLI=ON \
-DENABLE_DAEMON=ON \
-DENABLE_GTK=ON \
-DENABLE_MAC=OFF \
-DENABLE_QT=ON \
-DREBUILD_WEB=ON \
-DENABLE_TESTS=ON \
-DENABLE_UTILS=ON \
-DENABLE_UTP=ON \
-DINSTALL_LIB=ON \
-DUSE_SYSTEM_B64=ON \
-DUSE_SYSTEM_DEFLATE=ON \
-DUSE_SYSTEM_DHT=ON \
-DUSE_SYSTEM_EVENT2=ON \
-DUSE_SYSTEM_MINIUPNPC=ON \
-DUSE_SYSTEM_NATPMP=ON \
-DUSE_SYSTEM_PSL=ON \
-DUSE_SYSTEM_UTP=OFF \
-DWITH_CRYPTO=openssl
%cmake_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%cmake_install
install -Dm644 daemon/transmission-daemon.service \
%{buildroot}%{_unitdir}/transmission.service
install -Dm644 %{SOURCE1} \
%{buildroot}%{_sysusersdir}/transmission.conf
install -Dm644 %{SOURCE2} \
%{buildroot}%{_tmpfilesdir}/transmission.conf
%find_lang %{name}-gtk
%pre cli
%sysusers_create_package transmission %{SOURCE1}
%tmpfiles_create_package transmission %{SOURCE2}
:
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}-gtk.lang
%defattr(-,root,root)
%{_bindir}/transmission-gtk
%{_datadir}/applications/transmission-gtk.desktop
%{_metainfodir}/transmission-gtk.metainfo.xml
%dir %{_datadir}/transmission
%{_datadir}/icons/hicolor/scalable/apps/transmission*.svg
%{_datadir}/icons/hicolor/symbolic/apps/transmission-symbolic.svg
%{_mandir}/man1/transmission-gtk.1*
%dir %{_docdir}/transmission
%{_docdir}/transmission/*
%doc AUTHORS COPYING
%files cli
%defattr(-,root,root)
%{_bindir}/transmission-cli
%{_bindir}/transmission-create
%{_bindir}/transmission-daemon
%{_bindir}/transmission-edit
%{_bindir}/transmission-remote
%{_bindir}/transmission-show
%{_unitdir}/transmission.service
%{_sysusersdir}/transmission.conf
%{_tmpfilesdir}/transmission.conf
%dir %{_datadir}/transmission/public_html
%{_datadir}/transmission/public_html/*
%{_mandir}/man1/transmission-cli.1*
%{_mandir}/man1/transmission-create.1*
%{_mandir}/man1/transmission-daemon.1*
%{_mandir}/man1/transmission-edit.1*
%{_mandir}/man1/transmission-remote.1*
%{_mandir}/man1/transmission-show.1*
%doc AUTHORS COPYING
%files qt
%defattr(-,root,root)
%{_bindir}/transmission-qt
%{_datadir}/applications/transmission-qt.desktop
%dir %{_datadir}/transmission/translations
%{_datadir}/transmission/translations/transmission_*.qm
%{_mandir}/man1/transmission-qt.1*
#%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/transmission
%{_includedir}/transmission/*
%{_libdir}/libtransmission.a
%changelog
* Sun Aug 04 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.6-2mamba
- add more cmake options, provide -cli and -qt subpackages
* Wed Jun 26 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.6-1mamba
- update to 4.0.6
* Thu May 28 2020 Automatic Build System <autodist@mambasoft.it> 3.00-1mamba
- automatic version update by autodist
* Thu May 03 2018 Automatic Build System <autodist@mambasoft.it> 2.94-1mamba
- automatic version update by autodist
* Wed Mar 21 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.93-1mamba
- update to 2.93
* Fri May 20 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.92-1mamba
- update to 2.92
* Mon Feb 29 2016 Automatic Build System <autodist@mambasoft.it> 2.90-1mamba
- automatic version update by autodist
* Sun Mar 15 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.84-3mamba
- rebuilt by autoport with build requirements: miniupnpc-devel>=1.9.20150206-1mamba
* Mon Jul 07 2014 Automatic Build System <autodist@mambasoft.it> 2.84-2mamba
- rebuilt by autoport with build requirements: miniupnpc-devel>=1.9.20140610-1mamba
* Wed Jul 02 2014 Automatic Build System <autodist@mambasoft.it> 2.84-1mamba
- automatic version update by autodist
* Tue May 20 2014 Automatic Build System <autodist@mambasoft.it> 2.83-1mamba
- automatic version update by autodist
* Sat Aug 10 2013 Automatic Build System <autodist@mambasoft.it> 2.82-1mamba
- automatic version update by autodist
* Fri Jul 19 2013 Automatic Build System <autodist@mambasoft.it> 2.81-1mamba
- automatic version update by autodist
* Thu Jun 27 2013 Automatic Build System <autodist@mambasoft.it> 2.80-1mamba
- automatic version update by autodist
* Tue Feb 19 2013 Automatic Build System <autodist@mambasoft.it> 2.77-1mamba
- automatic version update by autodist
* Wed Jan 09 2013 Automatic Build System <autodist@mambasoft.it> 2.76-1mamba
- automatic version update by autodist
* Sun Dec 16 2012 Automatic Build System <autodist@mambasoft.it> 2.75-1mamba
- automatic version update by autodist
* Thu Dec 13 2012 Automatic Build System <autodist@mambasoft.it> 2.74-1mamba
- automatic version update by autodist
* Tue Nov 13 2012 Automatic Build System <autodist@mambasoft.it> 2.73-1mamba
- automatic version update by autodist
* Fri Oct 19 2012 Automatic Build System <autodist@mambasoft.it> 2.72-1mamba
- automatic version update by autodist
* Thu Sep 27 2012 Automatic Build System <autodist@mambasoft.it> 2.71-1mamba
- automatic version update by autodist
* Tue Jul 24 2012 Automatic Build System <autodist@mambasoft.it> 2.61-1mamba
- automatic version update by autodist
* Fri Jul 06 2012 Automatic Build System <autodist@mambasoft.it> 2.60-1mamba
- automatic version update by autodist
* Sat May 19 2012 Automatic Build System <autodist@mambasoft.it> 2.52-1mamba
- automatic version update by autodist
* Mon Apr 09 2012 Automatic Build System <autodist@mambasoft.it> 2.51-1mamba
- automatic version update by autodist
* Tue Feb 21 2012 Automatic Build System <autodist@mambasoft.it> 2.50-1mamba
- automatic version update by autodist
* Wed Nov 02 2011 Automatic Build System <autodist@mambasoft.it> 2.42-1mamba
- automatic version update by autodist
* Tue Oct 11 2011 Automatic Build System <autodist@mambasoft.it> 2.41-1mamba
- automatic version update by autodist
* Thu Jul 21 2011 Automatic Build System <autodist@mambasoft.it> 2.33-1mamba
- automatic update by autodist
* Wed Jun 29 2011 Automatic Build System <autodist@mambasoft.it> 2.32-1mamba
- automatic update by autodist
* Thu Feb 04 2010 Fabio Giani <fabio.giani@gmail.com> 1.83-1mamba
- update to 1.83
* Sat Aug 08 2009 Fabio Giani <fabio.giani@gmail.com> 1.73-1mamba
- package created by autospec