no java on ppc64
This commit is contained in:
parent
204a89a4ef
commit
6ad51800be
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: libbluray
|
Name: libbluray
|
||||||
Version: 0.2
|
Version: 0.2
|
||||||
Release: 0.5.%{tarball_date}git%{git_short}%{?dist}
|
Release: 0.5.%{tarball_date}git%{git_short}%{?dist}.1
|
||||||
Summary: Library to access Blu-Ray disks for video playback
|
Summary: Library to access Blu-Ray disks for video playback
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
@ -19,9 +19,11 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
%ifnarch ppc64
|
||||||
BuildRequires: java-1.6.0-devel
|
BuildRequires: java-1.6.0-devel
|
||||||
BuildRequires: jpackage-utils
|
BuildRequires: jpackage-utils
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
|
%endif
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: texlive-latex
|
BuildRequires: texlive-latex
|
||||||
@ -36,6 +38,7 @@ current titles, and will be easily portable and embeddable in standard players
|
|||||||
such as mplayer and vlc.
|
such as mplayer and vlc.
|
||||||
|
|
||||||
|
|
||||||
|
%ifnarch ppc64
|
||||||
%package java
|
%package java
|
||||||
Summary: BDJ support for %{name}
|
Summary: BDJ support for %{name}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -46,6 +49,7 @@ Requires: jpackage-utils
|
|||||||
%description java
|
%description java
|
||||||
The %{name}-java package contains the jar file needed to add BDJ support to
|
The %{name}-java package contains the jar file needed to add BDJ support to
|
||||||
%{name}.
|
%{name}.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
@ -66,7 +70,10 @@ developing applications that use %{name}.
|
|||||||
autoreconf -vif
|
autoreconf -vif
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
--enable-examples \
|
--enable-examples \
|
||||||
|
%ifnarch ppc64
|
||||||
--enable-bdjava --with-jdk=%{_jvmdir}/java-1.6.0
|
--enable-bdjava --with-jdk=%{_jvmdir}/java-1.6.0
|
||||||
|
%endif
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
make doxygen-pdf
|
make doxygen-pdf
|
||||||
# Remove uneeded script
|
# Remove uneeded script
|
||||||
@ -78,8 +85,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||||
|
|
||||||
|
%ifnarch ppc64
|
||||||
# Install BD-J jar
|
# Install BD-J jar
|
||||||
install -Dp -m 644 src/.libs/libbluray.jar $RPM_BUILD_ROOT%{_javadir}/libbluray.jar
|
install -Dp -m 644 src/.libs/libbluray.jar $RPM_BUILD_ROOT%{_javadir}/libbluray.jar
|
||||||
|
%endif
|
||||||
|
|
||||||
# Install test utilities
|
# Install test utilities
|
||||||
for i in clpi_dump index_dump mobj_dump mpls_dump sound_dump
|
for i in clpi_dump index_dump mobj_dump mpls_dump sound_dump
|
||||||
@ -104,9 +113,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
|
||||||
|
|
||||||
|
%ifnarch ppc64
|
||||||
%files java
|
%files java
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_javadir}/libbluray.jar
|
%{_javadir}/libbluray.jar
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
@ -118,6 +129,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jul 16 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.5.20110710git51d7d60a96d06.1
|
||||||
|
- Don't build java subpackage on ppc64, no java-1.6.0-devel package.
|
||||||
|
|
||||||
* Sun Jul 10 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.5.20110710git51d7d60a96d06
|
* Sun Jul 10 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.5.20110710git51d7d60a96d06
|
||||||
- Update to latest snapshot.
|
- Update to latest snapshot.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user