This commit is contained in:
Xavier Bachelot 2013-09-20 11:15:43 +02:00
parent 8de90b6348
commit 6d34fecf19
3 changed files with 24 additions and 17 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@
/libbluray-0.2.1.tar.bz2 /libbluray-0.2.1.tar.bz2
/libbluray-0.2.2.tar.bz2 /libbluray-0.2.2.tar.bz2
/libbluray-0.2.3.tar.bz2 /libbluray-0.2.3.tar.bz2
/libbluray-0.4.0.tar.bz2

View File

@ -1,15 +1,15 @@
%global snapshot 0 %global snapshot 0
%global tarball_date 20111023 %global tarball_date 20130427
%global git_hash e037110f11e707e223b715f70920913afecfe297 %global git_hash 2b002fe52e8c2506ed52bf56c8b517d350dbb281
%global git_short %(echo '%{git_hash}' | cut -c -13) %global git_short %(echo '%{git_hash}' | cut -c -13)
%global build_pdf_doc 0 %global build_pdf_doc 0
Name: libbluray Name: libbluray
Version: 0.2.3 Version: 0.4.0
%if %{snapshot} %if %{snapshot}
Release: 0.11.%{tarball_date}git%{git_short}%{?dist} Release: 0.1.%{tarball_date}git%{git_short}%{?dist}
%else %else
Release: 3%{?dist} Release: 1%{?dist}
%endif %endif
Summary: Library to access Blu-Ray disks for video playback Summary: Library to access Blu-Ray disks for video playback
Group: System Environment/Libraries Group: System Environment/Libraries
@ -32,7 +32,7 @@ BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: libtool BuildRequires: libtool
%endif %endif
%ifnarch ppc64 %ifnarch ppc ppc64
BuildRequires: java-devel >= 1:1.6.0 BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils BuildRequires: jpackage-utils
BuildRequires: ant BuildRequires: ant
@ -41,6 +41,7 @@ BuildRequires: libxml2-devel
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: texlive-latex BuildRequires: texlive-latex
BuildRequires: graphviz BuildRequires: graphviz
BuildRequires: freetype-devel
%description %description
@ -88,6 +89,7 @@ developing applications that use %{name}.
%if %{snapshot} %if %{snapshot}
autoreconf -vif autoreconf -vif
%endif %endif
export JDK_HOME="%{_jvmdir}/java-1.7.0"
%configure --disable-static \ %configure --disable-static \
%if %{build_pdf_doc} %if %{build_pdf_doc}
--enable-doxygen-pdf \ --enable-doxygen-pdf \
@ -98,9 +100,13 @@ autoreconf -vif
--enable-doxygen-html \ --enable-doxygen-html \
--enable-examples \ --enable-examples \
%ifnarch ppc ppc64 %ifnarch ppc ppc64
--enable-bdjava --with-jdk=%{_jvmdir}/java-1.7.0 --enable-bdjava
%endif %endif
# Fix rpath issue
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags} make %{?_smp_mflags}
make doxygen-doc make doxygen-doc
# Remove uneeded script # Remove uneeded script
@ -112,16 +118,12 @@ rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%ifnarch ppc ppc64
# Install BD-J jar
install -Dp -m 644 src/.libs/libbluray.jar $RPM_BUILD_ROOT%{_javadir}/libbluray.jar
%endif
# Install test utilities # Install test utilities
for i in clpi_dump index_dump mobj_dump mpls_dump sound_dump for i in clpi_dump index_dump mobj_dump mpls_dump sound_dump;
do install -Dp -m 0755 src/examples/$i $RPM_BUILD_ROOT%{_bindir}/$i; done; do install -Dp -m 0755 src/examples/$i $RPM_BUILD_ROOT%{_bindir}/$i; done;
for i in bd_info bdsplice hdmv_test libbluray_test list_titles for i in bd_info bdsplice hdmv_test libbluray_test list_titles;
do install -Dp -m755 src/examples/.libs/$i %{buildroot}%{_bindir}/$i; done do install -Dp -m 0755 src/examples/.libs/$i %{buildroot}%{_bindir}/$i; done;
%ifnarch ppc ppc64 %ifnarch ppc ppc64
install -Dp -m755 src/examples/.libs/bdj_test %{buildroot}%{_bindir}/bdj_test; install -Dp -m755 src/examples/.libs/bdj_test %{buildroot}%{_bindir}/bdj_test;
%endif %endif
@ -146,7 +148,7 @@ rm -rf $RPM_BUILD_ROOT
%ifnarch ppc ppc64 %ifnarch ppc ppc64
%files java %files java
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_javadir}/libbluray.jar %{_libdir}/libbluray/libbluray.jar
%endif %endif
@ -162,6 +164,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Fri Sep 20 2013 Xavier Bachelot <xavier@bachelot.org> 0.4.0-1
- Update to 0.4.0.
- Fix rpath issues with some test utilities.
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-3 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

View File

@ -1 +1 @@
684e420d2ebafa13786ae84364543cf9 libbluray-0.2.3.tar.bz2 c7a1cc71cb9747f93122ec650d4ae933 libbluray-0.4.0.tar.bz2