Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
chum
:
testing
>
youtube-dl-open-helper
> _service:tar_git:youtube-dl-open-helper.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:youtube-dl-open-helper.spec of Package youtube-dl-open-helper
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.32 # Name: youtube-dl-open-helper # >> macros # << macros Summary: Video download helpers Version: 5432.6.5+git4 Release: 1 Group: Applications/Multimedia License: X11 BuildArch: noarch URL: https://openrepos.net/content/nephros/download-video-url-helper Source0: %{name}-%{version}.tar.gz Source100: youtube-dl-open-helper.yaml Requires: yt-dlp-bin Requires: libsailfishapp-launcher Requires: sailfishsilica-qt5 Requires: jolla-settings BuildRequires: pkgconfig(systemd) BuildRequires: qt5-qttools BuildRequires: qt5-qttools-linguist BuildRequires: desktop-file-utils %description MIME type, CLI helper and Clipboard app to download videos using yt-dlp This adds two UI components. One is a regular app you can use to paste URLs and download their video content. The second one lives in Jolla Settings, and enables MIME-type registrations for the downloader, so certain links are offered to be downloaded in the Open URL dialog. %if "%{?vendor}" == "chum" Title: Download Video Type: desktop-application DeveloperLogin: nephros Categories: - Media - Video Custom: Repo: https://codeberg.org/nephros/youtube-dl-open-helper Screenshots: - https://codeberg.org/nephros/youtube-dl-open-helper/raw/branch/master/files/Screenshot_01.png - https://codeberg.org/nephros/youtube-dl-open-helper/raw/branch/master/files/Screenshot_02.png Links: Homepage: https://openrepos.net/content/nephros/download-video-url-helper %endif %prep %setup -q -n %{name}-%{version} # >> setup # << setup %build # >> build pre # << build pre # >> build post # update mime types: files/extractor_to_mime.sh upstream files/youtube-dl-open-url.desktop > files/youtube-dl-open-url.desktop.new mv files/youtube-dl-open-url.desktop.new files/youtube-dl-open-url.desktop # << build post %install rm -rf %{buildroot} # >> install pre # << install pre # >> install post #%%{__install} -m 755 -D files/%%{name}.sh $RPM_BUILD_ROOT%%{_datadir}/%%{name}/%%{name}.sh %{__install} -m 755 -D files/%{name}_bb.sh $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}.sh %{__install} -m 644 -D files/%{name}.i18n $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}.i18n %{__install} -m 644 -D files/youtube-dl-open-url.desktop $RPM_BUILD_ROOT%{_datadir}/%{name}/youtube-dl-open-url.desktop %{__install} -m 644 -D files/youtube-dl-open-clipboard.desktop $RPM_BUILD_ROOT%{_datadir}/applications/youtube-dl-open-clipboard.desktop %{__install} -m 755 -D files/youtube-dl-open-installer.sh $RPM_BUILD_ROOT%{_datadir}/%{name}/youtube-dl-open-installer.sh %{__install} -m 644 -D files/youtube-dl-open-installer.service $RPM_BUILD_ROOT%{_userunitdir}/youtube-dl-open-installer.service %{__install} -m 644 -D qml/youtube-dl-open-clipboard.qml $RPM_BUILD_ROOT%{_datadir}/youtube-dl-open-clipboard/qml/youtube-dl-open-clipboard.qml %{__install} -m 644 -D qml/jolla-settings/pages/mime/youtube-dl-settings.qml $RPM_BUILD_ROOT%{_datadir}/jolla-settings/pages/mime/youtube-dl-settings.qml %{__install} -m 644 -D qml/jolla-settings/entries/youtube-dl-settings.json $RPM_BUILD_ROOT%{_datadir}/jolla-settings/entries/youtube-dl-settings.json for f in qml/pages/*; do %{__install} -m 644 -D ${f} $RPM_BUILD_ROOT%{_datadir}/youtube-dl-open-clipboard/${f} done for f in qml/cover/*; do %{__install} -m 644 -D ${f} $RPM_BUILD_ROOT%{_datadir}/youtube-dl-open-clipboard/${f} done # update translations %{__make} -C qml release %{__make} -C qml/jolla-settings release mkdir -p $RPM_BUILD_ROOT%{_datadir}/youtube-dl-open-clipboard/translations/ mkdir -p $RPM_BUILD_ROOT%{_datadir}/translations/ for f in qml/jolla-settings/translations/youtube-dl-settings-*.qm; do %{__install} -m 644 -D ${f} -t $RPM_BUILD_ROOT%{_datadir}/translations/ done for f in qml/youtube-dl-open-clipboard*.qm; do %{__install} -m 644 -D ${f} -t $RPM_BUILD_ROOT%{_datadir}/youtube-dl-open-clipboard/translations/ done # << install post desktop-file-install --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/*.desktop %post # >> post systemctl --user daemon-reload >/dev/null 2>&1 || : # << post %postun # >> postun systemctl --user daemon-reload >/dev/null 2>&1 || : # << postun %files %defattr(-,root,root,-) %attr(755,-,-)%{_datadir}/%{name}/%{name}.sh %attr(755,-,-)%{_datadir}/%{name}/youtube-dl-open-installer.sh %{_datadir}/%{name}/%{name}.i18n %{_datadir}/%{name}/youtube-dl-open-url.desktop %{_datadir}/applications/youtube-dl-open-clipboard.desktop %{_datadir}/jolla-settings/* %{_datadir}/translations/youtube-dl-settings*.qm %{_datadir}/youtube-dl-open-clipboard/qml %{_datadir}/youtube-dl-open-clipboard/translations %{_userunitdir}/youtube-dl-open-installer.service # >> files # << files