Blob Blame History Raw
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           gst-inspector
Version:        0.3
Release:        8%{?dist}
Summary:        An introspection data viewer for the GStreamer multimedia framework

Group:          Development/Languages
License:        GPLv3+
URL:            http://renestadler.de/projects/gst-inspector
Source0:        http://renestadler.de/files/gst-inspector/gst-inspector-%{version}.tar.gz
Source1:	gst-inspector.desktop
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  intltool
BuildRequires:  gettext
BuildRequires:  desktop-file-utils
Requires:       gstreamer-python >= 0.10.5
Requires:       pygtk2 >= 2.10.0
Requires:       pygobject2 >= 2.12.3
Requires:       hicolor-icon-theme

%description
GStreamer Inspector is an introspection data viewer for the GStreamer
multimedia framework. Developers of GStreamer applications can use it
to find out about the various elements available in the system.

It can be thought of as a graphical variant of the gst-inspect
program, which currently serves as the canonical source of
introspection information for many developers.

%prep
%setup -q

%build
%{__python} setup.py build

%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
sed -i -e 's@%{buildroot}@@' %{buildroot}%{_bindir}/gst-inspector
desktop-file-install --vendor=""                      \
        --dir=%{buildroot}%{_datadir}/applications/   \
        %{SOURCE1}

%clean
rm -rf %{buildroot}

%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README TODO

%{_bindir}/gst-inspector
%{_datadir}/gst-inspector
%{_datadir}/applications/gst-inspector.desktop
%{_datadir}/icons/hicolor/48x48/apps/gst-inspector.png
%{_datadir}/icons/hicolor/scalable/apps/gst-inspector.svg
%{python_sitelib}/*

%changelog
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3-6
- Rebuild for Python 2.6

* Mon Oct 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.3-5
- Fix desktop file install on devel

* Mon Oct 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.3-4
- Fix desktop file install on devel

* Fri Oct 26 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.3-3
- Fix macro usage

* Thu Oct 25 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.3-2
- Add postun and redo post section to match
- Require hicolor-icons-theme
- Change category for desktop entry

* Tue Oct 23 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.3-1
- Update to 0.3
- Fix license field
- Make desktop file a source file rather than inline it in the spec.

* Sun Jul  8 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.2-1
- Update to 0.2

* Sat Jun  9 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.1-1
- First version for Fedora Extras