libbluray/libbluray.spec
Ismail Dönmez 3d2a2bdc06 Accepting request 550476 from home:enzokiel:branches:multimedia:libs
- Update to version 1.0.2:
  + Add initial support for UHD BluRay discs (without BD-J menus).
  + Detect JRE (from the Java Applet plugin) on MacOS.
  + Improve error resilience and stability.
  + Improve libmmbd support.
  + Fix static build dependencies in pkgconfig file.
  + Fix creation of cache (sub-)directories on windows platforms.
  + Fix BD-J temporary storage when persistent storage is disabled.
  + Fix leaks.
- At least java-devel >= 1.8 ist required for build.

OBS-URL: https://build.opensuse.org/request/show/550476
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libbluray?expand=0&rev=68
2017-12-05 12:21:44 +00:00

133 lines
4.1 KiB
RPMSpec

#
# spec file for package libbluray
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Dominique Leuenberger, Amsterdam, The Netherlands
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define sover 2
Name: libbluray
Version: 1.0.2
Release: 0
Summary: Library to access Blu-Ray disk
License: LGPL-2.1+
Group: Productivity/Multimedia/Other
Url: http://www.videolan.org/developers/libbluray.html
Source0: http://download.videolan.org/pub/videolan/%{name}/%{version}/%{name}-%{version}.tar.bz2
Source99: baselibs.conf
Patch1: libbluray-java9.patch
Patch2: libbluray-jvm_dir.patch
BuildRequires: ant
BuildRequires: java-devel >= 1.8
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libxml-2.0) >= 2.6
%description
This library is written for the purpose of playing Blu-ray movies. It is
intended for software that want to support Blu-ray playback (such as VLC and
MPlayer). We, the authors of this library, do not condone nor endorse piracy.
%package -n libbluray%{sover}
Summary: Library to access Blu-Ray disk
Group: System/Libraries
%description -n libbluray%{sover}
This library is written for the purpose of playing Blu-ray movies. It is
intended for software that want to support Blu-ray playback (such as VLC and
MPlayer). We, the authors of this library, do not condone nor endorse piracy.
%package tools
Summary: Library to access Blu-Ray disk - Utilities
Group: Productivity/Multimedia/Other
%description tools
This library is written for the purpose of playing Blu-ray movies. It is
intended for software that want to support Blu-ray playback (such as VLC and
MPlayer). We, the authors of this library, do not condone nor endorse piracy.
%package devel
Summary: Library to access Blu-Ray disks - Development files
Group: Development/Languages/C and C++
Requires: libbluray%{sover} = %{version}
%description devel
This library is written for the purpose of playing Blu-ray movies. It is
intended for software that want to support Blu-ray playback (such as VLC and
MPlayer). We, the authors of this library, do not condone nor endorse piracy.
%package bdj
Summary: Library to access Blu-Ray disk - BD-J support
Group: Development/Libraries/Java
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
Requires: java >= 9
%else
Requires: java >= 1.8
%endif
Requires: jpackage-utils
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%description bdj
This library is written for the purpose of playing Blu-ray movies. It is
intended for software that want to support Blu-ray playback (such as VLC and
MPlayer). We, the authors of this library, do not condone nor endorse piracy.
%prep
%setup -q
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
%patch1 -p1
%endif
%patch2
%build
%configure \
--disable-static \
--enable-bdjava \
--enable-udf
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libbluray%{sover} -p /sbin/ldconfig
%postun -n libbluray%{sover} -p /sbin/ldconfig
%files tools
%defattr(-,root,root)
%{_bindir}/bd_info
%files -n libbluray%{sover}
%defattr(-, root, root)
%doc COPYING
%{_libdir}/libbluray.so.*
%files devel
%defattr(-, root, root)
%{_includedir}/%{name}/
%{_libdir}/libbluray.so
%{_libdir}/pkgconfig/libbluray.pc
%files bdj
%defattr(-, root, root)
%{_javadir}/libbluray-j2se-%{version}.jar
%changelog