dbba18d
%global __python __python3
dbba18d
Alec Leamas 39d7de4
%global gittag      0.7.1
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 39d7de4
Version:        0.7.1
29ff0c5
Release:        10%{?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
Alec Leamas 39d7de4
Patch1:         0001-ddupdate_netrc_to_keyring-ddupdate-netrc-to-keyring.patch
Alec Leamas 3a76923
Patch2:         0002-plugins-dtdns-Remove-service-seems-dead.patch
Alec Leamas 3a76923
Patch3:         0003-Manpages-update.patch
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
Alec Leamas 1ec69e4
Requires:       python%{python3_pkgversion}-keyring
9852712
Requires:       python%{python3_pkgversion}-requests
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
Alec Leamas 0752d1d
sed -i 's|systemd_unitdir(),|"lib/systemd/user",|' setup.py
8090a1c
8090a1c
8090a1c
%build
8090a1c
%py3_build
8090a1c
8090a1c
8090a1c
%install
Alec Leamas 8a17453
export FINAL_PREFIX=/
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 39d7de4
%{_bindir}/ddupdate-netrc-to-keyring
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*
Alec Leamas 39d7de4
%{_mandir}/man8/ddupdate-netrc-to-keyring.8*
1304938
%{_mandir}/man5/ddupdate.conf.5*
8090a1c
%{python3_sitelib}/*
8090a1c
8090a1c
8090a1c
%changelog
29ff0c5
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-10
29ff0c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
29ff0c5
de735bf
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-9
de735bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
de735bf
5b96390
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-8
5b96390
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
5b96390
62c34a3
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.7.1-7
62c34a3
- Rebuilt for Python 3.12
62c34a3
50e5504
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-6
50e5504
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
50e5504
Alec Leamas 1ec69e4
* Wed Aug 03 2022 Alec Leamas <leamas.alec@nowhere.net> - 0.7.1-5
Alec Leamas 1ec69e4
- Added missing python3-keyring dependency, upstream bug 71.
Alec Leamas 1ec69e4
9f625bf
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-4
9f625bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
9f625bf
eb7487f
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.7.1-3
eb7487f
- Rebuilt for Python 3.11
eb7487f
Alec Leamas 3a76923
* Sun Apr 10 2022 Alec Leamas <leamas.alec@nowhere.net> - 0.7.1-2
Alec Leamas 3a76923
- Add upstream patch: manpages update.
Alec Leamas 3a76923
- Add upstream patch: Drop dead dtnds service.
Alec Leamas 3a76923
Alec Leamas 39d7de4
* Wed Apr 06 2022 Alec Leamas <leamas.alec@nowhere.net> - 0.7.1-1
Alec Leamas 39d7de4
- New version
Alec Leamas 39d7de4
- Drop upstreamed autocompletion patch
Alec Leamas 39d7de4
- Add patch renaming ddupdate-netrc-to-keyring
Alec Leamas 39d7de4
Alec Leamas 98f0d19
* Thu Mar 31 2022 Alec Leamas <leamas.alec@nowhere.net> - 0.7.0-2
Alec Leamas 98f0d19
- Add new autocompletion patch
Alec Leamas 98f0d19
Alec Leamas fd0fc7e
* Thu Mar 31 2022 Alec Leamas <leamas.alec@nowhere.net> - 0.7.0-1
Alec Leamas fd0fc7e
- New upstream  release
Alec Leamas fd0fc7e
Alec Leamas 0752d1d
* Mon Feb 14 2022 Alec Leamas <leamas.alec@nowhere.net> - 0.6.6-1
Alec Leamas 0752d1d
- New upstream release
Alec Leamas 0752d1d
0902f04
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-7
0902f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
0902f04
1240d82
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-6
1240d82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1240d82
c0a34dc
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.6.5-5
c0a34dc
- Rebuilt for Python 3.10
c0a34dc
9852712
* Thu Feb 18 2021 Ivan Mironov <mironov.ivan@gmail.com> - 0.6.5-4
9852712
- Add python*-requests which is required for Cloudflare plugin
9852712
915f228
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-3
915f228
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
915f228
4fdc59f
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-2
4fdc59f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4fdc59f
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