Group :: Networking/Other
RPM: editmoin
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: editmoin
Version: 1.8
Release: alt2
%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://moinmoin.wikiwikiweb.de/VimHighlighting?action=AttachFile&do=get&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
%__install %name %buildroot%_bindir
%__install %SOURCE3 %buildroot%vim_ftplugin/moin.vim
%__install moin.vim %buildroot%vim_syntax/%name.vim
%__install %name.vim.alt %buildroot%_altdir/%name.vim
# David O'Callaghan from moinmoin.wikiwikiweb.de
%__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
%_bindir/*
%vim_syntax/%name.vim
%_altdir/%name.vim
%doc README.alt*
%files -n vim-plugin-moin-syntax
%vim_syntax/moinmoin.vim
%vim_ftplugin/moin.vim
%_altdir/moinmoin.vim
%changelog
…
Full changelog you can see here
Version: 1.8
Release: alt2
%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://moinmoin.wikiwikiweb.de/VimHighlighting?action=AttachFile&do=get&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
%__install %name %buildroot%_bindir
%__install %SOURCE3 %buildroot%vim_ftplugin/moin.vim
%__install moin.vim %buildroot%vim_syntax/%name.vim
%__install %name.vim.alt %buildroot%_altdir/%name.vim
# David O'Callaghan from moinmoin.wikiwikiweb.de
%__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
%_bindir/*
%vim_syntax/%name.vim
%_altdir/%name.vim
%doc README.alt*
%files -n vim-plugin-moin-syntax
%vim_syntax/moinmoin.vim
%vim_ftplugin/moin.vim
%_altdir/moinmoin.vim
%changelog
…
Full changelog you can see here