From 728c5de0d4cae4ffbb02cceebf53835d101ff202 Mon Sep 17 00:00:00 2001 From: emes Date: Fri, 16 Oct 2009 04:11:03 +0000 Subject: [PATCH] - initial draft release, installs and works but doesn't offer any codecs Changed files: codeina-no_python_2.5.patch -> 1.1 codeina-python_prefix.patch -> 1.1 codeina.spec -> 1.1 --- codeina-no_python_2.5.patch | 10 ++++++ codeina-python_prefix.patch | 22 +++++++++++++ codeina.spec | 66 +++++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 codeina-no_python_2.5.patch create mode 100644 codeina-python_prefix.patch create mode 100644 codeina.spec diff --git a/codeina-no_python_2.5.patch b/codeina-no_python_2.5.patch new file mode 100644 index 0000000..dc2130b --- /dev/null +++ b/codeina-no_python_2.5.patch @@ -0,0 +1,10 @@ +diff -urwa codeina-0.10.6/bin/codeina.bin codeina-0.10.6.new/bin/codeina.bin +--- codeina-0.10.6/bin/codeina.bin 2009-08-26 17:43:04.000000000 +0200 ++++ codeina-0.10.6.new/bin/codeina.bin 2009-10-15 18:59:04.174154336 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python2.5 ++#!/usr/bin/env python + # -*- Mode: Python -*- + # -*- coding: utf-8 -*- + # vi:si:et:sw=4:sts=4:ts=4 +Only in codeina-0.10.6.new/bin: codeina.bin~ diff --git a/codeina-python_prefix.patch b/codeina-python_prefix.patch new file mode 100644 index 0000000..d09a89b --- /dev/null +++ b/codeina-python_prefix.patch @@ -0,0 +1,22 @@ +diff -urwa codeina-0.10.6/configure codeina-0.10.6.new/configure +--- codeina-0.10.6/configure 2009-08-26 17:56:23.000000000 +0200 ++++ codeina-0.10.6.new/configure 2009-10-16 05:57:59.073527221 +0200 +@@ -2734,7 +2734,7 @@ + + + +- pythondir=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION/site-packages ++ pythondir="${libdir}/python"$PYTHON_VERSION/site-packages + + + +@@ -2742,7 +2742,7 @@ + + + +- pyexecdir=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages ++ pyexecdir="${libdir}/python"$PYTHON_VERSION/site-packages + + + +Only in codeina-0.10.6.new/: configure~ diff --git a/codeina.spec b/codeina.spec new file mode 100644 index 0000000..4aa996f --- /dev/null +++ b/codeina.spec @@ -0,0 +1,66 @@ +Summary: Codec search and installation helper +Summary(pl.UTF-8): Pomocnik do szukania i instalcji kodeków +Name: codeina +Version: 0.10.6 +Release: 0.1 +License: GPL +Group: Applications/Multimedia +Source0: http://core.fluendo.com/gstreamer/src/codeina/%{name}-%{version}.tar.bz2 +# Source0-md5: 8084a95721d3be28e81e240543789e80 +Patch0: %{name}-no_python_2.5.patch +Patch1: %{name}-python_prefix.patch +URL: https://core.fluendo.com/gstreamer/trac/wiki/codeina +BuildRequires: python-PyYAML +BuildRequires: python-gnome-extras-mozilla +BuildRequires: python-pynotify +Requires: python >= 2.5 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Codeina installs missing codecs on your machine. Codeina is run by other +applications, such as Totem or Rhythmbox, when no plugin has been found to +decode a given file. Based on the characteristics of these files, Codeina +searches a plugin amongst the available ones, and propose the matching +packages for installation. + +%description -l pl.UTF-8 +Codeina instaluje brakujące kodeki w Twoim systemie. Uruchamiana jest przez +inne aplikacje, takie jak Totem lub Rhythmbox, gdy nie mogą one znaleźć +kodeka niezbędnego do odtworzenia pliku multimedialnego. Na podstawie opisu +pliku Codeina szuka pasujących wtyczek w Internecie i proponuje instalację +pasujących pakietów. + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + +%build +PYNOTIFY_LIBS=" " PYNOTIFY_CFLAGS=" " %configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%find_lang %{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}.lang +%defattr(644,root,root,755) +%doc AUTHORS COPYING NEWS README +%attr(755,root,root) %dir %{_sysconfdir}/%{name} +%attr(755,root,root) %dir %{_sysconfdir}/%{name}/providers +%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.xml +%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/providers/* +%{_sysconfdir}/xdg/autostart/%{name}-update.desktop +%attr(755,root,root) %{_bindir}/%{name} +%attr(755,root,root) %{_bindir}/%{name}.bin +%{_datadir}/%{name} +%{py_sitedir}/%{name} +%{_desktopdir}/%{name}.desktop -- 2.43.0