SPECS: linuxcodec.spec (NEW) - linux codecs package (x86/amd64/ppc...

arekm arekm at pld-linux.org
Sun Dec 31 08:36:09 CET 2006


Author: arekm                        Date: Sun Dec 31 07:36:09 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- linux codecs package (x86/amd64/ppc/alpha)

---- Files affected:
SPECS:
   linuxcodec.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/linuxcodec.spec
diff -u /dev/null SPECS/linuxcodec.spec:1.1
--- /dev/null	Sun Dec 31 08:36:09 2006
+++ SPECS/linuxcodec.spec	Sun Dec 31 08:36:03 2006
@@ -0,0 +1,109 @@
+# $Revision$, $Date$
+# Conditional build:
+%bcond_with	license_agreement	# generates package
+%define		source_url      http://www2.mplayerhq.hu/MPlayer/releases/codecs/
+#
+%define		base_name	linuxcodec
+Summary:	Binary compression/decompression libraries used by movie players
+Summary(pl):	Binarne biblioteki do kompresji/dekompresji dla odtwarzaczy filmów
+%if %{with license_agreement}
+Name:		%{base_name}
+%else
+Name:		%{base_name}-installer
+%endif
+%define		_rel	0.1
+# put latest for any tarball date here
+Version:	20061203
+Release:	%{_rel}%{?with_license_agreement:wla}
+License:	Free for non-commercial use
+Group:		Libraries
+%if %{with license_agreement}
+Source0:	%{source_url}essential-20061022.tar.bz2
+Source1:	%{source_url}essential-ppc-20061022.tar.bz2
+Source2:	%{source_url}essential-amd64-20061203.tar.bz2
+Source3:	%{source_url}essential-alpha-20061028.tar.bz2
+BuildRequires:	unzip
+%else
+Source0:	license-installer.sh
+Requires:	rpm-build-tools
+Requires:	unzip
+Provides:	%{base_name}
+%endif
+AutoReqProv:	no
+ExclusiveArch:	%{ix86} %{x8664} alpha ppc
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Libraries required to compress/decompress content of movie files. They
+are used by movie players, but can be used to create compressed movie
+files.
+
+%description -l pl
+Biblioteki niezbędne do kompresji/dekompresji filmów. Są one
+wykorzystywane przez odtwarzacze, ale mogą być użyte do tworzenia
+kompresowanych plików z filmami.
+
+%prep
+%if %{with license_agreement}
+%setup -q -c -T
+%ifarch %{ix86}
+bzcat %{SOURCE0} | tar xf -
+%endif
+%ifarch ppc
+bzcat %{SOURCE1} | tar xf -
+%endif
+%ifarch %{x8664}
+bzcat %{SOURCE2} | tar xf -
+%endif
+%ifarch alpha
+bzcat %{SOURCE3} | tar xf -
+%endif
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if !%{with license_agreement}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
+
+sed -e '
+	s/@BASE_NAME@/%{base_name}/g
+	s/@TARGET_CPU@/%{_target_cpu}/g
+	s- at VERSION@-%{version}-g
+	s- at RELEASE@-%{release}-g
+	s, at SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
+' %{SOURCE0} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
+
+install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
+
+%else
+install -d $RPM_BUILD_ROOT%{_libdir}/codecs
+install */*.* $RPM_BUILD_ROOT%{_libdir}/codecs
+%endif
+
+%if !%{with license_agreement}
+%post
+%{_bindir}/%{base_name}.install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%if %{with license_agreement}
+%{_libdir}/codecs
+%else
+%attr(755,root,root) %{_bindir}/linuxcodec.install
+%{_datadir}/%{base_name}
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/12/31 07:36:03  arekm
+- linux codecs package (x86/amd64/ppc/alpha)
+
================================================================


More information about the pld-cvs-commit mailing list