|
|
194b84 |
%global snapshot 0
|
|
|
194b84 |
%global tarball_date 20111023
|
|
|
194b84 |
%global git_hash e037110f11e707e223b715f70920913afecfe297
|
|
|
194b84 |
%global git_short %(echo '%{git_hash}' | cut -c -13)
|
|
|
194b84 |
%global build_pdf_doc 0
|
|
|
194b84 |
|
|
|
194b84 |
Name: libbluray
|
|
|
194b84 |
Version: 0.2.3
|
|
|
194b84 |
%if %{snapshot}
|
|
|
194b84 |
Release: 0.10.%{tarball_date}git%{git_short}%{?dist}
|
|
|
194b84 |
%else
|
|
|
194b84 |
Release: 3%{?dist}
|
|
|
194b84 |
%endif
|
|
|
194b84 |
Summary: Library to access Blu-Ray disks for video playback
|
|
|
194b84 |
Group: System Environment/Libraries
|
|
|
194b84 |
License: LGPLv2+
|
|
|
194b84 |
URL: http://www.videolan.org/developers/libbluray.html
|
|
|
194b84 |
%if %{snapshot}
|
|
|
194b84 |
# Use the commands below to generate a tarball.
|
|
|
194b84 |
# git clone git://git.videolan.org/libbluray.git
|
|
|
194b84 |
# cd libbluray
|
|
|
194b84 |
# git archive --format=tar %{git_hash} --prefix=libbluray/ | bzip2 > ../libbluray-$( date +%Y%m%d )git%{git_short}.tar.bz2
|
|
|
194b84 |
Source0: %{name}-%{tarball_date}git%{git_short}.tar.bz2
|
|
|
194b84 |
%else
|
|
|
194b84 |
Source0: ftp://ftp.videolan.org/pub/videolan/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
|
|
194b84 |
%endif
|
|
|
194b84 |
Patch0: libbluray-0.2.2-no_doxygen_timestamp.patch
|
|
|
194b84 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
194b84 |
|
|
|
194b84 |
%if %{snapshot}
|
|
|
194b84 |
BuildRequires: autoconf
|
|
|
194b84 |
BuildRequires: automake
|
|
|
194b84 |
BuildRequires: libtool
|
|
|
194b84 |
%endif
|
|
|
194b84 |
BuildRequires: libxml2-devel
|
|
|
194b84 |
BuildRequires: doxygen
|
|
|
194b84 |
BuildRequires: texlive-latex
|
|
|
194b84 |
BuildRequires: graphviz
|
|
|
194b84 |
|
|
|
194b84 |
|
|
|
194b84 |
%description
|
|
|
194b84 |
This package is aiming to provide a full portable free open source bluray
|
|
|
194b84 |
library, which can be plugged into popular media players to allow full bluray
|
|
|
194b84 |
navigation and playback on Linux. It will eventually be compatible with all
|
|
|
194b84 |
current titles, and will be easily portable and embeddable in standard players
|
|
|
194b84 |
such as mplayer and vlc.
|
|
|
194b84 |
|
|
|
194b84 |
|
|
|
194b84 |
%package devel
|
|
|
194b84 |
Summary: Development files for %{name}
|
|
|
194b84 |
Group: Development/Libraries
|
|
|
194b84 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
194b84 |
|
|
|
194b84 |
%description devel
|
|
|
194b84 |
The %{name}-devel package contains libraries and header files for
|
|
|
194b84 |
developing applications that use %{name}.
|
|
|
194b84 |
|
|
|
194b84 |
|
|
|
194b84 |
%prep
|
|
|
194b84 |
%if %{snapshot}
|
|
|
194b84 |
%setup -q -n %{name}
|
|
|
194b84 |
%else
|
|
|
194b84 |
%setup -q
|
|
|
194b84 |
%endif
|
|
|
194b84 |
%patch0 -p1 -b .no_timestamp
|
|
|
194b84 |
|
|
|
194b84 |
|
|
|
194b84 |
%build
|
|
|
194b84 |
%if %{snapshot}
|
|
|
194b84 |
autoreconf -vif
|
|
|
194b84 |
%endif
|
|
|
194b84 |
%configure --disable-static \
|
|
|
194b84 |
%if %{build_pdf_doc}
|
|
|
194b84 |
--enable-doxygen-pdf \
|
|
|
194b84 |
%else
|
|
|
194b84 |
--disable-doxygen-pdf \
|
|
|
194b84 |
%endif
|
|
|
194b84 |
--disable-doxygen-ps \
|
|
|
194b84 |
--enable-doxygen-html \
|
|
|
194b84 |
--enable-examples \
|
|
|
194b84 |
|
|
|
194b84 |
make %{?_smp_mflags}
|
|
|
194b84 |
make doxygen-doc
|
|
|
194b84 |
# Remove uneeded script
|
|
|
194b84 |
rm -f doc/doxygen/html/installdox
|
|
|
194b84 |
|
|
|
194b84 |
|
|
|
194b84 |
%install
|
|
|
194b84 |
rm -rf $RPM_BUILD_ROOT
|
|
|
194b84 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
194b84 |
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
194b84 |
|
|
|
194b84 |
# Install test utilities
|
|
|
194b84 |
for i in clpi_dump index_dump mobj_dump mpls_dump sound_dump
|
|
|
194b84 |
do install -Dp -m 0755 src/examples/$i $RPM_BUILD_ROOT%{_bindir}/$i; done;
|
|
|
194b84 |
for i in bd_info bdsplice hdmv_test libbluray_test list_titles
|
|
|
194b84 |
do install -Dp -m755 src/examples/.libs/$i %{buildroot}%{_bindir}/$i; done
|
|
|
194b84 |
|
|
|
194b84 |
%clean
|
|
|
194b84 |
rm -rf $RPM_BUILD_ROOT
|
|
|
194b84 |
|
|
|
194b84 |
|
|
|
194b84 |
%post -p /sbin/ldconfig
|
|
|
194b84 |
|
|
|
194b84 |
%postun -p /sbin/ldconfig
|
|
|
194b84 |
|
|
|
194b84 |
|
|
|
194b84 |
%files
|
|
|
194b84 |
%defattr(-,root,root,-)
|
|
|
194b84 |
%doc COPYING player_wrappers README.txt
|
|
|
194b84 |
%{_libdir}/*.so.*
|
|
|
194b84 |
%{_bindir}/*
|
|
|
194b84 |
|
|
|
194b84 |
|
|
|
194b84 |
%files devel
|
|
|
194b84 |
%defattr(-,root,root,-)
|
|
|
194b84 |
%doc doc/doxygen/html
|
|
|
194b84 |
%if %{build_pdf_doc}
|
|
|
194b84 |
%doc doc/doxygen/libbluray.pdf
|
|
|
194b84 |
%endif
|
|
|
194b84 |
%{_includedir}/*
|
|
|
194b84 |
%{_libdir}/*.so
|
|
|
194b84 |
%{_libdir}/pkgconfig/libbluray.pc
|
|
|
194b84 |
|
|
|
194b84 |
|
|
|
194b84 |
%changelog
|
|
|
194b84 |
* Fri May 03 2013 Bastien Nocera <bnocera@redhat.com> 0.2.3-3
|
|
|
194b84 |
- Remove unused java sub-package
|
|
|
194b84 |
|
|
|
194b84 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-2
|
|
|
194b84 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
194b84 |
|
|
|
194b84 |
* Tue Aug 21 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.3-1
|
|
|
194b84 |
- Update to 0.2.3.
|
|
|
194b84 |
|
|
|
194b84 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-3
|
|
|
194b84 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
194b84 |
|
|
|
194b84 |
* Tue Jun 12 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.2-3
|
|
|
194b84 |
- Don't build pdf doc, it breaks multilib (see RHBZ#835952).
|
|
|
194b84 |
|
|
|
194b84 |
* Tue Jun 12 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.2-2
|
|
|
194b84 |
- Fix multilib conflict in doxygen docs (RHBZ#831401).
|
|
|
194b84 |
|
|
|
194b84 |
* Tue Mar 20 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.2-1
|
|
|
194b84 |
- Update to 0.2.2.
|
|
|
194b84 |
|
|
|
194b84 |
* Tue Mar 20 2012 Karsten Hopp <karsten@redhat.com> 0.2.1-4
|
|
|
194b84 |
- ppc(64) has no java-1.7.0-open yet, disable java subpackage on both PPC archs
|
|
|
194b84 |
|
|
|
194b84 |
* Thu Mar 15 2012 Rex Dieter <rdieter@fedoraproject.org> 0.2.1-3
|
|
|
194b84 |
- make build non-fatal when using doxygen-1.8 (doesn't produce installdox anymore)
|
|
|
194b84 |
|
|
|
194b84 |
* Wed Feb 01 2012 Xavier Bachelot <xavier@bachelot.org> 0.2.1-2
|
|
|
194b84 |
- Rebuild for openjdk 7.
|
|
|
194b84 |
|
|
|
194b84 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-1
|
|
|
194b84 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
194b84 |
|
|
|
194b84 |
* Thu Dec 01 2011 Xavier Bachelot <xavier@bachelot.org> 0.2.1-1
|
|
|
194b84 |
- First upstream official release.
|
|
|
194b84 |
- Fix BD-J build (missing files in upstream tarball).
|
|
|
194b84 |
- Have subpackages require an arch-specific base package.
|
|
|
194b84 |
|
|
|
194b84 |
* Sun Oct 23 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.7.20111023gite037110f11e70
|
|
|
194b84 |
- Update to latest snapshot.
|
|
|
194b84 |
|
|
|
194b84 |
* Sat Jul 16 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.6.20110710git51d7d60a96d06
|
|
|
194b84 |
- Don't build java subpackage on ppc64, no java-1.6.0-devel package.
|
|
|
194b84 |
|
|
|
194b84 |
* Sun Jul 10 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.5.20110710git51d7d60a96d06
|
|
|
194b84 |
- Update to latest snapshot.
|
|
|
194b84 |
|
|
|
194b84 |
* Sat May 14 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.4.20110514git46ee2766038e9
|
|
|
194b84 |
- Update to latest snapshot.
|
|
|
194b84 |
- Drop -static subpackage.
|
|
|
194b84 |
|
|
|
194b84 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-0.3.20110126gitbbf11e43bd82e
|
|
|
194b84 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
194b84 |
|
|
|
194b84 |
* Wed Jan 26 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.2.20110126gitbbf11e43bd82e
|
|
|
194b84 |
- Update to latest snapshot.
|
|
|
194b84 |
- Split the BDJ support to a -java subpackage.
|
|
|
194b84 |
|
|
|
194b84 |
* Fri Jan 07 2011 Xavier Bachelot <xavier@bachelot.org> 0.2-0.1.20110107git0e5902ff9a6f1
|
|
|
194b84 |
- Update to latest snapshot.
|
|
|
194b84 |
- Add BR: libxml2-devel for metadata parser.
|
|
|
194b84 |
- Add BR: graphviz for doc generation.
|
|
|
194b84 |
|
|
|
194b84 |
* Thu Oct 28 2010 Xavier Bachelot <xavier@bachelot.org> 0.1-0.3.20101028gitc32862b77dea4
|
|
|
194b84 |
- Update to latest snapshot.
|
|
|
194b84 |
- Install BDJ jar.
|
|
|
194b84 |
|
|
|
194b84 |
* Thu Oct 21 2010 Xavier Bachelot <xavier@bachelot.org> 0.1-0.2.20101021git144a204c02687
|
|
|
194b84 |
- Fix release tag.
|
|
|
194b84 |
- Update to latest snapshot.
|
|
|
194b84 |
|
|
|
194b84 |
* Thu Aug 19 2010 Xavier Bachelot <xavier@bachelot.org> 0.1-0.1.20100819
|
|
|
194b84 |
- Initial Fedora release.
|