Package kde5-autofs-shares: Specfile

Name: kde5-autofs-shares
Version: 0.2.4
Release: alt1
%K5init

Summary: Samba shares plugin for Dolphin

License: GPL
Group: Graphical desktop/KDE
BuildArch: noarch

Requires: kf5-filesystem kde5-kdialog autofs
Requires: samba-client

Source: %name-%version.tar

BuildRequires(pre): rpm-build-kf5

%description
This plugin allows mounting samba shares from Dolphin

%prep
%setup

%install
install -D -m 0644 autofs-shares-manage.desktop %buildroot/%_K5srv/ServiceMenus/autofs-shares-manage.desktop
install -D -m 0644 autofs-shares-mount.desktop %buildroot/%_K5start/kde-autofs-shares-mount.desktop
install -D -m 0755 bin/kde-autofs-shares-manage %buildroot/%_bindir/kde-autofs-shares-manage
install -D -m 0755 bin/kde-autofs-shares-mount %buildroot/%_bindir/kde-autofs-shares-mount
# translations
find po/* -type d | \
while read d
do
    lang=`basename $d`
    mkdir -p %buildroot/%_datadir/locale/$lang/LC_MESSAGES
    msgfmt -o %buildroot/%_datadir/locale/$lang/LC_MESSAGES/kde-autofs-shares.mo $d/kde-autofs-shares.po
done

%find_lang %name --all-name

%files -f %name.lang
%_K5start/kde-autofs-shares-mount.desktop
%_K5srv/ServiceMenus/autofs-shares-manage.desktop
%_bindir/kde-autofs-shares-*

%changelog
* Thu Apr 04 2024 Sergey V Turchin <zerg@altlinux.org> 0.2.4-alt1
- rename files for more versatility
- requires samba-client for samba shares (closes: 49851)

* Mon Oct 02 2023 Sergey V Turchin <zerg@altlinux.org> 0.2.3-alt1
- update russian translation (closes: 47635)
- fix autostart desktop-file permissions (closes: 47723)

* Wed Mar 20 2019 Sergey V Turchin <zerg@altlinux.org> 0.2.2-alt1
- check ~/.autofs.shares available on mount

* Mon May 15 2017 Sergey V Turchin <zerg@altlinux.org> 0.2.1-alt1
- fix autostart

* Fri May 12 2017 Sergey V Turchin <zerg@altlinux.org> 0.2.0-alt1
- using autofs

* Thu May 04 2017 Oleg Solovyov <mcpain@altlinux.org> 0.1.2-alt1
- Add: i18n

* Thu May 04 2017 Oleg Solovyov <mcpain@altlinux.org> 0.1.1-alt4
- Replaced $1 with $SHARE

* Wed May 03 2017 Oleg Solovyov <mcpain@altlinux.org> 0.1.1-alt3
- Fixed behavior on mounting shares with whitespaces

* Wed May 03 2017 Oleg Solovyov <mcpain@altlinux.org> 0.1.1-alt2
- Minor fixes

* Tue May 02 2017 Oleg Solovyov <mcpain@altlinux.org> 0.1.1-alt1
- Added bash-script for mounting shares

* Mon May 01 2017 Oleg Solovyov <mcpain@altlinux.org> 0.1.0-alt1
- Initial build