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

Name:           oggconvert
Version:        0.3.0
Release:        15%{?dist}
Summary:        Convert media files to Free formats

Group:          Applications/Multimedia
License:        LGPLv2+
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:	pygtk2 >= 2.10, pygtk2-libglade >= 2.10 
Requires:	gstreamer >= 0.10.12, gstreamer-python, gstreamer-plugins-base
BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:	pygtk2 >= 2.10, pygtk2-libglade >= 2.10
BuildRequires:  gstreamer >= 0.10.12, gstreamer-python, gstreamer-plugins-base
BuildRequires:  desktop-file-utils
BuildRequires:  gettext

# Description from site
OggConvert is a small GNOME utility that uses GStreamer 
to convert media files to the patent-free Theora
and Vorbis formats. It also supports the Dirac format,
through the schrodinger codec. It's painfully easy to use, 
changing the quality settings and the output 
filename is simple. It uses GStreamer, so it can 
convert (almost) any file which Totem can play. 
It can deal with audio-only files, video-only files, 
and files with many audio tracks (such as DVD rips with 
a commentary track). Thanks to the magic of GStreamer, metadata 
(for example, title and artist info on an MP3) is preserved. 
Finally, it adheres to the GNOME HIG as much as possible.

%setup -q

# Remove CFLAGS=... for noarch packages (unneeded)
CFLAGS="$RPM_OPT_FLAGS" %{__python} build

%{__python} install -O1 --skip-build --root $RPM_BUILD_ROOT
desktop-file-install --vendor="fedora" --delete-original        \
  --dir=$RPM_BUILD_ROOT%{_datadir}/applications               \
%find_lang %{name}


%files -f %{name}.lang

# For noarch packages: sitelib

* Thu Nov 20 2008 Richard Hughes <> - 0.3.0-15
- Update the summary to be more terse.
- Fixes #472365

* Sat Dec 1 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.3.0-14
- Oops, apparently files removal was intentional, reinstated
- removed dependency on gettext, probably not necessary
* Sat Nov 24 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.3.0-13
- Updated to OggConvert 0.3.0
- Added translations
- included icon
- Added more docs to include
- Fixed a bug in install sequence where sometimes the 
  files would be removed before being assembled into the package
* Sat Oct 6 2007 Neal Gompa <ngompa13{%}gmail{*}com> -
- Made changes for .desktop file to conform with guidelines
- Changed license label to conform with Fedora Packaging Guidelines
* Fri Sep 21 2007 Neal Gompa <ngompa13{%}gmail{*}com> -
- Added back in python-devel as BuildRequires... Idiotically removed it!
* Mon Sep 3 2007 Neal Gompa <ngompa13{%}gmail{*}com> -
- Removed direct requirement for Python, python-based deps take care of it
- Removed direct requirement for gtk2, pygtk2 takes care of it
- Removed devels and added regular py packages, apparently devels not needed
* Wed Jul 25 2007 Neal Gompa <ngompa13{%}gmail{*}com> -
- cross-distro support too messy, removed and reverted to split specfiles
* Mon Jul 23 2007 Neal Gompa <ngompa13{%}gmail{*}com> -
- Modified spec to be more compliant with rpmlint and mock in description lines
- Changed some of the requirements to be more explicit, e.g. pygtk2-libglade
- Updated versioning of build requirements in order to be safe
- Rebuild to OggConvert to include missing files
- Cross-distro with SUSE added
* Mon Jul 9 2007 Neal Gompa <ngompa13{%}gmail{*}com> -
- Rebuild to OggConvert 0.2.1
* Wed Jun 20 2007 Neal Gompa <ngompa13{%}gmail{*}com> -
- Versioned the changelog
* Wed Jun 20 2007 Neal Gompa <ngompa13{%}gmail{*}com> -
- Changed application group from AudioVideo to Multimedia for standardization
* Wed Jun 20 2007 Neal Gompa <ngompa13{%}gmail{*}com> -
- Added gstreamer-python to BuildRequires to ensure mock build
* Wed Jun 20 2007 Neal Gompa <ngompa13{%}gmail{*}com> -
- Updated spec to Fedora Project Packaging Guidelines
* Sun Jun 3 2007 Neal Gompa <ngompa13{%}gmail{*}com> -
- Updated package to distro-version specific rpm due to python changes being too different.
- Updated package to Fedora 7 due to usage of Python 2.5 in Fedora 7
* Sun May 13 2007 Neal Gompa <ngompa13{%}gmail{*}com> -
- Created initial specfile. Program author's rpm unsatisfactorily handles installation.