3d6f79
# sitelib for noarch packages
3d6f79
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3d6f79
3d6f79
Name:           oggconvert
Matt Domsch 143c06
Version:        0.3.2
1450f3
Release:        7%{?dist}
73801d
Summary:        Convert media files to Free formats
3d6f79
3d6f79
Group:          Applications/Multimedia
3d6f79
License:        LGPLv2+
3d6f79
URL:            http://launchpad.net/oggconvert
Matt Domsch 143c06
Source0:	http://oggconvert.tristanb.net/releases/%{version}/oggconvert-%{version}.tar.gz
Matt Domsch 143c06
Patch0: 	oggconvert-0.3.2-desktop.patch
3d6f79
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3d6f79
Requires:	pygtk2 >= 2.10, pygtk2-libglade >= 2.10 
3d6f79
Requires:	gstreamer >= 0.10.12, gstreamer-python, gstreamer-plugins-base
3d6f79
BuildArch:      noarch
3d6f79
BuildRequires:  python-devel
3d6f79
BuildRequires:	pygtk2 >= 2.10, pygtk2-libglade >= 2.10
3d6f79
BuildRequires:  gstreamer >= 0.10.12, gstreamer-python, gstreamer-plugins-base
3d6f79
BuildRequires:  desktop-file-utils
bead5a
BuildRequires:  gettext
3d6f79
3d6f79
%description
3d6f79
# Description from site
3d6f79
OggConvert is a small GNOME utility that uses GStreamer 
3d6f79
to convert media files to the patent-free Theora
3d6f79
and Vorbis formats. It also supports the Dirac format,
3d6f79
through the schrodinger codec. It's painfully easy to use, 
3d6f79
changing the quality settings and the output 
3d6f79
filename is simple. It uses GStreamer, so it can 
3d6f79
convert (almost) any file which Totem can play. 
3d6f79
It can deal with audio-only files, video-only files, 
3d6f79
and files with many audio tracks (such as DVD rips with 
3d6f79
a commentary track). Thanks to the magic of GStreamer, metadata 
3d6f79
(for example, title and artist info on an MP3) is preserved. 
3d6f79
Finally, it adheres to the GNOME HIG as much as possible.
3d6f79
3d6f79
%prep
3d6f79
%setup -q
Matt Domsch 143c06
%patch0 -p1
3d6f79
3d6f79
%build
3d6f79
# Remove CFLAGS=... for noarch packages (unneeded)
3d6f79
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
3d6f79
3d6f79
3d6f79
%install
e61097
rm -rf $RPM_BUILD_ROOT
3d6f79
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
3d6f79
desktop-file-install --vendor="fedora" --delete-original        \
3d6f79
  --dir=$RPM_BUILD_ROOT%{_datadir}/applications               \
1450f3
  --add-category X-OutputGeneration                           \
3d6f79
  %{buildroot}/%{_datadir}/applications/oggconvert.desktop
bead5a
%find_lang %{name}
bead5a
3d6f79
 
3d6f79
%clean
3d6f79
rm -rf $RPM_BUILD_ROOT
3d6f79
3d6f79
bead5a
%files -f %{name}.lang
3d6f79
%defattr(-,root,root,-)
3d6f79
bead5a
%doc README COPYING AUTHORS TODO ChangeLog PKG-INFO
3d6f79
# For noarch packages: sitelib
3d6f79
%{python_sitelib}/OggConvert/
3d6f79
%{_bindir}/oggconvert
3d6f79
%{_datadir}/applications/fedora-oggconvert.desktop
bead5a
%{_datadir}/pixmaps/oggconvert.svg
db96d9
%{python_sitelib}/oggconvert-%{version}-py?.?.egg-info
3d6f79
3d6f79
%changelog
1450f3
* Sun Sep 27 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.3.2-7
1450f3
- Update desktop file according to F-12 FedoraStudio feature
1450f3
0cf4d1
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-6
0cf4d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0cf4d1
50d1df
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-5
50d1df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
50d1df
db96d9
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3.2-4
db96d9
- Fix locations for Python 2.6
db96d9
2ccd35
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3.2-3
2ccd35
- Rebuild for Python 2.6
2ccd35
73801d
* Thu Nov 20 2008 Richard Hughes <rhughes@redhat.com> - 0.3.2-2
73801d
- Update the summary to be more terse.
73801d
- Fixes #472365
73801d
Matt Domsch 143c06
* Tue Sep 16 2008 Matt Domsch <mdomsch@fedoraproject.org> - 0.3.2-1
Matt Domsch 143c06
- upgrade to 0.3.2, fix FTBFS BZ#440943
Matt Domsch 143c06
* Sat Dec 1 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.3.0-14
Matt Domsch 143c06
- Oops, apparently files removal was intentional, reinstated
Matt Domsch 143c06
- removed dependency on gettext, probably not necessary
bead5a
* Sat Nov 24 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.3.0-13
bead5a
- Updated to OggConvert 0.3.0
bead5a
- Added translations
bead5a
- included icon
bead5a
- Added more docs to include
bead5a
- Fixed a bug in install sequence where sometimes the 
bead5a
  files would be removed before being assembled into the package
3d6f79
* Sat Oct 6 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.1.1-12
3d6f79
- Made changes for .desktop file to conform with guidelines
3d6f79
- Changed license label to conform with Fedora Packaging Guidelines
3d6f79
* Fri Sep 21 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.1.1-11
3d6f79
- Added back in python-devel as BuildRequires... Idiotically removed it!
3d6f79
* Mon Sep 3 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.1.1-10
3d6f79
- Removed direct requirement for Python, python-based deps take care of it
3d6f79
- Removed direct requirement for gtk2, pygtk2 takes care of it
3d6f79
- Removed devels and added regular py packages, apparently devels not needed
3d6f79
* Wed Jul 25 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.1.1-9
3d6f79
- cross-distro support too messy, removed and reverted to split specfiles
3d6f79
* Mon Jul 23 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.1.1-8
3d6f79
- Modified spec to be more compliant with rpmlint and mock in description lines
3d6f79
- Changed some of the requirements to be more explicit, e.g. pygtk2-libglade
3d6f79
- Updated versioning of build requirements in order to be safe
3d6f79
- Rebuild to OggConvert 0.2.1.1 to include missing files
3d6f79
- Cross-distro with SUSE added
3d6f79
* Mon Jul 9 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.1.0-7
3d6f79
- Rebuild to OggConvert 0.2.1
3d6f79
* Wed Jun 20 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.0.0-6
3d6f79
- Versioned the changelog
3d6f79
* Wed Jun 20 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.0.0-5
3d6f79
- Changed application group from AudioVideo to Multimedia for standardization
3d6f79
* Wed Jun 20 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.0.0-4
3d6f79
- Added gstreamer-python to BuildRequires to ensure mock build
3d6f79
* Wed Jun 20 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.0.0-3
3d6f79
- Updated spec to Fedora Project Packaging Guidelines
3d6f79
* Sun Jun 3 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.0.0-2
3d6f79
- Updated package to distro-version specific rpm due to python changes being too different.
3d6f79
- Updated package to Fedora 7 due to usage of Python 2.5 in Fedora 7
3d6f79
* Sun May 13 2007 Neal Gompa <ngompa13{%}gmail{*}com> - 0.2.0.0-1
3d6f79
- Created initial specfile. Program author's rpm unsatisfactorily handles installation.