Merge opensuse/fedora spec files.
This commit is contained in:
@@ -1,57 +0,0 @@
|
|||||||
#
|
|
||||||
# qcma spec file
|
|
||||||
#
|
|
||||||
|
|
||||||
%define _version 0.3.7
|
|
||||||
|
|
||||||
%if "%{_version}" == "testing" || "%{_version}" == "master"
|
|
||||||
%define _verprefix %{_version}
|
|
||||||
%else
|
|
||||||
%define _verprefix v%{_version}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: qcma
|
|
||||||
Summary: PSVita Content Manager Assistant
|
|
||||||
License: GPL-3.0
|
|
||||||
Release: 1
|
|
||||||
Version: %{_version}
|
|
||||||
URL: https://github.com/codestation/qcma
|
|
||||||
Source: https://github.com/codestation/qcma/archive/%{_verprefix}/qcma-%{_version}.tar.gz
|
|
||||||
Group: Productivity/File utilities
|
|
||||||
Requires: libnotify
|
|
||||||
Requires: ffmpeg
|
|
||||||
Requires: libqt5-qtbase
|
|
||||||
Requires: libqt5-qtimageformats
|
|
||||||
Requires: libvitamtp4 >= 2.5.5
|
|
||||||
BuildRequires: gcc-c++
|
|
||||||
BuildRequires: pkg-config
|
|
||||||
BuildRequires: libnotify-devel
|
|
||||||
BuildRequires: ffmpeg-devel
|
|
||||||
BuildRequires: libvitamtp-devel
|
|
||||||
BuildRequires: libqt5-qttools
|
|
||||||
BuildRequires: libqt5-qtbase-devel
|
|
||||||
|
|
||||||
%description
|
|
||||||
QCMA is an cross-platform application to provide a Open Source implementation
|
|
||||||
of the original Content Manager Assistant that comes with the PS Vita. QCMA
|
|
||||||
is meant to be compatible with Linux, Windows and MAC OS X.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -n %{name}-%{version}
|
|
||||||
|
|
||||||
%build
|
|
||||||
lrelease-qt5 resources/translations/*.ts
|
|
||||||
qmake-qt5 PREFIX=/usr qcma.pro CONFIG+=QT5_SUFFIX
|
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
|
||||||
%install
|
|
||||||
make install INSTALL_ROOT=%{buildroot}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/qcma
|
|
||||||
%{_bindir}/qcma_cli
|
|
||||||
%{_prefix}/share/applications/qcma/qcma.desktop
|
|
||||||
%{_prefix}/share/icons/hicolor/64x64/apps/qcma.png
|
|
||||||
|
|
||||||
%changelog
|
|
@@ -10,6 +10,20 @@
|
|||||||
%define _verprefix v%{_version}
|
%define _verprefix v%{_version}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{defined fedora}
|
||||||
|
%define _qt5base qt5-qtbase
|
||||||
|
%define _qt5imageformats qt5-qtimageformats
|
||||||
|
%define _pkgconfig pkgconfig
|
||||||
|
%define _qt5toolsdevel qt5-qttools-devel
|
||||||
|
%define _qt5basedevel qt5-qtbase-devel
|
||||||
|
%else
|
||||||
|
%define _qt5base libqt5-qtbase
|
||||||
|
%define _qt5imageformats libqt5-qtimageformats
|
||||||
|
%define _pkgconfig pkg-config
|
||||||
|
%define _qt5toolsdevel libqt5-qttools
|
||||||
|
%define _qt5basedevel libqt5-qtbase-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: qcma
|
Name: qcma
|
||||||
Summary: PSVita Content Manager Assistant
|
Summary: PSVita Content Manager Assistant
|
||||||
License: GPL-3.0
|
License: GPL-3.0
|
||||||
@@ -20,16 +34,16 @@ Source: https://github.com/codestation/qcma/archive/%{_verprefix}/qcma-%
|
|||||||
Group: Productivity/File utilities
|
Group: Productivity/File utilities
|
||||||
Requires: libnotify
|
Requires: libnotify
|
||||||
Requires: ffmpeg
|
Requires: ffmpeg
|
||||||
Requires: qt5-qtbase
|
Requires: %{_qt5base}
|
||||||
Requires: qt5-qtimageformats
|
Requires: %{_qt5imageformats}
|
||||||
Requires: libvitamtp4 >= 2.5.5
|
Requires: libvitamtp4 >= 2.5.5
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: %{_pkgconfig}
|
||||||
BuildRequires: libnotify-devel
|
BuildRequires: libnotify-devel
|
||||||
BuildRequires: ffmpeg-devel
|
BuildRequires: ffmpeg-devel
|
||||||
BuildRequires: libvitamtp-devel
|
BuildRequires: libvitamtp-devel
|
||||||
BuildRequires: qt5-qttools-devel
|
BuildRequires: %{_qt5toolsdevel}
|
||||||
BuildRequires: qt5-qtbase-devel
|
BuildRequires: %{_qt5basedevel}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
QCMA is an cross-platform application to provide a Open Source implementation
|
QCMA is an cross-platform application to provide a Open Source implementation
|
Reference in New Issue
Block a user