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