ddclient/ddclient.spec

60 lines
1.6 KiB
RPMSpec

Name: ddclient
Version: 3.9.1
Release: 1mamba
Summary: A Perl client used to update dynamic DNS entries for accounts on many dynamic DNS services
Group: System/Servers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/ddclient/ddclient.git
Source: https://github.com/ddclient/ddclient.git/v%{version}/ddclient-%{version}.tar.bz2
Source1: ddclient.service
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
Requires: perl-Data-Validate-IP
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A Perl client used to update dynamic DNS entries for accounts on many dynamic DNS services.
%prep
%setup -q
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -Dm755 ddclient %{buildroot}%{_bindir}/ddclient
install -Dm600 sample-etc_ddclient.conf %{buildroot}%{_sysconfdir}/ddclient/ddclient.conf
install -d %{buildroot}/var/cache/ddclient
install -Dm644 %{SOURCE1} %{buildroot}%{_unitdir}/ddclient.service
%post
%systemd_post ddclient.service
:
%postun
%systemd_postun ddclient.service
:
%preun
%systemd_preun_with_restart ddclient.service
:
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ddclient/ddclient.conf
%{_unitdir}/ddclient.service
%{_bindir}/ddclient
%doc COPYING
%changelog
* Fri Oct 30 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.9.1-1mamba
- package created using the webbuild interface