Użytkownik Michal Chruszcz napisał:

It seems like on Wednesday 10 of November 2004 10:23, Grzegorz Grasza typed:
Czemu wszystko jest takie rozjechane?

Nie do końca rozumiem... Jeżeli chodzi o %install to po prostu skrypty budowania są troche za ambitnie zrobione i jeszcze robią program instalacyjny, który sie do .rpm dystrybucyjnego nie nadaje... itp. itd.

Poza tym jak robisz diff-a, to używaj opcji -u (unified).

ok tu jest poprawione

Poza tym, chyba jest okej.


--- helixplayer.spec	2004-07-08 22:42:53.000000000 +0200
+++ helixplayer.spec	2004-11-10 03:18:24.000000000 +0100
@@ -2,22 +2,26 @@
 Summary:	The Helix Player - Helix Community's open source media player for consumers
 Summary(pl):	Helix Player - otwarty odtwarzacz multimedi�w Helix Community dla u�ytkownik�w
 Name:		helixplayer
-%define	snap	20040615
-Version:	1.0
-Release:	0.%{snap}.1
-License:	RPSL
-Vendor:		Real Networks, Inc
+Version:	1.0.1
+Release:	1
+License:	GPL
 Group:		Applications/Multimedia
 #		http://forms.helixcommunity.org/helixdnaclient/
-Source0:	https://helixcommunity.org/download.php/487/helixplayer1.0-beta-source.tar.bz2
-# Source0-md5:	e8148f6dd290752cf628d522dc6c0211
-#Source1:	helixplayer.desktop
+Source0:	https://helixcommunity.org/download.php/634/hxplay-1.0.1.tar.bz2
+# Source0-md5:	ca07ed001aae3eca6e5589c9313774cc
 URL:		https://player.helixcommunity.org/
+BuildRequires:	pkgconfig
 BuildRequires:	python
 BuildRequires:	python-modules
-BuildRequires:	unzip
+BuildRequires:	libogg-static
+BuildRequires:	libtheora-static
+BuildRequires:	libvorbis-static
+BuildRequires:	gtk+2-devel
+Requires:	gtk+2
+
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define _helixplayerdir %{_libdir}/%{name}
 %description
 The Helix Player is the Helix Community's open source media player for
 consumers.
@@ -27,19 +31,55 @@
 �r�d�ami przeznaczony dla u�ytkownik�w ko�cowych.
 
 %prep
-%setup -q -n player_all-bingo-beta-%{snap}
+%setup -q -n hxplay-%{version}
+#export SYSTEM_ID=
 
 %build
+echo "SetSDKPath(\"oggvorbissdk\", \"/usr\")" > %{tmpdir}/buildrc
+export BUILDRC=%{tmpdir}/buildrc
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/{%{_helixplayerdir},%{_pixmapsdir},%{_desktopdir},%{_bindir}}
+cp -a player/installer/archive/temp/* $RPM_BUILD_ROOT/%{_helixplayerdir}
+rm -rf $RPM_BUILD_ROOT/%{_helixplayerdir}/Bin
+rm -rf $RPM_BUILD_ROOT/%{_helixplayerdir}/postinst
+install player/installer/archive/temp/share/hxplay.desktop $RPM_BUILD_ROOT/%{_desktopdir}
+install player/installer/archive/temp/share/hxplay.png $RPM_BUILD_ROOT/%{_pixmapsdir}
+install -d $RPM_BUILD_ROOT/%{_libdir}/mozilla/plugins
+ln -sf ../../%{name}/mozilla/nphelix.so $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/nphelix.so
+ln -sf ../../%{name}/mozilla/nphelix.xpt $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/nphelix.xpt
+sed -i -e "s%#[ \t]*HELIX_LIBS[ \t]*=.*%HELIX_LIBS=%{_helixplayerdir} ; export HELIX_LIBS%" $RPM_BUILD_ROOT/%{_helixplayerdir}/hxplay
+ln -sf ../lib/%{name}/hxplay $RPM_BUILD_ROOT/%{_bindir}/hxplay
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%dir %{_helixplayerdir}
+%attr(755,root,root) %{_bindir}/hxplay
+%attr(755,root,root) %{_libdir}/mozilla/plugins/nphelix.so
+%attr(755,root,root) %{_libdir}/mozilla/plugins/nphelix.xpt
+%{_desktopdir}/hxplay.desktop
+%{_pixmapsdir}/hxplay.png
+%attr(755,root,root) %{_helixplayerdir}/hxplay
+%attr(755,root,root) %{_helixplayerdir}/hxplay.bin
+%{_helixplayerdir}/codecs
+%attr(755,root,root) %{_helixplayerdir}/codecs/*
+%{_helixplayerdir}/common
+%attr(755,root,root) %{_helixplayerdir}/common/*
+%{_helixplayerdir}/doc
+%{_helixplayerdir}/lib
+%attr(755,root,root) %{_helixplayerdir}/lib/*
+%{_helixplayerdir}/mozilla
+%attr(755,root,root) %{_helixplayerdir}/mozilla/*
+%attr(755,root,root) %{_helixplayerdir}/plugins
+%{_helixplayerdir}/share
+%{_helixplayerdir}/README
+%{_helixplayerdir}/LICENSE
+
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
_______________________________________________
pld-devel-pl mailing list
[EMAIL PROTECTED]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl

Odpowiedź listem elektroniczym