Add conditional for kdenotification.
Split rpm package in cli/appindicator/kdenotifier
This commit is contained in:
		@@ -7,7 +7,8 @@ DEFINES += QCMA_TRAYINDICATOR_LIBRARY
 | 
				
			|||||||
PKGCONFIG =
 | 
					PKGCONFIG =
 | 
				
			||||||
INCLUDEPATH += src/
 | 
					INCLUDEPATH += src/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
greaterThan(QT_MAJOR_VERSION, 4) {
 | 
					greaterThan(QT_MAJOR_VERSION, 4): ENABLE_KNOTIFICATIONS {
 | 
				
			||||||
 | 
					    message("Enabling KDE5 notifications")
 | 
				
			||||||
    QT += KNotifications
 | 
					    QT += KNotifications
 | 
				
			||||||
} else {
 | 
					} else {
 | 
				
			||||||
    LIBS += -lkdeui
 | 
					    LIBS += -lkdeui
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -33,6 +33,7 @@ URL:            https://github.com/codestation/qcma
 | 
				
			|||||||
Source:         https://github.com/codestation/qcma/archive/%{_verprefix}/qcma-%{_version}.tar.gz
 | 
					Source:         https://github.com/codestation/qcma/archive/%{_verprefix}/qcma-%{_version}.tar.gz
 | 
				
			||||||
Group:          Productivity/File utilities
 | 
					Group:          Productivity/File utilities
 | 
				
			||||||
Requires:       libnotify
 | 
					Requires:       libnotify
 | 
				
			||||||
 | 
					Requires:       kf5-knotifications
 | 
				
			||||||
Requires:       ffmpeg
 | 
					Requires:       ffmpeg
 | 
				
			||||||
Requires:       %{_qt5base}
 | 
					Requires:       %{_qt5base}
 | 
				
			||||||
Requires:       %{_qt5imageformats}
 | 
					Requires:       %{_qt5imageformats}
 | 
				
			||||||
@@ -40,6 +41,7 @@ Requires:       libvitamtp4 >= 2.5.5
 | 
				
			|||||||
BuildRequires:  gcc-c++ 
 | 
					BuildRequires:  gcc-c++ 
 | 
				
			||||||
BuildRequires:  %{_pkgconfig}
 | 
					BuildRequires:  %{_pkgconfig}
 | 
				
			||||||
BuildRequires:  libnotify-devel
 | 
					BuildRequires:  libnotify-devel
 | 
				
			||||||
 | 
					BuildRequires:  kf5-knotifications-devel
 | 
				
			||||||
BuildRequires:  ffmpeg-devel
 | 
					BuildRequires:  ffmpeg-devel
 | 
				
			||||||
BuildRequires:  libvitamtp-devel
 | 
					BuildRequires:  libvitamtp-devel
 | 
				
			||||||
BuildRequires:  %{_qt5toolsdevel}
 | 
					BuildRequires:  %{_qt5toolsdevel}
 | 
				
			||||||
@@ -55,7 +57,7 @@ is meant to be compatible with Linux, Windows and MAC OS X.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
%build
 | 
					%build
 | 
				
			||||||
lrelease-qt5 resources/translations/*.ts
 | 
					lrelease-qt5 resources/translations/*.ts
 | 
				
			||||||
qmake-qt5 PREFIX=/usr qcma.pro CONFIG+=QT5_SUFFIX
 | 
					qmake-qt5 PREFIX=/usr qcma.pro CONFIG+=QT5_SUFFIX CONFIG+=ENABLE_KNOTIFICATIONS CONFIG+=ENABLE_APPINDICATOR CONFIG+=ENABLE_KDENOTIFIER
 | 
				
			||||||
make %{?_smp_mflags}
 | 
					make %{?_smp_mflags}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%install
 | 
					%install
 | 
				
			||||||
@@ -64,8 +66,34 @@ make install INSTALL_ROOT=%{buildroot}
 | 
				
			|||||||
%files
 | 
					%files
 | 
				
			||||||
%defattr(-,root,root)
 | 
					%defattr(-,root,root)
 | 
				
			||||||
%{_bindir}/qcma
 | 
					%{_bindir}/qcma
 | 
				
			||||||
%{_bindir}/qcma_cli
 | 
					 | 
				
			||||||
%{_prefix}/share/applications/qcma/qcma.desktop
 | 
					%{_prefix}/share/applications/qcma/qcma.desktop
 | 
				
			||||||
%{_prefix}/share/icons/hicolor/64x64/apps/qcma.png
 | 
					%{_prefix}/share/icons/hicolor/64x64/apps/qcma.png
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%changelog
 | 
					%changelog
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%package cli
 | 
				
			||||||
 | 
					Summary: Content Manager Assistant for the PS Vita (headless version)
 | 
				
			||||||
 | 
					%description cli
 | 
				
			||||||
 | 
					Headless version of Qcma
 | 
				
			||||||
 | 
					%files cli
 | 
				
			||||||
 | 
					%{_bindir}/qcma_cli
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%package appindicator
 | 
				
			||||||
 | 
					Summary: Content Manager Assistant for the PS Vita (appindicator support)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%description appindicator
 | 
				
			||||||
 | 
					Appindicator plugin for Qcma
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%files appindicator
 | 
				
			||||||
 | 
					%{_libdir}/qcma/libqcma_appindicator.so
 | 
				
			||||||
 | 
					%{_prefix}/share/icons/hicolor/64x64/actions/qcma_on.png
 | 
				
			||||||
 | 
					%{_prefix}/share/icons/hicolor/64x64/actions/qcma_off.png
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%package kdenotifier
 | 
				
			||||||
 | 
					Summary: Content Manager Assistant for the PS Vita (kdenotifier support)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%description kdenotifier
 | 
				
			||||||
 | 
					KDENotifier plugin for Qcma
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%files kdenotifier
 | 
				
			||||||
 | 
					%{_libdir}/qcma/libqcma_kdenotifier.so
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user