diff --git a/.gitignore b/.gitignore index 7adabb7..bedb942 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1 @@ -tzclock-2.7.7.tar.bz2 -/tzclock-3.0.1.tar.bz2 -/tzclock-3.0.2.tar.bz2 -/tzclock-3.0.3.tar.bz2 -/tzclock-3.0.5.tar.bz2 +/tzclock-*.tar.bz2 diff --git a/sources b/sources index 8fd1aa5..8d86c99 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -093c9843ee52e75784536b5467275099 tzclock-3.0.5.tar.bz2 +SHA512 (tzclock-4.9.tar.bz2) = 846793d9fe9eaeb82caea2086faea14d072f1800b2953852a585e76dff195d8340659b4ffc04c5f9a1d93d3fc19a00592b2d217b0eed014c24465b603b9b7e74 diff --git a/tzclock.spec b/tzclock.spec index 9801a1a..1cf40d8 100644 --- a/tzclock.spec +++ b/tzclock.spec @@ -1,22 +1,26 @@ Name: tzclock -Version: 3.0.5 +Version: 4.9 Release: 1%{?dist} Summary: GTK+ graphical Clock displaying the time around the world -Group: Amusements/Graphics -License: GPLv2 -URL: http://www.tzclock.org/ -Source0: http://www.tzclock.org/releases/source/%{name}-%{version}.tar.bz2 +# SPDX confirmed +License: GPL-2.0-only +URL: https://theknight.co.uk/ +Source0: http://theknight.co.uk/releases/Source/%{name}-%{version}.tar.bz2 -BuildRequires: gtk3-devel -BuildRequires: libnotify-devel +BuildRequires: make +BuildRequires: gcc +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(libnotify) +BuildRequires: pkgconfig(dial) +BuildRequires: /usr/bin/appstream-util BuildRequires: desktop-file-utils %description TzClock is an X Window GTK+ graphical Clock that can display the time around the world. It supports multiple faces showing different time zones. -There is a stopwatch funtion that is accurate to a tenth of a second, +There is a stopwatch function that is accurate to a tenth of a second, plus there are many other nice features for you to discover. %prep @@ -24,59 +28,123 @@ plus there are many other nice features for you to discover. sed -i.suffix \ -e 's|^Icon=.*|Icon=tzclock|' \ - TzClock.desktop + %{name}.desktop %build %configure +%make_build -k %{__make} %{?_smp_mflags} %install -%{__make} install \ - INSTALL="%{__install} -p" \ - DESTDIR=$RPM_BUILD_ROOT +%make_install -desktop-file-install \ - --dir $RPM_BUILD_ROOT%{_datadir}/applications \ -%if 0%{?fedora} < 19 - --vendor fedora \ -%endif - --delete-original \ - $RPM_BUILD_ROOT%{_datadir}/applications/TzClock.desktop - -# I like lower case! -%{__ln_s} -f TzClock $RPM_BUILD_ROOT%{_bindir}/%{name} -%{__ln_s} -f TzClock.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 - -# Not needed -%{__rm} -f $RPM_BUILD_ROOT%{_bindir}/screenSize - -%post -touch --no-create %{_datadir}/icons/hicolor/ -exit 0 - -%postun -[ "$1" -eq 0 ] || exit 0 - -touch --no-create %{_datadir}/icons/hicolor/ -%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor -exit 0 - -%posttrans -%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor -exit 0 +%check +desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml %files %defattr(-,root,root,-) %doc AUTHORS -%doc COPYING +%license COPYING %{_bindir}/* +%{_metainfodir}/*.metainfo.xml %{_datadir}/icons/hicolor/*/*/tzclock* -%{_datadir}/applications/*desktop +%{_datadir}/applications/%{name}.desktop -%{_mandir}/man1/* +%{_mandir}/man1/%{name}.1* %changelog +* Thu Aug 20 2026 Mamoru TASAKA - 4.9-1 +- 4.9 + +* Fri Jul 17 2026 Fedora Release Engineering - 3.1.7-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + +* Sat Jan 17 2026 Fedora Release Engineering - 3.1.7-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jul 25 2025 Fedora Release Engineering - 3.1.7-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Sun Jan 19 2025 Fedora Release Engineering - 3.1.7-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Sat Jul 20 2024 Fedora Release Engineering - 3.1.7-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 3.1.7-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Dec 30 2023 Mamoru TASAKA - 3.1.7-13 +- SPDX migration + +* Sat Jul 22 2023 Mamoru TASAKA - 3.1.7-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 3.1.7-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 3.1.7-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 3.1.7-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 3.1.7-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 3.1.7-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 3.1.7-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jan 31 2020 Fedora Release Engineering - 3.1.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jul 27 2019 Fedora Release Engineering - 3.1.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 03 2019 Fedora Release Engineering - 3.1.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 3.1.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Feb 13 2018 Mamoru TASAKA - 3.1.7-1 +- 3.1.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 3.0.6-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jan 18 2018 Igor Gnatenko - 3.0.6-6 +- Remove obsolete scriptlets + +* Thu Aug 03 2017 Fedora Release Engineering - 3.0.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 3.0.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 3.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 05 2016 Fedora Release Engineering - 3.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Sep 25 2015 Mamoru TASAKA - 3.0.6-1 +- 3.0.6 + +* Fri Jun 19 2015 Fedora Release Engineering - 3.0.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Aug 18 2014 Fedora Release Engineering - 3.0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 3.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Mon May 19 2014 Mamoru TASAKA - 3.0.5-1 - 3.0.5