Коммит 7ce1d498 создал по автору Проскурнев Артем Сергеевич's avatar Проскурнев Артем Сергеевич
Просмотр файлов

Добавлена ссылка на курс по обучению использования МОСТЕХ ОС

владелец 7c96a2fb
[Desktop Entry]
Icon=mostech-course
Name[ru_RU]=Курс по работе с Мостех.ОС
Name=Курс по работе с Мостех.ОС
Comment=Пройти обучение по Мостех.ОС
Comment[ru_RU]=Пройти обучение по Мостех.ОС
Type=Application
Exec=xdg-open "https://talent.mos.ru/training/product/?ID=139070870"
Categories=Documentation
<svg width="128" height="128" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="12.5" y="12.5" width="103" height="103" rx="21.5" fill="url(#paint0_linear_116_2)" stroke="#681413"/>
<path d="M84 66V88.8066C83.9999 89.2883 83.8077 89.8763 83 90.6143C82.1477 91.3929 80.7584 92.1819 78.8076 92.875C74.9209 94.2559 69.5376 95 64 95C58.4624 95 53.0791 94.2559 49.1924 92.875C47.2416 92.1819 45.8523 91.3929 45 90.6143C44.1923 89.8763 44.0001 89.2883 44 88.8066V66H84Z" fill="white" stroke="white" stroke-width="6"/>
<path d="M47 65H81C81 65 81 78.4378 81 84.9078C81 94.3641 47 94.3641 47 84.9078C47 77.9401 47 65 47 65Z" fill="#B62220"/>
<path d="M99.2373 55L64 76.4863L28.7617 55L64 33.5137L99.2373 55Z" fill="#BF2522" stroke="white" stroke-width="6"/>
<rect x="99" y="55" width="6" height="16" fill="white"/>
<circle cx="102" cy="75" r="6" fill="white"/>
<defs>
<linearGradient id="paint0_linear_116_2" x1="64" y1="12" x2="62.8772" y2="116.914" gradientUnits="userSpaceOnUse">
<stop stop-color="#C72724"/>
<stop offset="1" stop-color="#AD211F"/>
</linearGradient>
</defs>
</svg>
%define dont_relink 1
%define course mostech-course
%define names %{name} %{course}
Summary(ru_RU.UTF-8): Доступ к документации МосТех.ОС
Summary: Documentation for MosTech.OS
Name: mostech-docs
Version: 1.0
Release: 4
Version: 1.1
Release: 1
License: GPLv3
Group: System/Configuration/Other
Url: https://hub.mos.ru/mos/pkgs/dit/mostech-docs
Vendor: DIT
Source1: %{name}.svg
Source2: %{name}.desktop
Source3: %{course}.desktop
Source4: %{course}.svg
BuildArch: noarch
......@@ -21,9 +26,10 @@ BuildArch: noarch
Пакет, предоставляющий удобный доступ пользователя к документации МосТех.ОС
%files
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_datadir}/applications/*.desktop
"%{_sysconfdir}/skel/Рабочий стол/%{name}.desktop"
"%{_sysconfdir}/skel/Рабочий стол/%{course}.desktop"
%prep
%setup -q -T -c
......@@ -34,7 +40,10 @@ mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p "%{buildroot}%{_sysconfdir}/skel/Рабочий стол"
install -m644 %{name}.desktop %{buildroot}%{_datadir}/applications
install -m644 %{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps
ln -sf %{_datadir}/applications/%{name}.desktop "%{buildroot}%{_sysconfdir}/skel/Рабочий стол/%{name}.desktop"
for i in %{names}
do
install -m644 ${i}.desktop %{buildroot}%{_datadir}/applications
install -m644 ${i}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps
ln -sf %{_datadir}/applications/${i}.desktop "%{buildroot}%{_sysconfdir}/skel/Рабочий стол/${i}.desktop"
done
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать