SPECS: nero-aac-codec.spec - add installer
glen
glen at pld-linux.org
Thu Apr 2 15:24:48 CEST 2009
Author: glen Date: Thu Apr 2 13:24:48 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add installer
---- Files affected:
SPECS:
nero-aac-codec.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/nero-aac-codec.spec
diff -u SPECS/nero-aac-codec.spec:1.1 SPECS/nero-aac-codec.spec:1.2
--- SPECS/nero-aac-codec.spec:1.1 Thu Apr 2 13:38:56 2009
+++ SPECS/nero-aac-codec.spec Thu Apr 2 15:24:43 2009
@@ -1,18 +1,32 @@
# $Revision$, $Date$
+# NOTE:
+# - requires GLIBC_2.4
+#
# TODO
# - http://security.gentoo.org/glsa/glsa-200803-08.xml
#
# Conditional build:
%bcond_with license_agreement # generates package
-%define _rel .1
+
+%define rel 0.1
+%define base_name nero-aac-codec
Summary: Nero AAC Codec
-Name: nero-aac-codec
+%if %{with license_agreement}
+Name: %{base_name}
+%else
+Name: %{base_name}-installer
+%endif
Version: 1.3.3.0
-Release: %{_rel}%{?with_license_agreement:wla}
+Release: %{rel}%{?with_license_agreement:wla}
License: Free for non-commercial use
Group: Libraries
%if %{with license_agreement}
Source0: http://ftp6.nero.com/tools/NeroDigitalAudio.zip
+%else
+Source1: license-installer.sh
+%endif
+%if %{without license_agreement}
+Requires: rpm-build-tools
%endif
ExclusiveArch: %{ix86}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -22,14 +36,13 @@
%description
The Nero AAC Encoder is a fully functional, high quality, commandline
LC and HE AAC encoder.
-%if !%{with license_agreement}
-This package is empty. Build package yourself with "--with license_agreement" and install
-The Nero AAC Encoder is a fully functional, high quality, commandline
-LC and HE AAC encoder. the wla release.
+
+%if %{without license_agreement}
+This package is empty. Build package yourself with "--with license_agreement"
+and install the wla release.
+
%endif
-The Nero AAC Encoder is a fully functional, high quality, commandline
-LC and HE AAC encoder. the wla release.
%prep
%if %{with license_agreement}
%setup -q -c
@@ -37,8 +50,21 @@
%install
rm -rf $RPM_BUILD_ROOT
+%if %{without 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
+' %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
+
+install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
+
+%else
-%if %{with license_agreement}
install -d $RPM_BUILD_ROOT%{_bindir}
install linux/* $RPM_BUILD_ROOT%{_bindir}
rm -f $RPM_BUILD_ROOT%{_libdir}/codecs/*.xa
@@ -47,11 +73,19 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%if %{without license_agreement}
+%post
+%{_bindir}/%{base_name}.install
+%endif
+
%files
%defattr(644,root,root,755)
-%if %{with license_agreement}
-%attr(755,root,root) %{_bindir}/*
+%if %{without license_agreement}
+%attr(755,root,root) %{_bindir}/%{base_name}.install
+%{_datadir}/%{base_name}
+%else
%doc *.txt
+%attr(755,root,root) %{_bindir}/*
%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -60,6 +94,8 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2009/04/02 13:24:43 glen
+- add installer
+
Revision 1.1 2009/04/02 11:38:56 mis
- new (NFY - no installer script)
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nero-aac-codec.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list