|
|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 08/08/2011 06:05 PM, Greg Swift wrote:
can you provide the spec?
Attached. Thanks. - Daniel
%define _svn_last_rev 1234
# Common rpm macros across all projects
%define __echo /bin/echo
# RPM Settings
%define _topdir /home/%(whoami)/src
%define _tmppath /home/%(whoami)/src/tmp
%define _buildroot %{_tmppath}/%{name}-%{version}-buildroot
# For specfile header
%define _default_release 1
%define _release %{!?_svn_last_rev:%{_default_release}}%{?_svn_last_rev:%{_svn_last_rev}}.cdmo
%define _group GROUP
%define _license LICENSE
Name: firefox
Version: 4.0.1
Release: %{_release}
Group: %{_group}
License: %{_license}
BuildRoot: %{_buildroot}
Summary: Mozilla Firefox Web browser.
Prefix: /opt
Source0: ftp://ftp.mozilla.org/pub/firefox/releases/4.0.1/linux-i686/en-US/firefox-4.0.1.tar.bz2
# Firefox specific macros
%define _firefox_plugins_idir ${RPM_BUILD_ROOT}%{prefix}/firefox/plugins/
%define _jre_so /usr/java/jre1.6.0_21/lib/i386/libnpjp2.so
%define _flash_so /usr/lib/flash-plugin/libflashplayer.so
%define _libcurl_so /usr/lib/libcurl.so.3.0.0
Requires: %{_jre_so} %{_flash_so} %{_libcurl_so}
%description
Mozilla Firefox is an open-source web browser, designed for standards
compliance, performance and portability.
This firefox package will set up Java and Adobe Flash player as well; both
must already be installed.
%clean
%{__rm} -rf ${RPM_BUILD_ROOT}
%install
%{__rm} -rf ${RPM_BUILD_ROOT}
%{__mkdir_p} ${RPM_BUILD_ROOT}%{prefix}
%{__tar} -xjf %{SOURCE0} -C ${RPM_BUILD_ROOT}%{prefix}
%{__mkdir_p} %{_firefox_plugins_idir}
%{__ln_s} -t %{_firefox_plugins_idir} %{_flash_so}
%{__ln_s} -t %{_firefox_plugins_idir} %{_jre_so}
%files
%defattr(-,root,root)
/opt/firefox
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list