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 74 75 76 77
# Unpackaged files in buildroot should terminate build %define _unpackaged_files_terminate_build 1 # some defs %define _altdocsdir %_defaultdocdir/alt-docs %define _indexhtmldir %_altdocsdir/indexhtml Name: indexhtml-school_terminal Version: 4.0 Release: alt1.M41.1 Summary: School Terminal html welcome page License: %fdl Group: System/Base BuildArch: noarch Packager: ALT Docs Team <docs@packages.altlinux.org> BuildRequires(pre): rpm-build-licenses >= 0.6 BuildRequires: desktop-file-utils Provides: indexhtml Conflicts: indexhtml-sisyphus Conflicts: indexhtml-Desktop Conflicts: indexhtml-school_junior Conflicts: indexhtml-school_lite Conflicts: indexhtml-school_master Conflicts: indexhtml-small_business Conflicts: indexhtml-school-server Conflicts: indexhtml-office-server Requires: xdg-utils Source: %name-%version.tar Source1: indexhtml.desktop %description School Terminal index.html welcome page. %prep %setup %install mkdir -p %buildroot{%_indexhtmldir/,%_desktopdir/} install -m644 * %buildroot%_indexhtmldir/ ln -s index-ru.html %buildroot%_indexhtmldir/index-en.html touch %buildroot%_indexhtmldir/index.html desktop-file-install --dir %buildroot%_desktopdir/ %SOURCE1 %post %_sbindir/indexhtml-update %files %ghost %_indexhtmldir/index.html %_indexhtmldir/* %_desktopdir/* %changelog * Sun Mar 29 2009 Artem Zolochevskiy <azol@altlinux.ru> 4.0-alt1.M41.1 - build for 4.1 branch (4.0-alt2) * Sun Mar 29 2009 Artem Zolochevskiy <azol@altlinux.ru> 4.0-alt2 - use desktop-file-install to install .desktop file - use StartupNotify=false in .desktop file * Fri Mar 27 2009 Artem Zolochevskiy <azol@altlinux.ru> 4.0-alt1 - update Conflicts: list - remove obsolete %%update_menus/%%clean_menus calls - use xdg-open to start browser - new version scheme: version = branch * Fri Jul 04 2008 Artem Zolochevskiy <azol@altlinux.ru> 0.1.2-alt1 - used school_book issue instead of separate admin and user guides * Tue Jun 03 2008 Artem Zolochevskiy <azol@altlinux.ru> 0.1.1-alt1 - used relative local links * Thu May 22 2008 Artem Zolochevskiy <azol@altlinux.ru> 0.1-alt1 - initial build for Sisyphus