d77a743
Summary: 	A tool for arranging times in advance with overseas colleagues
d77a743
Name: 		international-time
d77a743
Version: 	0.0.2
25a6987
Release: 	13%{?dist}
bbfe8f5
# No attribution, just COPYING
bbfe8f5
License: 	GPL+
d77a743
Group: 		Applications/System
d77a743
Source0: 	http://cyberelk.net/tim/data/international-time/international-time-%{version}.tar.bz2
44f25e0
Patch0:		international-time-current-time.patch
d77a743
Url:            http://cyberelk.net/tim/data/international-time/
d77a743
BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d77a743
BuildArch: 	noarch
d77a743
d77a743
BuildRequires: 	desktop-file-utils >= 0.2.92
d77a743
Requires: 	pygtk2-libglade
d77a743
d77a743
%description
d77a743
This is a graphical tool for converting a local "wall-clock" time into
d77a743
UTC.  This is useful for arranging conference calls where participants
d77a743
from other countries are expected
d77a743
d77a743
%prep
d77a743
%setup -q -n %{name}-%{version}
44f25e0
%patch0 -p1 -b .current-time
d77a743
d77a743
%build
d77a743
d77a743
%install
d77a743
rm -rf %{buildroot}
d77a743
d77a743
cat >international-time.desktop <
d77a743
[Desktop Entry]
d77a743
Encoding=UTF-8
d77a743
Name=International Time
d77a743
Comment=International Time Coordinator
d77a743
Exec=/usr/bin/international-time
d77a743
Terminal=false
d77a743
Type=Application
d77a743
EOF
d77a743
d77a743
mkdir -p %{buildroot}%{_bindir}
d77a743
mkdir -p %{buildroot}%{_datadir}/%{name}
d77a743
mkdir -p %{buildroot}%{_datadir}/applications
d77a743
install -m 0755 international-time.py %{buildroot}%{_bindir}/international-time
d77a743
install -m 0644 international-time.glade %{buildroot}%{_datadir}/%{name}
a5e9621
desktop-file-install \
a5e9621
%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7)
a5e9621
  --vendor fedora \
a5e9621
%endif
d77a743
  --dir %{buildroot}%{_datadir}/applications \
dc74e32
  --add-category Utility \
dc74e32
  --add-category Application \
d77a743
  --add-category X-Fedora \
d77a743
  international-time.desktop
d77a743
d77a743
%clean
d77a743
rm -rf %{buildroot}
d77a743
f3fc27a
%post
f3fc27a
/usr/bin/update-desktop-database &>/dev/null ||:
f3fc27a
f3fc27a
%postun
f3fc27a
if [ "$1" = "0" ]; then
f3fc27a
  /usr/bin/update-desktop-database &>/dev/null ||:
f3fc27a
fi
f3fc27a
d77a743
%files
d77a743
%defattr(-,root,root,-)
d77a743
%doc COPYING
d77a743
%{_bindir}/*
d77a743
%{_datadir}/%{name}
d77a743
%{_datadir}/applications/*
d77a743
d77a743
%changelog
25a6987
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-13
25a6987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
25a6987
90e6ca0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-12
90e6ca0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
90e6ca0
a5e9621
* Thu Feb 14 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.0.2-11
a5e9621
- remove --vendor from desktop-file-install https://fedorahosted.org/fesco/ticket/1077
a5e9621
bc74071
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-10
bc74071
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bc74071
8cac501
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-9
8cac501
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8cac501
59de007
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-8
59de007
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
59de007
605cdb0
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-7
605cdb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
605cdb0
fe74bf5
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-6
fe74bf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fe74bf5
bbfe8f5
* Thu Jul 31 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.0.2-5
bbfe8f5
- fix license tag
bbfe8f5
44f25e0
* Fri Sep 14 2007 Tim Waugh <twaugh@redhat.com> 0.0.2-4
44f25e0
- Use the current time (bug #291151).
44f25e0
f10c8e6
* Wed Dec  6 2006 Tim Waugh <twaugh@redhat.com> 0.0.2-3
f10c8e6
- Built for devel.
f10c8e6
dc74e32
* Fri Oct 27 2006 Tim Waugh <twaugh@redhat.com>
dc74e32
- Better categories for the desktop file.
dc74e32
f3fc27a
* Wed Oct 25 2006 Tim Waugh <twaugh@redhat.com>
f3fc27a
- Update desktop database on installation.
f3fc27a
d77a743
* Wed Oct 18 2006 Tim Waugh <twaugh@redhat.com> 0.0.2-1
d77a743
- 0.0.2.  More fixes from package review.
d77a743
d77a743
* Thu Oct 12 2006 Tim Waugh <twaugh@redhat.com> 0.0.1-2
d77a743
- Fixes from package review.
d77a743
d77a743
* Thu Jul 27 2006 Tim Waugh <twaugh@redhat.com> 0.0.1-1
d77a743
- Minor GUI change.
d77a743
d77a743
* Thu Jun  8 2006 Tim Waugh <twaugh@redhat.com>
d77a743
- Initial spec file.