%define ver 2.0
%define rel 1

Summary: NetworkManager Dispatcher Script for chrony
Name: networkmanager-dispatcher-chrony
Version: %{ver}
Release: %{rel}%{?_dist_release}
License: BSD
Group: Applications/Services
URL: https://aur.archlinux.org/packages/networkmanager-dispatcher-chrony/
Source0: https://aur.archlinux.org/packages/ne/%{name}/%{name}.tar.gz
Patch0: networkmanager-dispatcher-chrony-2.0-path.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
Requires: NetworkManager
Requires: chrony

%description
NetworkManager Dispatcher Script for chrony.

Vendor: Project Vine
Distribution: Vine Linux
Packager: iwaim

%prep
%setup -q -n %{name}
%patch0 -p1

%build

%install
rm -rf $RPM_BUILD_ROOT
%__mkdir_p %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d
%__install -m0700 10-chrony %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc ChangeLog PKGBUILD
%{_sysconfdir}/NetworkManager/dispatcher.d/10-chrony

%changelog
* Wed Dec 31 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0-1
- initial release for Vine Linux

