8794d9a
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
8794d9a
8794d9a
Name:           gst-inspector
8794d9a
Version:        0.3
b236be0
Release:        7%{?dist}
8794d9a
Summary:        An introspection data viewer for the GStreamer multimedia framework
8794d9a
8794d9a
Group:          Development/Languages
8794d9a
License:        GPLv3+
8794d9a
URL:            http://renestadler.de/projects/gst-inspector
8794d9a
Source0:        http://renestadler.de/files/gst-inspector/gst-inspector-%{version}.tar.gz
e1b4c9d
Source1:	gst-inspector.desktop
8794d9a
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
8794d9a
8794d9a
BuildArch:      noarch
8794d9a
BuildRequires:  python-devel
8794d9a
BuildRequires:  intltool
8794d9a
BuildRequires:  gettext
8794d9a
BuildRequires:  desktop-file-utils
8794d9a
Requires:       gstreamer-python >= 0.10.5
8794d9a
Requires:       pygtk2 >= 2.10.0
8794d9a
Requires:       pygobject2 >= 2.12.3
8794d9a
Requires:       hicolor-icon-theme
8794d9a
8794d9a
%description
8794d9a
GStreamer Inspector is an introspection data viewer for the GStreamer
8794d9a
multimedia framework. Developers of GStreamer applications can use it
8794d9a
to find out about the various elements available in the system.
8794d9a
8794d9a
It can be thought of as a graphical variant of the gst-inspect
8794d9a
program, which currently serves as the canonical source of
8794d9a
introspection information for many developers.
8794d9a
8794d9a
%prep
8794d9a
%setup -q
8794d9a
8794d9a
%build
8794d9a
%{__python} setup.py build
8794d9a
8794d9a
%install
8794d9a
rm -rf %{buildroot}
8794d9a
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
8794d9a
sed -i -e 's@%{buildroot}@@' %{buildroot}%{_bindir}/gst-inspector
8794d9a
desktop-file-install --vendor=""                      \
8794d9a
        --dir=%{buildroot}%{_datadir}/applications/   \
e1b4c9d
        %{SOURCE1}
8794d9a
8794d9a
%clean
8794d9a
rm -rf %{buildroot}
8794d9a
8794d9a
%post
8794d9a
touch --no-create %{_datadir}/icons/hicolor || :
8794d9a
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
8794d9a
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
8794d9a
fi
8794d9a
8794d9a
%postun
8794d9a
touch --no-create %{_datadir}/icons/hicolor || :
8794d9a
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
8794d9a
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
8794d9a
fi
8794d9a
8794d9a
%files
8794d9a
%defattr(-,root,root,-)
8794d9a
%doc AUTHORS COPYING NEWS README TODO
8794d9a
8794d9a
%{_bindir}/gst-inspector
8794d9a
%{_datadir}/gst-inspector
8794d9a
%{_datadir}/applications/gst-inspector.desktop
8794d9a
%{_datadir}/icons/hicolor/48x48/apps/gst-inspector.png
8794d9a
%{_datadir}/icons/hicolor/scalable/apps/gst-inspector.svg
8794d9a
%{python_sitelib}/*
8794d9a
8794d9a
%changelog
b236be0
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-7
b236be0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b236be0
5b2fe6f
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3-6
5b2fe6f
- Rebuild for Python 2.6
5b2fe6f
33d6258
* Mon Oct 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.3-5
33d6258
- Fix desktop file install on devel
33d6258
e1b4c9d
* Mon Oct 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.3-4
e1b4c9d
- Fix desktop file install on devel
e1b4c9d
8794d9a
* Fri Oct 26 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.3-3
8794d9a
- Fix macro usage
8794d9a
8794d9a
* Thu Oct 25 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.3-2
8794d9a
- Add postun and redo post section to match
8794d9a
- Require hicolor-icons-theme
8794d9a
- Change category for desktop entry
8794d9a
8794d9a
* Tue Oct 23 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.3-1
8794d9a
- Update to 0.3
8794d9a
- Fix license field
8794d9a
- Make desktop file a source file rather than inline it in the spec.
8794d9a
8794d9a
* Sun Jul  8 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.2-1
8794d9a
- Update to 0.2
8794d9a
8794d9a
* Sat Jun  9 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.1-1
8794d9a
- First version for Fedora Extras