Author Topic: need help packaging miro 5.0  (Read 617 times)

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1152
need help packaging miro 5.0
« on: May 02, 2012, 04:09:24 PM »
Hi dudes,

this thing is very strange.
Note before: Everything described happend on a 32bit installation

After packaging the first try i got a rpm but on installation it says

Code: [Select]
[root@sheep 19] i586 > rpm -Uvh miro-5.0-1ghostbunny2012.i586.rpm
Fehler: Fehlgeschlagende Abhängigkeiten:
libc.so.6()(64bit) wird benötigt von miro-5.0-1ghostbunny2012.i586
libc.so.6(GLIBC_2.2.5)(64bit) wird benötigt von miro-5.0-1ghostbunny2012.i586
libgcc_s.so.1()(64bit) wird benötigt von miro-5.0-1ghostbunny2012.i586
libgcc_s.so.1(GCC_3.0)(64bit) wird benötigt von miro-5.0-1ghostbunny2012.i586
libm.so.6()(64bit) wird benötigt von miro-5.0-1ghostbunny2012.i586
libm.so.6(GLIBC_2.2.5)(64bit) wird benötigt von miro-5.0-1ghostbunny2012.i586
libpthread.so.0()(64bit) wird benötigt von miro-5.0-1ghostbunny2012.i586
libpthread.so.0(GLIBC_2.2.5)(64bit) wird benötigt von miro-5.0-1ghostbunny2012.i586
libstdc++.so.6()(64bit) wird benötigt von miro-5.0-1ghostbunny2012.i586
libstdc++.so.6(GLIBCXX_3.4)(64bit) wird benötigt von miro-5.0-1ghostbunny2012.i586
libtag.so.1()(64bit) wird benötigt von miro-5.0-1ghostbunny2012.i586
libz.so.1()(64bit) wird benötigt von miro-5.0-1ghostbunny2012.i586

so i added the following to the spec

Code: [Select]
%ifarch x86_64
%define _requires_exceptions libc.so.6()\\|libc.so.6(GLIBC_2.2.5)\\|libgcc_s.so.1()\\|libgcc_s.so.1(GCC_3.0)\\|libm.so.6()\\|libm.so.6()(GLIBC_2.2.5)\\|libpthread.so.0()\\|libpthread.so.0(GLIBC_2.2.5)\\|libstdc++.so.6()\\|libstdc++.so.6(GLIBCXX_3.4)\\|libtag.so.1()\\|libz.so.1()
%else
%define _requires_exceptions libc.so.6()(64bit) \\|libc.so.6(GLIBC_2.2.5)(64bit) \\|libgcc_s.so.1()(64bit) \\|libgcc_s.so.1(GCC_3.0)(64bit) \\|libm.so.6()(64bit) \\|libm.so.6(GLIBC_2.2.5)(64bit) \\|libpthread.so.0()(64bit) \\|libpthread.so.0(GLIBC_2.2.5)(64bit) \\|libstdc++.so.6()(64bit) \\|libstdc++.so.6(GLIBCXX_3.4)(64bit) \\|libtag.so.1()(64bit) \\|libz.so.1()(64bit)
%endif

This dont work i get the same error.

Last thing i have done in the else part i added Autoprov: no
but it don't help also.

Does someone have an idea what i still can do?


Full spec:
Code: [Select]
%ifarch x86_64
%define _requires_exceptions libc.so.6()\\|libc.so.6(GLIBC_2.2.5)\\|libgcc_s.so.1()\\|libgcc_s.so.1(GCC_3.0)\\|libm.so.6()\\|libm.so.6()(GLIBC_2.2.5)\\|libpthread.so.0()\\|libpthread.so.0(GLIBC_2.2.5)\\|libstdc++.so.6()\\|libstdc++.so.6(GLIBCXX_3.4)\\|libtag.so.1()\\|libz.so.1()
%else
%define _requires_exceptions libc.so.6()(64bit) \\|libc.so.6(GLIBC_2.2.5)(64bit) \\|libgcc_s.so.1()(64bit) \\|libgcc_s.so.1(GCC_3.0)(64bit) \\|libm.so.6()(64bit) \\|libm.so.6(GLIBC_2.2.5)(64bit) \\|libpthread.so.0()(64bit) \\|libpthread.so.0(GLIBC_2.2.5)(64bit) \\|libstdc++.so.6()(64bit) \\|libstdc++.so.6(GLIBCXX_3.4)(64bit) \\|libtag.so.1()(64bit) \\|libz.so.1()(64bit)
Autoprov: no
%endif


Name: miro
Version: 5.0
Release: %mkrel 1
Summary: Miro Player
Summary(de): Miro Internet TV
Group: Video
License: GPLv2+
URL: http://www.getmiro.com/
Source0: [url]ftp://ftp.osuosl.org/pub/pculture.org/miro/src/%name-%version.tar.xz[/url]
Source1: miro.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: pygtk2.0-devel
BuildRequires: %{_lib}xine-devel
BuildRequires: python-pyrex
BuildRequires: openssl-devel
BuildRequires: %{_lib}gsf-devel
BuildRequires: xcb-devel
BuildRequires: gtk2-devel
BuildRequires: xulrunner-devel
BuildRequires: desktop-file-utils
BuildRequires: %{_lib}xv-devel
BuildRequires: %{_lib}torrent-rasterbar-devel
BuildRequires: python-libtorrent-rasterbar
BuildRequires: %{_lib}webkitgtk1.0-devel
BuildRequires: %{_lib}ffmpeg-devel
BuildRequires: %{_lib}taglib-devel
Requires: python-libtorrent-rasterbar
Requires: pygtk2.0-libglade
Requires: gnome-python-gtkmozembed
Requires: gnome-python-gconf
Requires: dbus-python
Requires: python-pyrex
Requires: python-webkitgtk
Requires: gstreamer0.10-python
Requires: gstreamer0.10-plugins-base
Requires: webkit1.0
Requires: webkit
Provides: democracy
Obsoletes: democracy
Obsoletes:    %name < %version
Requires: python >= 2.6.6
Requires: python-curl
Requires: gstreamer0.10-farsight2
Requires: glib2.0-common >=  2.26.0
Requires: %{_lib}glib2.0_0 >= 2.26.0
Requires: gtk+2.0 >= 2.22.0
Requires: %{_lib}gdk_pixbuf2.0_0 >= 2.22.0
Requires: %{_lib}gail18 >= 2.22.0
Requires: %{_lib}gtk+-x11-2.0_0 >= 2.22.0
Requires: %{_lib}gtk+2.0_0 >= 2.22.0
Requires: mutagen

%description
Internet TV player with integrated RSS and BitTorrent functionality.

%description -l de
Programm zum Ansehen von Internet TV mit integrierter RSS- und BitTorrent-Funktionalität.

%prep
%setup -q -n %name-%version

%build
cd linux && CFLAGS="%{optflags}" LDFLAGS="%?ldflags" %{__python} setup.py build

%install
rm -rf %{buildroot}
cd linux && %{__python} setup.py install -O1 --skip-build --root %{buildroot}
cd ..
%find_lang miro

perl -pi -e 's,miro-72x72.png,%{name},g' %{buildroot}%{_datadir}/applications/*

install -m 0644 %SOURCE1 %{buildroot}%{_datadir}/applications/miro.desktop

gunzip %buildroot%{_mandir}/man1/*.gz

%clean
rm -rf %{buildroot}

%post
%update_desktop_database
%update_mime_database
%update_icon_cache hicolor

%postun
%clean_desktop_database
%clean_mime_database
%clean_icon_cache hicolor

%files -f miro.lang
%defattr(-,root,root,-)
%doc README CREDITS
%attr(755,root,root) %_bindir/*
%{_datadir}/miro
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/*.png
%{_datadir}/pixmaps/*.xpm
%{_mandir}/man1/*
%{_datadir}/mime/packages/*.xml
%{py_platsitedir}/miro*


%changelog
* Wed May 02 2012 ghostbunny <censored> 5.0-1pclos2012
- 5.0
- added german summary and description
- added %{_lib} macros in the BuildRequires section
- added %define _requires_exceptions inclusive if
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1152
Re: need help packaging miro 5.0
« Reply #1 on: May 06, 2012, 08:39:05 AM »
Ok dudes,

i found the solution.

The is a new file in the bin folder codegen.Linux-x86-64. i deleted it  and there are no need for the 64bit libs anymore.
Installation is now fine.


But after a bit of time the cpu load turns up to 100% and the ram usage nearly 100%, too.

I will talk to neal to put this into testing.

regards
ghostbunny
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD