Blob Blame History 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.3
Release:        5%{?dist}
Summary:        Convert media files to Free formats

Group:          Applications/Multimedia
License:        LGPLv2+
URL:            http://launchpad.net/oggconvert
Source0:	http://oggconvert.tristanb.net/releases/%{version}/oggconvert-%{version}.tar.gz
# Patch0: 	oggconvert-0.3.2-desktop.patch -- Not needed in 0.3.3
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
# 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.

%prep
%setup -q
# %patch0 -p1 - Not needed for 0.3.3

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


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
desktop-file-install --vendor="fedora" --delete-original        \
  --dir=$RPM_BUILD_ROOT%{_datadir}/applications               \
  --add-category X-OutputGeneration                           \
  %{buildroot}/%{_datadir}/applications/oggconvert.desktop
%find_lang %{name}

 
%clean
rm -rf $RPM_BUILD_ROOT


%files -f %{name}.lang
%defattr(-,root,root,-)

%doc README COPYING AUTHORS TODO ChangeLog PKG-INFO
# For noarch packages: sitelib
%{python_sitelib}/OggConvert/
%{_bindir}/oggconvert
%{_datadir}/applications/fedora-oggconvert.desktop
%{_datadir}/pixmaps/oggconvert.svg
%{python_sitelib}/oggconvert-%{version}-py?.?.egg-info

%changelog
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Mon May 24 2010 Neal Gompa <ngompa13{%}gmail{*}com> - 0.3.3-1
- Update to OggConvert 0.3.3
- Removed patch used for 0.3.2, not needed for 0.3.3

* Sun Sep 27 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.3.2-7
- Update desktop file according to F-12 FedoraStudio feature

* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3.2-4
- Fix locations for Python 2.6

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

* Thu Nov 20 2008 Richard Hughes <rhughes@redhat.com> - 0.3.2-2
- Update the summary to be more terse.
- Fixes #472365

* Tue Sep 16 2008 Matt Domsch <mdomsch@fedoraproject.org> - 0.3.2-1
- upgrade to 0.3.2, fix FTBFS BZ#440943

* 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> - 0.2.1.1-12
- 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> - 0.2.1.1-11
- Added back in python-devel as BuildRequires... Idiotically removed it!

* Mon Sep 3 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.1.1-10
- 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> - 0.2.1.1-9
- cross-distro support too messy, removed and reverted to split specfiles

* Mon Jul 23 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.1.1-8
- 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 0.2.1.1 to include missing files
- Cross-distro with SUSE added

* Mon Jul 9 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.1.0-7
- Rebuild to OggConvert 0.2.1

* Wed Jun 20 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.0.0-6
- Versioned the changelog

* Wed Jun 20 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.0.0-5
- Changed application group from AudioVideo to Multimedia for standardization

* Wed Jun 20 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.0.0-4
- Added gstreamer-python to BuildRequires to ensure mock build

* Wed Jun 20 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.0.0-3
- Updated spec to Fedora Project Packaging Guidelines

* Sun Jun 3 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.0.0-2
- 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> - 0.2.0.0-1
- Created initial specfile. Program author's rpm unsatisfactorily handles installation.