Name:           link-editor
Version:        0.3
Group:          File tools
Summary:        Editor of symbolic links
License:        GPLv3
URL:            https://bitbucket.org/vindexbit/vitis

Release:        1%{?dist}
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  ldc

%description
link-editor can change paths in links,
it has options for replacing part of the path.

%global debug_package %{nil}

%prep
%setup -q

%build
make

%install
make install PREFIX=%{buildroot}/usr/

%files
%attr(0755, root, root) /usr/bin/%{name}
%attr(0755, root, root) /usr/share/bash-completion/completions/%{name}
%dir %attr(0755, root, root) /usr/share/doc/%{name}/
%doc %attr(0644, root, root) /usr/share/doc/%{name}/copyright
%attr(0644, root, root) /usr/share/help/en_US/%{name}/help.txt
%attr(0644, root, root) /usr/share/help/ru_RU/%{name}/help.txt
%attr(0644, root, root) /usr/share/help/eo/%{name}/help.txt
%attr(0755, root, root) /usr/share/man/man1/%{name}.1.gz
%attr(0755, root, root) /usr/share/man/ru/man1/%{name}.1.gz
%attr(0755, root, root) /usr/share/man/eo/man1/%{name}.1.gz

%changelog
* Mon Nov 12 2018 Eugene 'Vindex' Stulin <tech.vindex@gmail.com> 0.3
    - man-pages added;
    - Esperanto-translation added;
    - the "-d" option added for using with directories.
* Wed May 23 2018 Eugene 'Vindex' Stulin <tech.vindex@gmail.com> 0.2
    - added -R option for recursive search.
