2011-12-04 12:13:33 +00:00
|
|
|
%global snapshot 0
|
2011-10-23 12:00:05 +00:00
|
|
|
%global tarball_date 20111023
|
|
|
|
%global git_hash e037110f11e707e223b715f70920913afecfe297
|
2010-10-26 19:19:28 +00:00
|
|
|
%global git_short %(echo '%{git_hash}' | cut -c -13)
|
|
|
|
|
|
|
|
Name: libbluray
|
2011-12-04 12:13:33 +00:00
|
|
|
Version: 0.2.1
|
|
|
|
%if %{snapshot}
|
2012-01-13 07:24:46 +00:00
|
|
|
Release: 0.8.%{tarball_date}git%{git_short}%{?dist}
|
2011-12-04 12:13:33 +00:00
|
|
|
%else
|
2012-03-15 20:05:56 +00:00
|
|
|
Release: 3%{?dist}
|
2011-12-04 12:13:33 +00:00
|
|
|
%endif
|
2010-10-26 19:19:28 +00:00
|
|
|
Summary: Library to access Blu-Ray disks for video playback
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://www.videolan.org/developers/libbluray.html
|
2011-12-04 12:13:33 +00:00
|
|
|
%if %{snapshot}
|
|
|
|
# Use the commands below to generate a tarball.
|
2010-10-26 19:19:28 +00:00
|
|
|
# git clone git://git.videolan.org/libbluray.git
|
|
|
|
# cd libbluray
|
2010-11-25 20:58:52 +00:00
|
|
|
# git archive --format=tar %{git_hash} --prefix=libbluray/ | bzip2 > ../libbluray-$( date +%Y%m%d )git%{git_short}.tar.bz2
|
2010-10-26 19:19:28 +00:00
|
|
|
Source0: %{name}-%{tarball_date}git%{git_short}.tar.bz2
|
2011-12-04 12:13:33 +00:00
|
|
|
%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
|
2010-10-26 19:19:28 +00:00
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
|
2011-12-04 12:13:33 +00:00
|
|
|
%if %{snapshot}
|
2010-10-26 19:19:28 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2011-12-04 12:13:33 +00:00
|
|
|
%endif
|
2011-07-16 20:42:33 +00:00
|
|
|
%ifnarch ppc64
|
2012-02-01 21:51:33 +00:00
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
2010-10-26 19:19:28 +00:00
|
|
|
BuildRequires: jpackage-utils
|
|
|
|
BuildRequires: ant
|
2011-07-16 20:42:33 +00:00
|
|
|
%endif
|
2010-11-25 20:58:52 +00:00
|
|
|
BuildRequires: libxml2-devel
|
2010-10-26 19:19:28 +00:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: texlive-latex
|
2010-11-25 20:58:52 +00:00
|
|
|
BuildRequires: graphviz
|
2010-10-26 19:19:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package is aiming to provide a full portable free open source bluray
|
|
|
|
library, which can be plugged into popular media players to allow full bluray
|
|
|
|
navigation and playback on Linux. It will eventually be compatible with all
|
|
|
|
current titles, and will be easily portable and embeddable in standard players
|
|
|
|
such as mplayer and vlc.
|
|
|
|
|
|
|
|
|
2011-07-16 20:42:33 +00:00
|
|
|
%ifnarch ppc64
|
2011-01-25 23:39:08 +00:00
|
|
|
%package java
|
|
|
|
Summary: BDJ support for %{name}
|
|
|
|
Group: Development/Libraries
|
2011-12-04 12:13:33 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2012-02-01 21:51:33 +00:00
|
|
|
Requires: java >= 1:1.6.0
|
2011-01-25 23:39:08 +00:00
|
|
|
Requires: jpackage-utils
|
|
|
|
|
|
|
|
%description java
|
|
|
|
The %{name}-java package contains the jar file needed to add BDJ support to
|
|
|
|
%{name}.
|
2011-07-16 20:42:33 +00:00
|
|
|
%endif
|
2011-01-25 23:39:08 +00:00
|
|
|
|
|
|
|
|
2010-10-26 19:19:28 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
2011-12-04 12:13:33 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2010-10-26 19:19:28 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2011-12-04 12:13:33 +00:00
|
|
|
%if %{snapshot}
|
2010-10-26 19:19:28 +00:00
|
|
|
%setup -q -n %{name}
|
2011-12-04 12:13:33 +00:00
|
|
|
%else
|
|
|
|
%setup -q
|
|
|
|
install -Dp -m 644 %{SOURCE1} src/libbluray/bdj/build.xml
|
|
|
|
tar xjf %{SOURCE2}
|
|
|
|
%endif
|
2010-10-26 19:19:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2011-12-04 12:13:33 +00:00
|
|
|
%if %{snapshot}
|
2010-10-26 19:19:28 +00:00
|
|
|
autoreconf -vif
|
2011-12-04 12:13:33 +00:00
|
|
|
%endif
|
2011-05-14 22:23:32 +00:00
|
|
|
%configure --disable-static \
|
2010-10-26 19:19:28 +00:00
|
|
|
--enable-examples \
|
2011-07-16 20:42:33 +00:00
|
|
|
%ifnarch ppc64
|
2012-02-01 21:51:33 +00:00
|
|
|
--enable-bdjava --with-jdk=%{_jvmdir}/java-1.7.0
|
2011-07-16 20:42:33 +00:00
|
|
|
%endif
|
|
|
|
|
2010-10-26 19:19:28 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
make doxygen-pdf
|
|
|
|
# Remove uneeded script
|
2012-03-15 20:05:56 +00:00
|
|
|
rm -f doc/doxygen/html/installdox
|
2010-10-26 19:19:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
2011-07-16 20:42:33 +00:00
|
|
|
%ifnarch ppc64
|
2011-05-14 22:23:32 +00:00
|
|
|
# Install BD-J jar
|
2010-11-09 09:01:52 +00:00
|
|
|
install -Dp -m 644 src/.libs/libbluray.jar $RPM_BUILD_ROOT%{_javadir}/libbluray.jar
|
2011-07-16 20:42:33 +00:00
|
|
|
%endif
|
2010-11-09 09:01:52 +00:00
|
|
|
|
2010-10-26 19:19:28 +00:00
|
|
|
# Install test utilities
|
2011-05-14 22:23:32 +00:00
|
|
|
for i in clpi_dump index_dump mobj_dump mpls_dump sound_dump
|
2010-10-26 19:19:28 +00:00
|
|
|
do install -Dp -m 0755 src/examples/$i $RPM_BUILD_ROOT%{_bindir}/$i; done;
|
2011-07-16 20:59:46 +00:00
|
|
|
for i in bd_info bdsplice hdmv_test libbluray_test list_titles
|
2011-05-14 22:23:32 +00:00
|
|
|
do install -Dp -m755 src/examples/.libs/$i %{buildroot}%{_bindir}/$i; done
|
2011-07-16 20:59:46 +00:00
|
|
|
%ifnarch ppc64
|
|
|
|
install -Dp -m755 src/examples/.libs/bdj_test %{buildroot}%{_bindir}/bdj_test;
|
|
|
|
%endif
|
2010-10-26 19:19:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2011-12-04 12:13:33 +00:00
|
|
|
%doc COPYING player_wrappers README.txt
|
2010-10-26 19:19:28 +00:00
|
|
|
%{_libdir}/*.so.*
|
2011-05-14 22:23:32 +00:00
|
|
|
%{_bindir}/*
|
2011-01-25 23:39:08 +00:00
|
|
|
|
|
|
|
|
2011-07-16 20:42:33 +00:00
|
|
|
%ifnarch ppc64
|
2011-01-25 23:39:08 +00:00
|
|
|
%files java
|
|
|
|
%defattr(-,root,root,-)
|
2010-11-09 09:01:52 +00:00
|
|
|
%{_javadir}/libbluray.jar
|
2011-07-16 20:42:33 +00:00
|
|
|
%endif
|
2010-10-26 19:19:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc/doxygen/html doc/doxygen/libbluray.pdf
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/libbluray.pc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2012-03-15 20:05:56 +00:00
|
|
|
* Thu Mar 15 2012 Rex Dieter <rdieter@fedoraproject.org> 0.2.1-3
|
|
|
|
- make build non-fatal when using doxygen-1.8 (doesn't produce installdox anymore)
|
|
|
|
|
2012-02-01 21:51:33 +00:00
|
|
|
* Wed Feb 01 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.1-2
|
|
|
|
- Rebuild for openjdk 7.
|
|
|
|
|
2012-01-13 07:24:46 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2012-02-01 21:51:33 +00:00
|
|
|
* Thu Dec 01 2011 Xavier Bachelot <xavier@bachelot.org> 0.2.1-1
|
2011-12-04 12:13:33 +00:00
|
|
|
- First upstream official release.
|
|
|
|
- Fix BD-J build (missing files in upstream tarball).
|
|
|
|
- Have subpackages require an arch-specific base package.
|
|
|
|
|
2011-10-23 12:00:05 +00:00
|
|
|
* Sun Oct 23 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.7.20111023gite037110f11e70
|
|
|
|
- Update to latest snapshot.
|
|
|
|
|
2011-07-16 21:16:24 +00:00
|
|
|
* Sat Jul 16 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.6.20110710git51d7d60a96d06
|
2011-07-16 20:42:33 +00:00
|
|
|
- Don't build java subpackage on ppc64, no java-1.6.0-devel package.
|
|
|
|
|
2011-07-10 13:24:49 +00:00
|
|
|
* Sun Jul 10 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.5.20110710git51d7d60a96d06
|
|
|
|
- Update to latest snapshot.
|
|
|
|
|
2011-05-14 22:28:37 +00:00
|
|
|
* Sat May 14 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.4.20110514git46ee2766038e9
|
2011-05-14 22:23:32 +00:00
|
|
|
- Update to latest snapshot.
|
|
|
|
- Drop -static subpackage.
|
|
|
|
|
2011-02-08 04:48:42 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-0.3.20110126gitbbf11e43bd82e
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-25 23:39:08 +00:00
|
|
|
* Wed Jan 26 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.2.20110126gitbbf11e43bd82e
|
|
|
|
- Update to latest snapshot.
|
|
|
|
- Split the BDJ support to a -java subpackage.
|
|
|
|
|
2010-11-25 20:58:52 +00:00
|
|
|
* Fri Jan 07 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.1.20110107git0e5902ff9a6f1
|
2011-01-25 23:39:08 +00:00
|
|
|
- Update to latest snapshot.
|
2010-11-25 20:58:52 +00:00
|
|
|
- Add BR: libxml2-devel for metadata parser.
|
|
|
|
- Add BR: graphviz for doc generation.
|
|
|
|
|
2010-11-09 09:01:52 +00:00
|
|
|
* Thu Oct 28 2010 Xavier Bachelot <xavier@bachelot.org> 0.1-0.3.20101028gitc32862b77dea4
|
|
|
|
- Update to latest snapshot.
|
|
|
|
- Install BDJ jar.
|
|
|
|
|
2010-10-26 19:19:28 +00:00
|
|
|
* Thu Oct 21 2010 Xavier Bachelot <xavier@bachelot.org> 0.1-0.2.20101021git144a204c02687
|
|
|
|
- Fix release tag.
|
|
|
|
- Update to latest snapshot.
|
|
|
|
|
|
|
|
* Thu Aug 19 2010 Xavier Bachelot <xavier@bachelot.org> 0.1-0.1.20100819
|
|
|
|
- Initial Fedora release.
|