%global commit 7326857683542102d383f969c002286845b1429f %global commitdate 20201001 %global shortcommit %(c=%{commit};echo ${c:0:7}) Name: slashtime Version: 0.5.13^20201001g%{shortcommit} Release: 1%{?dist} Summary: Displays time in various locations License: MIT URL: https://github.com/istathar/%{name} Source0: https://github.com/istathar/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz # Fix detection of Fedora java-gnome Patch1: 0001-fedora-java-gnome.patch # Make tzlist location consistent throughout Patch2: 0002-xdg-config-tzlist.patch # Update website and email in About dialog Patch3: 0003-about-github.patch BuildArch: noarch BuildRequires: gettext BuildRequires: java-devel >= 1:1.6.0 BuildRequires: java-gnome BuildRequires: jpackage-utils BuildRequires: make BuildRequires: perl-interpreter Requires: java-gnome Requires: java-headless >= 1:1.6.0 Requires: jpackage-utils %description Slashtime is a small GTK program which displays the time in various places. It has a compact display of locations along with supporting information including date and abbreviated zone code. The feature that originally made Slashtime unique was its showing the offset from the current location, not from UTC. %prep %autosetup -p1 -n %{name}-%{commit} %if 0%{?rhel} sed -i -e 's|fedora-release|redhat-release|' configure %endif %build # not autotools ./configure jdk=%{_jvmdir}/java java-gnome=%{_prefix} prefix=%{_prefix} %make_build %install %make_install %find_lang %{name} %files -f %{name}.lang %license LICENSE %doc AUTHORS PLACES README.markdown %{_bindir}/%{name} %{_javadir}/%{name}*.jar %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/slashtime.* %{_datadir}/%{name} %changelog * Fri Dec 24 2021 Yaakov Selkowitz - 0.5.13^20201001g7326857-1 - Initial build