Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-release-src > by-pkgid > 90d06aeddebbf6830d8633ca3e24d9f1 > files > 2

gtvg-0.3-8mdv2010.0.src.rpm

%define name gtvg
%define version 0.3
%define release %mkrel 8

Name: %{name}
Summary: Gtvg - A Gnome TV Guide
Version: %{version}
Release: %{release}
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
URL: http://gtvg.sourceforge.net/
License: GPL
Group: Graphical desktop/GNOME
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: libgnome2-devel
BuildRequires: libgnomecanvas2-devel
BuildRequires: libglade2-devel
BuildRequires: libnotify-devel
BuildRequires: intltool
BuildRequires: desktop-file-utils
Requires: xmltv-grabbers

%description
Gtvg is a simple TV program schedule viewer, which allows you to quickly see 
what is on TV at the moment or later, and be reminded of when your favourite 
shows start.

It uses XMLTV as a backend to grab TV programs, but can be configured to use 
nxtvepg instead.

%prep
%setup -q

%build
%configure2_5x

%make
										
%install
rm -rf %{buildroot}
%makeinstall

desktop-file-install --vendor="" \
  --remove-category="Utility" \
  --remove-key="Encoding" \
  --remove-key="Version" \
  --remove-key="StartupNotify" \
  --add-category="X-MandrivaLinux-Multimedia-Video" \
  --dir %{buildroot}%{_datadir}/applications/ \
  %{buildroot}%{_datadir}/applications/*

rm -rf %{buildroot}/%{_prefix}/doc/%{name}
rm -f %{buildroot}%{_iconsdir}/hicolor/icon-theme.cache

%find_lang %{name}

%if %mdkversion < 200900
%post
%update_menus
%post_install_gconf_schemas "%{name}"
%update_icon_cache hicolor
%endif

%preun
%preun_uninstall_gconf_schemas "%{name}"

%if %mdkversion < 200900
%postun
%clean_menus
%update_icon_cache hicolor
%endif

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog
%{_sysconfdir}/gconf/schemas/%{name}.schemas
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*



%changelog
* Fri Sep 04 2009 Thierry Vignaud <tvignaud@mandriva.com> 0.3-8mdv2010.0
+ Revision: 429345
- rebuild

* Thu Jul 24 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.3-7mdv2009.0
+ Revision: 246723
- rebuild
- kill re-definition of %%buildroot on Pixel's request

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Mon Dec 17 2007 Guillaume Bedot <littletux@mandriva.org> 0.3-5mdv2008.1
+ Revision: 121730
- do not launch gtvg when installing schemas

* Mon Dec 17 2007 Guillaume Bedot <littletux@mandriva.org> 0.3-4mdv2008.1
+ Revision: 121642
- fix icon cache conflict

* Fri Dec 14 2007 Guillaume Bedot <littletux@mandriva.org> 0.3-3mdv2008.1
+ Revision: 120077
- fix schemas installation

* Tue Dec 11 2007 Guillaume Bedot <littletux@mandriva.org> 0.3-2mdv2008.1
+ Revision: 117184
- builreq again.
- also increase mkrel.
- requires, menus and and description fixes.

* Mon Dec 10 2007 Guillaume Bedot <littletux@mandriva.org> 0.3-1mdv2008.1
+ Revision: 117000
- Buildreqs.
- First package for Mandriva Linux (0.3 from svn).
- create gtvg