dbba18d
%global __python __python3
dbba18d
Alec Leamas 5555e4a
%global gittag      0.6.5
8090a1c
#global commit      eb302484417d85cbf497958ba2a651f738ad7420
8090a1c
8090a1c
%global shortcommit %{?commit:%(c=%{commit}; echo ${c:0:7})}%{!?commit:%nil}
8090a1c
%global shortdir    %{?gittag}%{?shortcommit}
8090a1c
%global srcdir      %{?gittag}%{?commit}
8090a1c
Alec Leamas 5555e4a
# mageia 6- fix:
Alec Leamas 5555e4a
%{!?_userunitdir: %global _userunitdir /usr/lib/systemd/system}
Alec Leamas 5555e4a
Alec Leamas 5555e4a
#Suse fix:
Alec Leamas 5555e4a
%{!?python3_pkgversion:%global python3_pkgversion 3}
Alec Leamas 5555e4a
8090a1c
Name:           ddupdate
Alec Leamas 5555e4a
Version:        0.6.5
Alec Leamas 5555e4a
Release:        1%{?dist}
8090a1c
Summary:        Tool updating DNS data for dynamic IP addresses
8090a1c
Alec Leamas 5555e4a
Group:          Applications/System
8090a1c
License:        MIT
8090a1c
URL:            http://github.com/leamas/ddupdate
8090a1c
BuildArch:      noarch
8090a1c
Source0:        %{url}/archive/%{srcdir}/%{name}-%{shortdir}.tar.gz
8090a1c
8090a1c
BuildRequires:  python%{python3_pkgversion}-devel
8090a1c
BuildRequires:  python%{python3_pkgversion}-setuptools
8090a1c
BuildRequires:  systemd
dbba18d
BuildRequires:  /usr/bin/pkg-config
Alec Leamas 5555e4a
8090a1c
Requires:       /usr/sbin/ip
1304938
Requires:       sudo
8090a1c
8090a1c
%{?systemd_requires}
8090a1c
8090a1c
%description
8090a1c
8090a1c
A tool to update dynamic IP addresses typically obtained using DHCP
8090a1c
with dynamic DNS services such as changeip.com, duckdns.org or no-ip.com.
8090a1c
It makes it  possible to access a machine with a fixed name like
8090a1c
myhost.duckdns.org even if the ip address changes. ddupdate caches the
8090a1c
address, and only attempts the update if the address actually is changed.
8090a1c
8090a1c
The tool has a plugin structure with plugins for obtaining the actual
8090a1c
address (typically hardware-dependent) and to update it (service depen‐
8090a1c
dent). For supported services, it's a linux-centric, user-friendly and
Alec Leamas 5555e4a
flexible alternative to the ubiquitous ddclient.
8090a1c
8090a1c
ddupdate is distributed with systemd support to run at regular intervals,
8090a1c
and with NetworkManager templates to run when interfaces goes up or down.
8090a1c
8090a1c
8090a1c
%prep
8090a1c
%autosetup -p1 -n %{name}-%{srcdir}
8090a1c
sed -i '/ExecStart/s|/usr/local|/usr|' systemd/ddupdate.service
8090a1c
sed -i 's|/lib/systemd/system|%{_unitdir}|' setup.py
a5de343
sed -i '/cmdclass=/s/^/#/' setup.py
8090a1c
8090a1c
8090a1c
%build
8090a1c
%py3_build
8090a1c
8090a1c
8090a1c
%install
8090a1c
%py3_install
dbba18d
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/ddupdate/plugins
8090a1c
8090a1c
8090a1c
%files
8090a1c
%license LICENSE.txt
1304938
%doc README.md NEWS CONTRIBUTE.md CONFIGURATION.md
8090a1c
%{_bindir}/ddupdate
1304938
%{_bindir}/ddupdate-config
Alec Leamas 5555e4a
%{_userunitdir}/ddupdate*
8090a1c
%{_datadir}/ddupdate
1304938
%{_datadir}/bash-completion/completions/ddupdate
8090a1c
%{_mandir}/man8/ddupdate.8*
1304938
%{_mandir}/man8/ddupdate-config.8*
1304938
%{_mandir}/man5/ddupdate.conf.5*
8090a1c
%{python3_sitelib}/*
8090a1c
8090a1c
8090a1c
%changelog
Alec Leamas 5555e4a
* Fri Jun 12 2020 Alec Leamas <leamas.alec@nowhere.net> - 0.6.5-1
Alec Leamas 5555e4a
- New upstream version
Alec Leamas 5555e4a
- Some attempts to make it build on opensuse.
Alec Leamas 5555e4a
98ebc4c
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.4-6
98ebc4c
- Rebuilt for Python 3.9
98ebc4c
9de627c
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-5
9de627c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9de627c
e9e5a5f
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.4-4
e9e5a5f
- Rebuilt for Python 3.8.0rc1 (#1748018)
e9e5a5f
e8da75c
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.4-3
e8da75c
- Rebuilt for Python 3.8
e8da75c
74bf2fd
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-2
74bf2fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
74bf2fd
a5de343
* Mon Jul 08 2019 Alec Leamas <leamas.alec@gmail.com> - 0.6.4-1
a5de343
- New upstream version
a5de343
- Move systemd files: systemd/system -> systemd/user
a5de343
331edc8
* Mon Jun 17 2019 Alec Leamas <leamas.alec@gmail.com> - 0.6.3-1
331edc8
- New upstream version
331edc8
- Fixes upstream #21, ipv6 config file parsing bug.
331edc8
8894b64
* Tue Apr 09 2019 Alec Leamas <leamas.alec@gmail.com> - 0.6.2-1
8894b64
- new version
8894b64
7f6203b
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-4
7f6203b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7f6203b
cb58a60
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-3
cb58a60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cb58a60
518419f
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6.1-2
518419f
- Rebuilt for Python 3.7
518419f
21e1982
* Thu Jun 14 2018 Alec Leamas <leamas.alec@gmail.com> - 0.6.1-1
21e1982
- New upstream maintenance release.
21e1982
cb4fcb0
* Sun Feb 18 2018 Alec Leamas <leamas.alec@gmail.com> - 0.6.0-2
cb4fcb0
- Drop redundant R: python3-straight-plugin
cb4fcb0
dbba18d
* Sun Feb 18 2018 Alec Leamas <leamas.alec@gmail.com> - 0.6.0-1
dbba18d
- New upstream version.
dbba18d
- Drop support for system-wide services.
dbba18d
- New BR pkg-config.
dbba18d
c033f0d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-2
c033f0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
dbba18d
§
1304938
* Sun Jan 28 2018 Alec Leamas <leamas.alec@gmail.com> - 0.5.2-1
1304938
- New upstream release
1304938
8090a1c
* Sat Jan 13 2018 Alec Leamas <leamas.alec@gmail.com> - 0.2.0-1
8090a1c
- New upstream release.
8090a1c
8090a1c
* Mon Jan 08 2018 Alec Leamas <leamas.alec@gmail.com> - 0.1.0-3
8090a1c
- Review remarks: Use %%{_unitdir}, %%py3_install, skip debug_package nil
8090a1c
8090a1c
* Sun Jan 07 2018 Alec Leamas <leamas.alec@gmail.com> - 0.1.0-2
8090a1c
- Fix unpackaged document file.
8090a1c
8090a1c
* Sun Jan 07 2018 Alec Leamas <leamas.alec@gmail.com> - 0.1.0-1
8090a1c
- New upstream release
8090a1c
8090a1c
* Thu Jan 04 2018 Alec Leamas <leamas.alec@gmail.com> - 0.0.6-3
8090a1c
- NetworkManager support patch, from upstream
8090a1c
8090a1c
* Thu Jan 04 2018 Alec Leamas <leamas.alec@gmail.com> - 0.0.6-2
8090a1c
- Fix epel-7 build error
8090a1c
8090a1c
* Wed Jan 03 2018 Alec Leamas <leamas.alec@gmail.com> - 0.0.6-1
8090a1c
- New upstream release.
8090a1c
8090a1c
* Wed Jan 03 2018 Alec Leamas <leamas.alec@gmail.com> - 0.0.5-0.6.eb30248
8090a1c
- rebuilt
8090a1c
8090a1c
* Tue Jan 02 2018 Alec Leamas <leamas.alec@gmail.com> - 0.0.5-0.5.rc2
8090a1c
- Published on COPR.
8090a1c
- Fix version-release
8090a1c
- Fix python version references.
8090a1c
8090a1c
* Tue Jan 02 2018 Alec Leamas <leamas.alec@gmail.com> - 0.0.5rc2-0.4
8090a1c
- New upstream release
8090a1c
8090a1c
* Tue Jan 02 2018 Alec Leamas <leamas.alec@gmail.com> - 0.0.5rc1-0.1
8090a1c
- New upstream release
8090a1c
8090a1c
* Fri Dec 29 2017 Alec Leamas <leamas.alec@gmail.com> - 0.0.2-0.2
8090a1c
- New upstream release, initial install testing done.
8090a1c
8090a1c
* Tue Dec 26 2017 Alec Leamas <leamas.alec@gmail.com> - 0.1-0.1.95f9fd8%{?dist}
8090a1c
- Initial release