Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
chum
>
link2clip
> _service:tar_git:linktoclip.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:linktoclip.spec of Package link2clip
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.32 # Name: linktoclip # >> macros # << macros Summary: Copies links to the clipboard Version: 0.9.2 Release: 0 Group: Applications License: ASL 2.0 BuildArch: noarch URL: https://codeberg.org/nephros/linktoclip Source0: %{name}-%{version}.tar.gz Source100: linktoclip.yaml Source101: linktoclip-rpmlintrc Requires: libsailfishapp-launcher BuildRequires: qt5-qttools-linguist BuildRequires: qt5-qmake BuildRequires: qml-rpm-macros BuildRequires: desktop-file-utils %description This small tool registers itself als a protocol handler for all protocols, and if selected to open e.g. an URL, copies that URL to the clipboard, and shows a little UI with some details about the URL. Can be useful for debugging, or just generally to capture URLs used by different applications. There is no application icon in the Launcher for this. %if "%{?vendor}" == "chum" PackageName: Link2Clip Type: desktop-application DeveloperName: nephros Categories: - Utility Custom: Repo: https://codeberg.org/nephros/linktoclip Screenshots: - https://codeberg.org/nephros/linktoclip/raw/branch/master/Screenshot_001.png %endif %prep %setup -q -n %{name}-%{version} # >> setup # << setup %build # >> build pre # << build pre # >> build post # << build post %install rm -rf %{buildroot} # >> install pre # lrelease -silent -removeidentical translations/* lrelease -silent -removeidentical *.pro # << install pre # >> install post %__install -m 644 -D %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop %__install -m 644 -D qml/%{name}.qml %{buildroot}%{_datadir}/%{name}/qml/%{name}.qml #for f in qml/cover/*.qml qml/components/qmldir qml/components/*/*.qml qml/components/*.qml qml/pages/*.qml; do for f in $(find qml/ -type f -name "*.qml" -o -name qmldir -o -name "*.png"); do %__install -m 644 -D ${f} %{buildroot}%{_datadir}/%{name}/${f} done for f in translations/*.qm; do %__install -m 644 -D ${f} %{buildroot}%{_datadir}/%{name}/${f} done #for s in 512 256 128 64 48; do #%%__install -m 644 -D icons/%%{name}-${s}.png %%{buildroot}%%{_datadir}/icons/hicolor/${s}x${s}/apps/%%{name}.png #done # mangle version info sed -i -e "s/unreleased/%{version}/" %{buildroot}%{_datadir}/%{name}/qml/%{name}.qml # << install post desktop-file-install --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/*.desktop %files %defattr(-,root,root,-) %license LICENSE %{_datadir}/applications/%{name}.desktop %dir %{_datadir}/%{name} %{_datadir}/%{name}/translations/*.qm %{_datadir}/%{name}/qml/* # >> files # << files