%global __python __python3 %global gittag 0.7.1 #global commit eb302484417d85cbf497958ba2a651f738ad7420 %global shortcommit %{?commit:%(c=%{commit}; echo ${c:0:7})}%{!?commit:%nil} %global shortdir %{?gittag}%{?shortcommit} %global srcdir %{?gittag}%{?commit} # mageia 6- fix: %{!?_userunitdir: %global _userunitdir /usr/lib/systemd/system} #Suse fix: %{!?python3_pkgversion:%global python3_pkgversion 3} Name: ddupdate Version: 0.7.1 Release: 12%{?dist} Summary: Tool updating DNS data for dynamic IP addresses Group: Applications/System License: MIT URL: http://github.com/leamas/ddupdate BuildArch: noarch Source0: %{url}/archive/%{srcdir}/%{name}-%{shortdir}.tar.gz Patch1: 0001-ddupdate_netrc_to_keyring-ddupdate-netrc-to-keyring.patch Patch2: 0002-plugins-dtdns-Remove-service-seems-dead.patch Patch3: 0003-Manpages-update.patch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: systemd BuildRequires: /usr/bin/pkg-config Requires: python%{python3_pkgversion}-keyring Requires: python%{python3_pkgversion}-requests Requires: /usr/sbin/ip Requires: sudo %{?systemd_requires} %description A tool to update dynamic IP addresses typically obtained using DHCP with dynamic DNS services such as changeip.com, duckdns.org or no-ip.com. It makes it possible to access a machine with a fixed name like myhost.duckdns.org even if the ip address changes. ddupdate caches the address, and only attempts the update if the address actually is changed. The tool has a plugin structure with plugins for obtaining the actual address (typically hardware-dependent) and to update it (service depen‐ dent). For supported services, it's a linux-centric, user-friendly and flexible alternative to the ubiquitous ddclient. ddupdate is distributed with systemd support to run at regular intervals, and with NetworkManager templates to run when interfaces goes up or down. %prep %autosetup -p1 -n %{name}-%{srcdir} sed -i '/ExecStart/s|/usr/local|/usr|' systemd/ddupdate.service sed -i 's|systemd_unitdir(),|"lib/systemd/user",|' setup.py %build %py3_build %install export FINAL_PREFIX=/ %py3_install %py_byte_compile %{__python3} %{buildroot}%{_datadir}/ddupdate/plugins %files %license LICENSE.txt %doc README.md NEWS CONTRIBUTE.md CONFIGURATION.md %{_bindir}/ddupdate %{_bindir}/ddupdate-config %{_bindir}/ddupdate-netrc-to-keyring %{_userunitdir}/ddupdate* %{_datadir}/ddupdate %{_datadir}/bash-completion/completions/ddupdate %{_mandir}/man8/ddupdate.8* %{_mandir}/man8/ddupdate-config.8* %{_mandir}/man8/ddupdate-netrc-to-keyring.8* %{_mandir}/man5/ddupdate.conf.5* %{python3_sitelib}/* %changelog * Wed Jul 17 2024 Fedora Release Engineering - 0.7.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.7.1-11 - Rebuilt for Python 3.13 * Wed Jan 24 2024 Fedora Release Engineering - 0.7.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 0.7.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 0.7.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.7.1-7 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 0.7.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Aug 03 2022 Alec Leamas - 0.7.1-5 - Added missing python3-keyring dependency, upstream bug 71. * Thu Jul 21 2022 Fedora Release Engineering - 0.7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.7.1-3 - Rebuilt for Python 3.11 * Sun Apr 10 2022 Alec Leamas - 0.7.1-2 - Add upstream patch: manpages update. - Add upstream patch: Drop dead dtnds service. * Wed Apr 06 2022 Alec Leamas - 0.7.1-1 - New version - Drop upstreamed autocompletion patch - Add patch renaming ddupdate-netrc-to-keyring * Thu Mar 31 2022 Alec Leamas - 0.7.0-2 - Add new autocompletion patch * Thu Mar 31 2022 Alec Leamas - 0.7.0-1 - New upstream release * Mon Feb 14 2022 Alec Leamas - 0.6.6-1 - New upstream release * Thu Jan 20 2022 Fedora Release Engineering - 0.6.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 0.6.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.6.5-5 - Rebuilt for Python 3.10 * Thu Feb 18 2021 Ivan Mironov - 0.6.5-4 - Add python*-requests which is required for Cloudflare plugin * Tue Jan 26 2021 Fedora Release Engineering - 0.6.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 0.6.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 12 2020 Alec Leamas - 0.6.5-1 - New upstream version - Some attempts to make it build on opensuse. * Tue May 26 2020 Miro Hrončok - 0.6.4-6 - Rebuilt for Python 3.9 * Tue Jan 28 2020 Fedora Release Engineering - 0.6.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.6.4-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.6.4-3 - Rebuilt for Python 3.8 * Wed Jul 24 2019 Fedora Release Engineering - 0.6.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jul 08 2019 Alec Leamas - 0.6.4-1 - New upstream version - Move systemd files: systemd/system -> systemd/user * Mon Jun 17 2019 Alec Leamas - 0.6.3-1 - New upstream version - Fixes upstream #21, ipv6 config file parsing bug. * Tue Apr 09 2019 Alec Leamas - 0.6.2-1 - new version * Thu Jan 31 2019 Fedora Release Engineering - 0.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 0.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.6.1-2 - Rebuilt for Python 3.7 * Thu Jun 14 2018 Alec Leamas - 0.6.1-1 - New upstream maintenance release. * Sun Feb 18 2018 Alec Leamas - 0.6.0-2 - Drop redundant R: python3-straight-plugin * Sun Feb 18 2018 Alec Leamas - 0.6.0-1 - New upstream version. - Drop support for system-wide services. - New BR pkg-config. * Wed Feb 07 2018 Fedora Release Engineering - 0.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild § * Sun Jan 28 2018 Alec Leamas - 0.5.2-1 - New upstream release * Sat Jan 13 2018 Alec Leamas - 0.2.0-1 - New upstream release. * Mon Jan 08 2018 Alec Leamas - 0.1.0-3 - Review remarks: Use %%{_unitdir}, %%py3_install, skip debug_package nil * Sun Jan 07 2018 Alec Leamas - 0.1.0-2 - Fix unpackaged document file. * Sun Jan 07 2018 Alec Leamas - 0.1.0-1 - New upstream release * Thu Jan 04 2018 Alec Leamas - 0.0.6-3 - NetworkManager support patch, from upstream * Thu Jan 04 2018 Alec Leamas - 0.0.6-2 - Fix epel-7 build error * Wed Jan 03 2018 Alec Leamas - 0.0.6-1 - New upstream release. * Wed Jan 03 2018 Alec Leamas - 0.0.5-0.6.eb30248 - rebuilt * Tue Jan 02 2018 Alec Leamas - 0.0.5-0.5.rc2 - Published on COPR. - Fix version-release - Fix python version references. * Tue Jan 02 2018 Alec Leamas - 0.0.5rc2-0.4 - New upstream release * Tue Jan 02 2018 Alec Leamas - 0.0.5rc1-0.1 - New upstream release * Fri Dec 29 2017 Alec Leamas - 0.0.2-0.2 - New upstream release, initial install testing done. * Tue Dec 26 2017 Alec Leamas - 0.1-0.1.95f9fd8%{?dist} - Initial release