76a9fe
%global build_pdf_doc 0
76a9fe
76a9fe
Name:           libbluray
76a9fe
Version:        1.0.2
76a9fe
Release:        3%{?dist}
76a9fe
Summary:        Library to access Blu-Ray disks for video playback 
76a9fe
License:        LGPLv2+
76a9fe
URL:            http://www.videolan.org/developers/libbluray.html
76a9fe
76a9fe
Source0:        ftp://ftp.videolan.org/pub/videolan/%{name}/%{version}/%{name}-%{version}.tar.bz2
76a9fe
Patch0:         libbluray-0.8.0-no_doxygen_timestamp.patch
76a9fe
76a9fe
BuildRequires:  ant
76a9fe
BuildRequires:  autoconf
76a9fe
BuildRequires:  automake
76a9fe
BuildRequires:  doxygen
76a9fe
BuildRequires:  fontconfig-devel
76a9fe
BuildRequires:  freetype-devel
76a9fe
BuildRequires:  graphviz
76a9fe
BuildRequires:  java-devel >= 1:1.8.0
76a9fe
BuildRequires:  jpackage-utils
76a9fe
BuildRequires:  libtool
76a9fe
BuildRequires:  libxml2-devel
76a9fe
BuildRequires:  texlive-latex
76a9fe
76a9fe
%description
76a9fe
This package is aiming to provide a full portable free open source Blu-Ray
76a9fe
library, which can be plugged into popular media players to allow full Blu-Ray
76a9fe
navigation and playback on Linux. It will eventually be compatible with all
76a9fe
current titles, and will be easily portable and embeddable in standard players
76a9fe
such as MPlayer and VLC.
76a9fe
76a9fe
%package        bdj
76a9fe
Summary:        BDJ support for %{name}
76a9fe
Requires:       %{name}%{?_isa} = %{version}-%{release}
76a9fe
Requires:       java-headless >= 1:1.8.0
76a9fe
Requires:       jpackage-utils
76a9fe
76a9fe
%description    bdj
76a9fe
The %{name}-bdj package contains the jar file needed to add BD-J support to
76a9fe
%{name}. BD-J support is still considered alpha.
76a9fe
76a9fe
%package        utils
76a9fe
Summary:        Test utilities for %{name}
76a9fe
Requires:       %{name}%{?_isa} = %{version}-%{release}
76a9fe
76a9fe
%description    utils
76a9fe
The %{name}-utils package contains test utilities for %{name}.
76a9fe
76a9fe
%package        devel
76a9fe
Summary:        Development files for %{name}
76a9fe
Requires:       %{name}%{?_isa} = %{version}-%{release}
76a9fe
76a9fe
%description    devel
76a9fe
The %{name}-devel package contains libraries and header files for
76a9fe
developing applications that use %{name}.
76a9fe
76a9fe
%prep
76a9fe
%setup -q
76a9fe
%patch0 -p1 -b .no_timestamp
76a9fe
76a9fe
76a9fe
%build
76a9fe
export JDK_HOME="%{_jvmdir}/java-1.8.0"
76a9fe
76a9fe
autoreconf -vif
76a9fe
%configure --disable-static \
76a9fe
%if %{build_pdf_doc}
76a9fe
           --enable-doxygen-pdf \
76a9fe
%else
76a9fe
           --disable-doxygen-pdf \
76a9fe
%endif
76a9fe
           --disable-doxygen-ps \
76a9fe
           --enable-doxygen-html \
76a9fe
           --enable-examples
76a9fe
76a9fe
make %{?_smp_mflags}
76a9fe
make doxygen-doc
76a9fe
# Remove uneeded script
76a9fe
rm -f doc/doxygen/html/installdox 
76a9fe
76a9fe
%install
76a9fe
%make_install
76a9fe
find %{buildroot} -name '*.la' -delete
76a9fe
76a9fe
# Install test utilities
76a9fe
for i in bdjo_dump bdsplice clpi_dump hdmv_test index_dump libbluray_test \
76a9fe
         list_titles mobj_dump mpls_dump sound_dump
76a9fe
do install -Dp -m 0755 .libs/$i %{buildroot}%{_bindir}/$i; done;
76a9fe
76a9fe
install -Dp -m755 .libs/bdj_test %{buildroot}%{_bindir}/bdj_test;
76a9fe
76a9fe
%post -p /sbin/ldconfig
76a9fe
76a9fe
%postun -p /sbin/ldconfig
76a9fe
76a9fe
%files
76a9fe
%license COPYING
76a9fe
%doc ChangeLog README.txt
76a9fe
%{_libdir}/*.so.2*
76a9fe
76a9fe
%files bdj
76a9fe
%{_javadir}/libbluray-j2se-%{version}.jar
76a9fe
76a9fe
%files utils
76a9fe
%{_bindir}/*
76a9fe
76a9fe
%files devel
76a9fe
%doc doc/doxygen/html
76a9fe
%if %{build_pdf_doc}
76a9fe
%doc doc/doxygen/%{name}.pdf
76a9fe
%endif
76a9fe
%{_includedir}/*
76a9fe
%{_libdir}/*.so
76a9fe
%{_libdir}/pkgconfig/%{name}.pc
76a9fe
76a9fe
%changelog
76a9fe
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
76a9fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
76a9fe
76a9fe
* Mon Dec 11 2017 Simone Caronni <negativo17@gmail.com> - 1.0.2-2
76a9fe
- Package no longer builds with OpenJDK 1.7, require 1.8 also for RHEL/CentOS.
76a9fe
76a9fe
* Sun Dec 03 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.2-1
76a9fe
- Update to 1.0.2.
76a9fe
76a9fe
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
76a9fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
76a9fe
76a9fe
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
76a9fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
76a9fe
76a9fe
* Wed Jun 21 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.1-1
76a9fe
- Update to 1.0.1.
76a9fe
76a9fe
* Thu Mar 02 2017 Xavier Bachelot <xavier@bachelot.org> 1.0.0-1
76a9fe
- Update to 1.0.0.
76a9fe
76a9fe
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-4
76a9fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
76a9fe
76a9fe
* Sat Dec 03 2016 Xavier Bachelot <xavier@bachelot.org> 0.9.3-3
76a9fe
- Add patch to fix search paths for libjvm.so (RHBZ#1380437).
76a9fe
76a9fe
* Sat Dec 03 2016 Simone Caronni <negativo17@gmail.com> - 0.9.3-2
76a9fe
- Use autotools to get rid of RPATH.
76a9fe
- Fix Java build requirements for RHEL/CentOS 7.
76a9fe
- Clean up SPEC file, rpmlint fixes.
76a9fe
- Add license macro.
76a9fe
76a9fe
* Wed May 18 2016 Xavier Bachelot <xavier@bachelot.org> 0.9.3-1
76a9fe
- Update to 0.9.3.
76a9fe
76a9fe
* Tue Mar 01 2016 Xavier Bachelot <xavier@bachelot.org> 0.9.2-1
76a9fe
- Update to 0.9.2 (RHBZ#1287343).
76a9fe
76a9fe
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
76a9fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
76a9fe
76a9fe
* Fri Nov 13 2015 Dominik Mierzejewski <rpm@greysector.net> - 0.9.1-1
76a9fe
- update to 0.9.1
76a9fe
- mark license text as such
76a9fe
76a9fe
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-3
76a9fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
76a9fe
76a9fe
* Thu Jun 11 2015 Karsten Hopp <karsten@redhat.com> 0.8.0-2git}
76a9fe
- openjdk is available on all archs now, drop ppc* special cases
76a9fe
76a9fe
* Wed Apr 29 2015 Xavier Bachelot <xavier@bachelot.org> 0.8.0-1
76a9fe
- Update to 0.8.0 (RHBZ#1217475).
76a9fe
76a9fe
* Tue Jan 27 2015 Xavier Bachelot <xavier@bachelot.org> 0.7.0-1
76a9fe
- Update to 0.7.0.
76a9fe
76a9fe
* Thu Sep 04 2014 Xavier Bachelot <xavier@bachelot.org> 0.6.2-1
76a9fe
- Update to 0.6.2.
76a9fe
76a9fe
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
76a9fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
76a9fe
76a9fe
* Tue Aug 05 2014 Xavier Bachelot <xavier@bachelot.org> 0.6.1-1
76a9fe
- Update to 0.6.1.
76a9fe
- Fix building with openJDK 8.
76a9fe
76a9fe
* Wed Jun 04 2014 Xavier Bachelot <xavier@bachelot.org> 0.6.0-1
76a9fe
- Update to 0.6.0.
76a9fe
76a9fe
* Sat Apr 26 2014 Xavier Bachelot <xavier@bachelot.org> 0.5.0-5
76a9fe
- Tweak the Release: tag to accomodate rpmdev-bumpspec.
76a9fe
76a9fe
* Fri Feb 21 2014 Xavier Bachelot <xavier@bachelot.org> 0.5.0-4
76a9fe
- Requires: java-headless for Fedora 21+ (RHBZ#1068351).
76a9fe
- Modernize specfile.
76a9fe
76a9fe
* Fri Jan 10 2014 Xavier Bachelot <xavier@bachelot.org> 0.5.0-3
76a9fe
- Disable BD-J support for ppc64le arch (RHBZ#1051604).
76a9fe
76a9fe
* Sun Dec 22 2013 Xavier Bachelot <xavier@bachelot.org> 0.5.0-2
76a9fe
- Fix build on EL6 (BR: java7-devel instead of java-devel).
76a9fe
76a9fe
* Sat Dec 21 2013 Xavier Bachelot <xavier@bachelot.org> 0.5.0-1
76a9fe
- Update to 0.5.0.
76a9fe
76a9fe
* Tue Nov 26 2013 Xavier Bachelot <xavier@bachelot.org> 0.4.0-2
76a9fe
- Move test utilities to their own subpackage to avoid multilib conflict.
76a9fe
  Fix RHBZ#1034307.
76a9fe
- Rename java subpackage to bdj.
76a9fe
- Remove obsolete xine-lib bluray input plugin from doc files.
76a9fe
76a9fe
* Fri Sep 20 2013 Xavier Bachelot <xavier@bachelot.org> 0.4.0-1
76a9fe
- Update to 0.4.0.
76a9fe
- Fix rpath issues with some test utilities.
76a9fe
76a9fe
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-3
76a9fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
76a9fe
76a9fe
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-2
76a9fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
76a9fe
76a9fe
* Tue Aug 21 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.3-1
76a9fe
- Update to 0.2.3.
76a9fe
76a9fe
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-3
76a9fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
76a9fe
76a9fe
* Tue Jun 12 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.2-3
76a9fe
- Don't build pdf doc, it breaks multilib (see RHBZ#835952).
76a9fe
76a9fe
* Tue Jun 12 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.2-2
76a9fe
- Fix multilib conflict in doxygen docs (RHBZ#831401).
76a9fe
76a9fe
* Tue Mar 20 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.2-1
76a9fe
- Update to 0.2.2.
76a9fe
76a9fe
* Tue Mar 20 2012 Karsten Hopp <karsten@redhat.com> 0.2.1-4
76a9fe
- ppc(64) has no java-1.7.0-open yet, disable java subpackage on both PPC archs
76a9fe
76a9fe
* Thu Mar 15 2012 Rex Dieter <rdieter@fedoraproject.org> 0.2.1-3
76a9fe
- make build non-fatal when using doxygen-1.8 (doesn't produce installdox anymore)
76a9fe
76a9fe
* Wed Feb 01 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.1-2
76a9fe
- Rebuild for openjdk 7.
76a9fe
76a9fe
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-1
76a9fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
76a9fe
76a9fe
* Thu Dec 01 2011 Xavier Bachelot <xavier@bachelot.org> 0.2.1-1
76a9fe
- First upstream official release.
76a9fe
- Fix BD-J build (missing files in upstream tarball).
76a9fe
- Have subpackages require an arch-specific base package.
76a9fe
76a9fe
* Sun Oct 23 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.7.20111023gite037110f11e70
76a9fe
- Update to latest snapshot.
76a9fe
76a9fe
* Sat Jul 16 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.6.20110710git51d7d60a96d06
76a9fe
- Don't build java subpackage on ppc64, no java-1.6.0-devel package.
76a9fe
76a9fe
* Sun Jul 10 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.5.20110710git51d7d60a96d06
76a9fe
- Update to latest snapshot.
76a9fe
76a9fe
* Sat May 14 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.4.20110514git46ee2766038e9
76a9fe
- Update to latest snapshot.
76a9fe
- Drop -static subpackage.
76a9fe
76a9fe
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-0.3.20110126gitbbf11e43bd82e
76a9fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
76a9fe
76a9fe
* Wed Jan 26 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.2.20110126gitbbf11e43bd82e
76a9fe
- Update to latest snapshot.
76a9fe
- Split the BDJ support to a -java subpackage.
76a9fe
76a9fe
* Fri Jan 07 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.1.20110107git0e5902ff9a6f1
76a9fe
- Update to latest snapshot.
76a9fe
- Add BR: libxml2-devel for metadata parser.
76a9fe
- Add BR: graphviz for doc generation.
76a9fe
76a9fe
* Thu Oct 28 2010 Xavier Bachelot <xavier@bachelot.org> 0.1-0.3.20101028gitc32862b77dea4
76a9fe
- Update to latest snapshot.
76a9fe
- Install BDJ jar.
76a9fe
76a9fe
* Thu Oct 21 2010 Xavier Bachelot <xavier@bachelot.org> 0.1-0.2.20101021git144a204c02687
76a9fe
- Fix release tag.
76a9fe
- Update to latest snapshot.
76a9fe
76a9fe
* Thu Aug 19 2010 Xavier Bachelot <xavier@bachelot.org> 0.1-0.1.20100819
76a9fe
- Initial Fedora release.