1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
%define variant alt-server %define Variant ALT Server %define _documentationdir %_defaultdocdir/documentation %define _docsinstalldir %_defaultdocdir/%variant %define variants docs-office-server docs-backup-server docs-desktop docs-school-master docs-school-junior docs-school-lite docs-school-server docs-kdesktop docs-school-terminal docs-school-newlite docs-centaurus docs-simply-linux docs-lxdesktop docs-lxdesktop-lite docs-school-teacher docs-alt-education docs-alt-kworkstation docs-alt-server docs-alt-workstation docs-alt-kworkstation docs-alt-spworkstation docs-alt-server-v Name: docs-%variant Version: 10.1 Release: alt2 Summary: %Variant documentation License: %fdl Group: Documentation Packager: ALT Docs Team <docs@packages.altlinux.org> BuildArch: noarch Source: %name-%version-%release.tar Obsoletes: docs-basealt-desktop <= 8.0-alt2 Conflicts: %(for n in %variants ; do [ "$n" = %name ] || echo -n "$n "; done) BuildRequires(pre):rpm-build-licenses BuildRequires: publican BuildRequires: perl-podlators BuildRequires: libwebp-tools %description %Variant documentation. %prep %setup -n %name-%version-%release %build %make_build %install %makeinstall_std docdir=%_docsinstalldir ln -sr %buildroot{%_docsinstalldir,%_documentationdir} sed -i 's/src="images\/\(.*\).png"/src="images\/\1.webp"/g' %buildroot%_docsinstalldir/ru-RU/index.html for file in %buildroot%_docsinstalldir/ru-RU/images/*.png; do cwebp $file -o %buildroot%_docsinstalldir/ru-RU/images/$(basename $file .png).webp -quiet && rm $file; done %files %_docsinstalldir %_documentationdir %changelog * Wed Jan 11 2023 Elena Mishina <lepata@altlinux.org> 10.1-alt2 - update documentation * Thu Sep 29 2022 Elena Mishina <lepata@altlinux.org> 10.1-alt1 - update to ALT Server 10.1 * Wed Apr 06 2022 Elena Mishina <lepata@altlinux.org> 10.0-alt2 - add UrBackup, delete bacula - update documentation * Wed Dec 01 2021 Elena Mishina <lepata@altlinux.org> 10.0-alt1 - update to ALT Server 10.0rc * Tue Jul 14 2020 Elena Mishina <lepata@altlinux.org> 9.1-alt1 - update to latest public distr of ALT Server 9.1 * Wed Oct 09 2019 Elena Mishina <lepata@altlinux.org> 9.0-alt1 - update to latest public distr * Tue Aug 20 2019 Elena Mishina <lepata@altlinux.org> 8.90-alt1 - update to beta verson of ALT Server 9.0 * Thu Nov 22 2018 Elena Mishina <lepata@altlinux.org> 8.2-alt1 - initial build