libbluray/libbluray.spec

124 lines
4.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libbluray
#
# Copyright (c) 2016 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 soname 1
Name: libbluray
Version: 0.9.3
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
Patch2: libbluray-jvm_dir.patch
BuildRequires: ant
BuildRequires: java-devel >= 1.6
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libxml-2.0) >= 2.6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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%{soname}
Summary: Library to access Blu-Ray disk
Group: Productivity/Multimedia/Other
%description -n libbluray%{soname}
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: System/Libraries
%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%{soname} = %{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
Requires: java >= 1.6
Requires: jpackage-utils
BuildArch: noarch
%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
%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%{soname} -p /sbin/ldconfig
%postun -n libbluray%{soname} -p /sbin/ldconfig
%files tools
%defattr(-,root,root)
%{_bindir}/bd_info
%files -n libbluray%{soname}
%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