[packages/transmission] split main package into common,cli,daemon,utils

atler atler at pld-linux.org
Mon Dec 14 18:34:36 CET 2020


commit 35de15cbbd15cc6379fd7094920de59acd2aa0cf
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Dec 14 15:45:03 2020 +0100

    split main package into common,cli,daemon,utils
    
    - cli -- self contained bt client with terminal output
    - daemon -- self contained bt client running in background
    - all clients (including gui) may expose web interface packaged in
      -common
    - utils -- small utils for creating/showing torrents or connecting to
      rpc interface exposed by one of implementations

 transmission.spec | 151 +++++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 122 insertions(+), 29 deletions(-)
---
diff --git a/transmission.spec b/transmission.spec
index e337e01..3f66049 100644
--- a/transmission.spec
+++ b/transmission.spec
@@ -11,7 +11,7 @@ Summary(hu.UTF-8):	Egy sokoldalú és multiplatformos BitTorrent kliens
 Summary(pl.UTF-8):	Wszechstronny i wieloplatformowy klient BitTorrenta
 Name:		transmission
 Version:	3.00
-Release:	1
+Release:	2
 License:	MIT
 Group:		Applications/Communications
 Source0:	https://github.com/transmission/transmission-releases/raw/master/%{name}-%{version}.tar.xz
@@ -55,12 +55,6 @@ BuildRequires:	Qt5Widgets-devel >= %{qtver}
 BuildRequires:	qt5-build >= %{qtver}
 BuildRequires:	qt5-qmake >= %{qtver}
 %endif
-Requires:	curl-libs >= 7.16.3
-Requires:	libevent >= 2.0.10
-Requires:	miniupnpc >= 1.7
-Requires:	openssl >= 0.9.7
-Requires:	zlib >= 1.2.3
-Obsoletes:	Transmission <= 1.05
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_appdir		%{_datadir}/%{name}/web
@@ -85,16 +79,89 @@ interfejs jest zaprojektowany spójnie z dowolnym środowiskiem wybranym
 przez użytkownika. Transmission stawia na równowagę zapewnienia
 przydatnej funkcjonalności bez nadmiaru opcji.
 
-%package init
+%package cli
+Summary:	Command line implementation for BitTorrent client
+Summary(pl.UTF-8):	Implementacja w wierszu poleceń dla klienta BitTorrenta
+Group:		Applications/Networking
+Requires:	%{name}-common = %{version}-%{release}
+Requires:	curl-libs >= 7.16.3
+Requires:	libevent >= 2.0.10
+Requires:	miniupnpc >= 1.7
+Requires:	openssl >= 0.9.7
+Requires:	zlib >= 1.2.3
+
+%description cli
+Transmission has been built from the ground up to be a lightweight,
+yet powerful BitTorrent client. Its simple, intuitive interface is
+designed to integrate tightly with whatever computing environment you
+choose to use. Transmission strikes a balance between providing useful
+functionality without feature bloat.
+
+Command line implementation for BitTorrent client.
+
+%description cli -l hu.UTF-8
+Transmission egy könnyűsúlyú, de mégis egy erőteljes BitTorrent
+kliens. Egyszerű, intuitív felülete szorosan illeszkedik bármilyen
+számítógépes környezetbe, amit csak választasz. A Transmission célja
+megtalálni a használható funkcionalitást lehetőségek áradata nélkül.
+
+%description cli -l pl.UTF-8
+Transmission został stworzony od podstaw, aby być lekkim lecz mającym
+duże możliwości klientem BitTorrenta. Jego prosty, intuicyjny
+interfejs jest zaprojektowany spójnie z dowolnym środowiskiem wybranym
+przez użytkownika. Transmission stawia na równowagę zapewnienia
+przydatnej funkcjonalności bez nadmiaru opcji.
+
+Implementacja w wierszu poleceń dla klienta BitTorrenta.
+
+%package common
+Summary:	Common files for Transmission BitTorrent client
+Summary(pl.UTF-8):	Pliki wspólne dla klienta BitTorrenta Transmission
+Group:		Applications/Networking
+%{?noarchpackage}
+
+%description common
+Common files for Transmission BitTorrent client.
+
+%description common -l pl.UTF-8
+Pliki wspólne dla klienta BitTorrenta Transmission.
+
+%package daemon
 Summary:	Daemon package for BitTorrent client
 Summary(pl.UTF-8):	Pakiet demona dla klienta BitTorrenta
 Group:		Networking/Daemons
-Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}-common = %{version}-%{release}
+Requires:	curl-libs >= 7.16.3
+Requires:	libevent >= 2.0.10
+Requires:	miniupnpc >= 1.7
+Requires:	openssl >= 0.9.7
+Requires:	zlib >= 1.2.3
+Obsoletes:	Transmission <= 1.05
+Obsoletes:	transmission < 3.00-2
+Obsoletes:	transmission-init < 3.00-2
+
+%description daemon
+Transmission has been built from the ground up to be a lightweight,
+yet powerful BitTorrent client. Its simple, intuitive interface is
+designed to integrate tightly with whatever computing environment you
+choose to use. Transmission strikes a balance between providing useful
+functionality without feature bloat.
 
-%description init
 Daemon package for BitTorrent client.
 
-%description init -l pl.UTF-8
+%description daemon -l hu.UTF-8
+Transmission egy könnyűsúlyú, de mégis egy erőteljes BitTorrent
+kliens. Egyszerű, intuitív felülete szorosan illeszkedik bármilyen
+számítógépes környezetbe, amit csak választasz. A Transmission célja
+megtalálni a használható funkcionalitást lehetőségek áradata nélkül.
+
+%description daemon -l pl.UTF-8
+Transmission został stworzony od podstaw, aby być lekkim lecz mającym
+duże możliwości klientem BitTorrenta. Jego prosty, intuicyjny
+interfejs jest zaprojektowany spójnie z dowolnym środowiskiem wybranym
+przez użytkownika. Transmission stawia na równowagę zapewnienia
+przydatnej funkcjonalności bez nadmiaru opcji.
+
 Pakiet demona dla klienta BitTorrenta.
 
 %package gui
@@ -103,10 +170,15 @@ Summary(pl.UTF-8):	Wszechstronny i wieloplatformowy klient BitTorrenta
 Group:		X11/Applications/Networking
 Requires(post,postun):	gtk-update-icon-cache
 Requires(post,postun):	hicolor-icon-theme
-Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}-common = %{version}-%{release}
+Requires:	curl-libs >= 7.16.3
 Requires:	glib2 >= 1:2.32.0
 Requires:	gtk+3 >= 3.4.0
 Requires:	libcanberra-gtk3
+Requires:	libevent >= 2.0.10
+Requires:	miniupnpc >= 1.7
+Requires:	openssl >= 0.9.7
+Requires:	zlib >= 1.2.3
 
 %description gui
 Transmission has been built from the ground up to be a lightweight,
@@ -132,13 +204,18 @@ przydatnej funkcjonalności bez nadmiaru opcji.
 Summary:	A GUI to Transmission based on Qt 5
 Summary(pl.UTF-8):	Graficzny interfejs do Transmission oparty na Qt 5
 Group:		X11/Applications/Networking
-# doesn't require base
+Requires:	%{name}-common = %{version}-%{release}
 Requires:	Qt5Core >= %{qtver}
 Requires:	Qt5DBus >= %{qtver}
 Requires:	Qt5Gui >= %{qtver}
 Requires:	Qt5Network >= %{qtver}
 Requires:	Qt5Widgets >= %{qtver}
+Requires:	curl-libs >= 7.16.3
 Requires:	libcanberra-gtk3
+Requires:	libevent >= 2.0.10
+Requires:	miniupnpc >= 1.7
+Requires:	openssl >= 0.9.7
+Requires:	zlib >= 1.2.3
 
 %description gui-qt
 A GUI to Transmission based on Qt 5.
@@ -146,6 +223,17 @@ A GUI to Transmission based on Qt 5.
 %description gui-qt -l pl.UTF-8
 Graficzny interfejs do Transmission oparty na Qt 5.
 
+%package utils
+Summary:	Utilities for Transmission BitTorrent client
+Summary(pl.UTF-8):	Narzędzia dla klienta BitTorrenta Transmission
+Group:		Applications/Networking
+
+%description utils
+Utilities for Transmission BitTorrent client.
+
+%description utils -l pl.UTF-8
+Narzędzia dla klienta BitTorrenta Transmission.
+
 %prep
 %setup -qc
 %{__mv} %{name}-%{version}/* .
@@ -202,11 +290,11 @@ install gtk/transmission.png $RPM_BUILD_ROOT%{_pixmapsdir}/transmission-qt.png
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post init
+%post daemon
 /sbin/chkconfig --add transmission
 %service transmission restart
 
-%preun init
+%preun daemon
 if [ "$1" = "0" ]; then
         %service transmission stop
         /sbin/chkconfig --del transmission
@@ -220,21 +308,14 @@ fi
 %update_desktop_database_postun
 %update_icon_cache hicolor
 
-%files
+%files cli
 %defattr(644,root,root,755)
-%doc AUTHORS NEWS.md README.md
 %attr(755,root,root) %{_bindir}/transmission-cli
-%attr(755,root,root) %{_bindir}/transmission-create
-%attr(755,root,root) %{_bindir}/transmission-daemon
-%attr(755,root,root) %{_bindir}/transmission-edit
-%attr(755,root,root) %{_bindir}/transmission-remote
-%attr(755,root,root) %{_bindir}/transmission-show
 %{_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*
+
+%files common
+%defattr(644,root,root,755)
+%doc AUTHORS NEWS.md README.md
 %dir %{_datadir}/%{name}
 %dir %{_appdir}
 %{_appdir}/images
@@ -242,12 +323,13 @@ fi
 %{_appdir}/style
 %{_appdir}/index.html
 
-%files init
+%files daemon
 %defattr(644,root,root,755)
 %attr(751,root,daemon) %dir %{_sysconfdir}/%{name}
-#%attr(640,root,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
 %attr(640,root,daemon) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
+%attr(755,root,root) %{_bindir}/transmission-daemon
+%{_mandir}/man1/transmission-daemon.1*
 %attr(750,daemon,root) %dir /var/lib/%{name}
 
 %if %{with gtk}
@@ -268,3 +350,14 @@ fi
 %{_desktopdir}/transmission-qt.desktop
 %{_pixmapsdir}/transmission-qt.png
 %endif
+
+%files utils
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/transmission-create
+%attr(755,root,root) %{_bindir}/transmission-edit
+%attr(755,root,root) %{_bindir}/transmission-remote
+%attr(755,root,root) %{_bindir}/transmission-show
+%{_mandir}/man1/transmission-create.1*
+%{_mandir}/man1/transmission-edit.1*
+%{_mandir}/man1/transmission-remote.1*
+%{_mandir}/man1/transmission-show.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/transmission.git/commitdiff/6cdf40a076e876a4b43ce54a2ca9e4c516351a80



More information about the pld-cvs-commit mailing list