|
|
@ -1,24 +1,38 @@
|
|
|
|
|
|
|
|
%global snapshot 0
|
|
|
|
%global tarball_date 20111023
|
|
|
|
%global tarball_date 20111023
|
|
|
|
%global git_hash e037110f11e707e223b715f70920913afecfe297
|
|
|
|
%global git_hash e037110f11e707e223b715f70920913afecfe297
|
|
|
|
%global git_short %(echo '%{git_hash}' | cut -c -13)
|
|
|
|
%global git_short %(echo '%{git_hash}' | cut -c -13)
|
|
|
|
|
|
|
|
|
|
|
|
Name: libbluray
|
|
|
|
Name: libbluray
|
|
|
|
Version: 0.2
|
|
|
|
Version: 0.2.1
|
|
|
|
|
|
|
|
%if %{snapshot}
|
|
|
|
Release: 0.7.%{tarball_date}git%{git_short}%{?dist}
|
|
|
|
Release: 0.7.%{tarball_date}git%{git_short}%{?dist}
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
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+
|
|
|
|
URL: http://www.videolan.org/developers/libbluray.html
|
|
|
|
URL: http://www.videolan.org/developers/libbluray.html
|
|
|
|
# No release yet. Use the commands below to generate a tarball.
|
|
|
|
%if %{snapshot}
|
|
|
|
|
|
|
|
# Use the commands below to generate a tarball.
|
|
|
|
# git clone git://git.videolan.org/libbluray.git
|
|
|
|
# git clone git://git.videolan.org/libbluray.git
|
|
|
|
# cd libbluray
|
|
|
|
# cd libbluray
|
|
|
|
# git archive --format=tar %{git_hash} --prefix=libbluray/ | bzip2 > ../libbluray-$( date +%Y%m%d )git%{git_short}.tar.bz2
|
|
|
|
# git archive --format=tar %{git_hash} --prefix=libbluray/ | bzip2 > ../libbluray-$( date +%Y%m%d )git%{git_short}.tar.bz2
|
|
|
|
Source0: %{name}-%{tarball_date}git%{git_short}.tar.bz2
|
|
|
|
Source0: %{name}-%{tarball_date}git%{git_short}.tar.bz2
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
Source0: ftp://ftp.videolan.org/pub/videolan/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Fixed upstream, will not be needed for next upstream release
|
|
|
|
|
|
|
|
Source1: libbluray-0.2.1-bdj_build.xml
|
|
|
|
|
|
|
|
Source2: libbluray-0.2.1-bdj_java_subdir.tar.bz2
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{snapshot}
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%ifnarch ppc64
|
|
|
|
%ifnarch ppc64
|
|
|
|
BuildRequires: java-1.6.0-devel
|
|
|
|
BuildRequires: java-1.6.0-devel
|
|
|
|
BuildRequires: jpackage-utils
|
|
|
|
BuildRequires: jpackage-utils
|
|
|
@ -42,7 +56,7 @@ such as mplayer and vlc.
|
|
|
|
%package java
|
|
|
|
%package java
|
|
|
|
Summary: BDJ support for %{name}
|
|
|
|
Summary: BDJ support for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: java-1.6.0
|
|
|
|
Requires: java-1.6.0
|
|
|
|
Requires: jpackage-utils
|
|
|
|
Requires: jpackage-utils
|
|
|
|
|
|
|
|
|
|
|
@ -55,7 +69,7 @@ The %{name}-java package contains the jar file needed to add BDJ support to
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
@ -63,11 +77,19 @@ developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%if %{snapshot}
|
|
|
|
%setup -q -n %{name}
|
|
|
|
%setup -q -n %{name}
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
install -Dp -m 644 %{SOURCE1} src/libbluray/bdj/build.xml
|
|
|
|
|
|
|
|
tar xjf %{SOURCE2}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
%if %{snapshot}
|
|
|
|
autoreconf -vif
|
|
|
|
autoreconf -vif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%configure --disable-static \
|
|
|
|
%configure --disable-static \
|
|
|
|
--enable-examples \
|
|
|
|
--enable-examples \
|
|
|
|
%ifnarch ppc64
|
|
|
|
%ifnarch ppc64
|
|
|
@ -111,7 +133,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING doc/README player_wrappers README.txt TODO.txt
|
|
|
|
%doc COPYING player_wrappers README.txt
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
|
|
|
@ -132,6 +154,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu Dec 01 2011 Xavier Bachelot <xavier@bachelot.org>
|
|
|
|
|
|
|
|
- First upstream official release.
|
|
|
|
|
|
|
|
- Fix BD-J build (missing files in upstream tarball).
|
|
|
|
|
|
|
|
- Have subpackages require an arch-specific base package.
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Oct 23 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.7.20111023gite037110f11e70
|
|
|
|
* Sun Oct 23 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.7.20111023gite037110f11e70
|
|
|
|
- Update to latest snapshot.
|
|
|
|
- Update to latest snapshot.
|
|
|
|
|
|
|
|
|
|
|
|