File media-downloader.spec of Package media-downloader

#
# Spec file for package media-downloader
#
# Copyright © 2021 Francis Banyikwa <mhogomchungu@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

Name:           media-downloader
Version:        5.4.2
Release:        0
Summary:        Qt GUI front end to youtube-dl
License:        GPL-2.0+
Group:          Productivity/Multimedia/Video/Players
Source:         %{name}-%{version}.tar.xz
URL:            https://github.com/mhogomchungu/media-downloader

#You may want to add dependencies for kwallet,gnome-keyring and pwquality below
#if you want to include optional functionality they provide.

BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Network)

%description
A Qt/C++ GUI frontend to youtube-dl that is capable of downloading any media supported by youtube-dl.

%undefine _debugsource_packages

%prep
%setup -q

%build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE ..

%install
cd build
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf %{buildroot}
rm -rf $RPM_BUILD_DIR/media-downloader

%files
%defattr(0755,root,root)
%{_bindir}/media-downloader
%defattr(0755,root,root)

%defattr(0644,root,root)
%{_datadir}/applications/media-downloader.desktop
%{_datadir}/pixmaps/media-downloader.png
%{_datadir}/media-downloader
%{_datadir}/media-downloader/translations
%{_datadir}/media-downloader/translations/pl_PL.qm
%{_datadir}/media-downloader/translations/en_US.qm
%{_datadir}/media-downloader/translations/fr_FR.qm
%{_datadir}/media-downloader/translations/tr_TR.qm
%{_datadir}/media-downloader/translations/de_DE.qm
%{_datadir}/media-downloader/translations/sv_SE.qm
%{_datadir}/media-downloader/translations/zh_CN.qm
%{_datadir}/media-downloader/translations/ru_RU.qm
%{_datadir}/media-downloader/translations/it_IT.qm
%{_datadir}/media-downloader/translations/es.qm
%{_datadir}/media-downloader/translations/ja_JP.qm
%defattr(0644,root,root)

%changelog
* Sat Jan 30 2021 Francis Banyikwa <mhogomchungu@gmail.com> - 1.0.0
- Initial release
openSUSE Build Service is sponsored by