Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37879105
en ru br
ALT Linux repositórios
5.0: 1.10.1-alt1
4.1: 1.8-alt2.1
4.0: 1.8-alt2

Group :: Rede/Outros
RPM: editmoin

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: editmoin
Version: 1.10.1
Release: alt1
%define vim_syntax %_datadir/vim/syntax
%define vim_ftplugin %_datadir/vim/ftplugin
URL: http://labix.org/%name
Vendor: Gustavo Niemeyer <gustavo at niemeyer.net>
License: GPL
Group:   Networking/Other
Source: http://labix.org/download/%name/%name-%version.tar.gz
Source1: http://heap.altlinux.ru/engine/HowToNamePages/EditMoin
# http://moinmo.in/VimHighlighting?action=AttachFile&do=view&target=moin.vim
Source2: moin.vim
Source3: ftplugin.vim
Patch: %name-edtitext.patch
Patch1: moin.vim-nohiclear.patch
BuildArch: noarch
Packager: Fr. Br. George <george at altlinux.ru>
BuildPreReq: alternatives
BuildRequires: iconv
Requires: python

Summary: Edit Moin pages remotely with your preferred editor

%description
This program allows you to edit moin (see http://moinmoin.wikiwikiweb.de) pages with your preferred editor. It means you can easily edit your pages, without the usual limitations of most web browsers' text areas.

%package -n vim-plugin-moin-syntax
Summary: MoinMoin syntax highlighting plugin for VIM
Group: Editors
Url: http://moinmoin.wikiwikiweb.de/VimHighlighting
BuildPreReq: alternatives
Requires: %_bindir/vim
%description -n vim-plugin-moin-syntax
MoinMoin syntax highlighting plugin for VIM provided by MoinMoin community

%prep
%setup -q
%patch
cp %SOURCE2 moinmoin.vim
#patch1
cp %SOURCE1 README.alt.utf-8
iconv -f utf-8 -t koi8-r < %SOURCE1 > README.alt

%build
echo "%vim_syntax/moin.vim %vim_syntax/%name.vim 30" > %name.vim.alt
echo "%vim_syntax/moin.vim %vim_syntax/moinmoin.vim 60" > moinmoin.vim.alt

%install
mkdir -p %buildroot%vim_syntax %buildroot%vim_ftplugin %buildroot%_bindir %buildroot%_altdir %buildroot%_man1dir
install %name %buildroot%_bindir
install %name.1 %buildroot%_man1dir
install %SOURCE3 %buildroot%vim_ftplugin/moin.vim
install moin1_6.vim %buildroot%vim_syntax/%name.vim
install moin1_5.vim %buildroot%vim_syntax/moin15.vim
install %name.vim.alt %buildroot%_altdir/%name.vim
#  David O'Callaghan from moinmo.in
install moinmoin.vim %buildroot%vim_syntax/moinmoin.vim
install moinmoin.vim.alt %buildroot%_altdir/moinmoin.vim

%post
%register_alternatives %name.vim

%preun
%unregister_alternatives %name.vim

%post -n vim-plugin-moin-syntax
%register_alternatives moinmoin.vim

%preun -n vim-plugin-moin-syntax
%unregister_alternatives moinmoin.vim

%files
%doc README.alt*
%_bindir/*
%vim_syntax/%name.vim
%vim_syntax/moin15.vim
%_altdir/%name.vim
%_man1dir/%name.*

%files -n vim-plugin-moin-syntax
%vim_syntax/moinmoin.vim
%vim_ftplugin/moin.vim
%_altdir/moinmoin.vim

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009