[libbluray] first upstream release : 0.2.1
Xavier Bachelot
xavierb at fedoraproject.org
Mon Dec 12 22:18:04 UTC 2011
commit b5d0d53feb3a76fa6ac35aec81140f29f7c02b7a
Author: Xavier Bachelot <xavier at bachelot.org>
Date: Sun Dec 4 13:13:33 2011 +0100
first upstream release : 0.2.1
.gitignore | 1 +
libbluray-0.2.1-bdj_build.xml | 31 ++++++++++++++++++++++++++
libbluray-0.2.1-bdj_java_subdir.tar.bz2 | Bin 0 -> 64985 bytes
libbluray.spec | 37 ++++++++++++++++++++++++++----
sources | 2 +-
5 files changed, 65 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index f98ffb8..89d8421 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@
/libbluray-20110514git46ee2766038e9.tar.bz2
/libbluray-20110710git51d7d60a96d06.tar.bz2
/libbluray-20111023gite037110f11e70.tar.bz2
+/libbluray-0.2.1.tar.bz2
diff --git a/libbluray-0.2.1-bdj_build.xml b/libbluray-0.2.1-bdj_build.xml
new file mode 100644
index 0000000..9ad3dc8
--- /dev/null
+++ b/libbluray-0.2.1-bdj_build.xml
@@ -0,0 +1,31 @@
+<project name="BDJ" default="dist" basedir=".">
+ <description>
+ Build file for the java portion of libBDJ
+ </description>
+
+ <property name="src" location="java"/>
+ <property name="build" location="build"/>
+ <property name="dist" location="../../.libs"/>
+
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${build}"/>
+ <mkdir dir="${dist}"/>
+ </target>
+
+ <target name="compile" depends="init"
+ description="compile the source " >
+ <javac srcdir="${src}" destdir="${build}" debug="yes" />
+ </target>
+
+ <target name="dist" depends="compile"
+ description="generate the distribution" >
+ <jar jarfile="${dist}/libbluray.jar" basedir="${build}" />
+ </target>
+
+ <target name="clean"
+ description="clean up" >
+ <delete dir="${build}"/>
+ <delete dir="${dist}/libbluray.jar"/>
+ </target>
+</project>
diff --git a/libbluray-0.2.1-bdj_java_subdir.tar.bz2 b/libbluray-0.2.1-bdj_java_subdir.tar.bz2
new file mode 100644
index 0000000..ca59384
Binary files /dev/null and b/libbluray-0.2.1-bdj_java_subdir.tar.bz2 differ
diff --git a/libbluray.spec b/libbluray.spec
index 7fe7807..94c6bbd 100644
--- a/libbluray.spec
+++ b/libbluray.spec
@@ -1,24 +1,38 @@
+%global snapshot 0
%global tarball_date 20111023
%global git_hash e037110f11e707e223b715f70920913afecfe297
%global git_short %(echo '%{git_hash}' | cut -c -13)
Name: libbluray
-Version: 0.2
+Version: 0.2.1
+%if %{snapshot}
Release: 0.7.%{tarball_date}git%{git_short}%{?dist}
+%else
+Release: 1%{?dist}
+%endif
Summary: Library to access Blu-Ray disks for video playback
Group: System Environment/Libraries
License: LGPLv2+
URL: http://www.videolan.org/developers/libbluray.html
-# No release yet. Use the commands below to generate a tarball.
+%if %{snapshot}
+# Use the commands below to generate a tarball.
# git clone git://git.videolan.org/libbluray.git
# cd libbluray
# git archive --format=tar %{git_hash} --prefix=libbluray/ | bzip2 > ../libbluray-$( date +%Y%m%d )git%{git_short}.tar.bz2
Source0: %{name}-%{tarball_date}git%{git_short}.tar.bz2
+%else
+Source0: ftp://ftp.videolan.org/pub/videolan/%{name}/%{version}/%{name}-%{version}.tar.bz2
+%endif
+# Fixed upstream, will not be needed for next upstream release
+Source1: libbluray-0.2.1-bdj_build.xml
+Source2: libbluray-0.2.1-bdj_java_subdir.tar.bz2
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+%if %{snapshot}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
+%endif
%ifnarch ppc64
BuildRequires: java-1.6.0-devel
BuildRequires: jpackage-utils
@@ -42,7 +56,7 @@ such as mplayer and vlc.
%package java
Summary: BDJ support for %{name}
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: java-1.6.0
Requires: jpackage-utils
@@ -55,7 +69,7 @@ The %{name}-java package contains the jar file needed to add BDJ support to
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
@@ -63,11 +77,19 @@ developing applications that use %{name}.
%prep
+%if %{snapshot}
%setup -q -n %{name}
+%else
+%setup -q
+install -Dp -m 644 %{SOURCE1} src/libbluray/bdj/build.xml
+tar xjf %{SOURCE2}
+%endif
%build
+%if %{snapshot}
autoreconf -vif
+%endif
%configure --disable-static \
--enable-examples \
%ifnarch ppc64
@@ -111,7 +133,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
-%doc COPYING doc/README player_wrappers README.txt TODO.txt
+%doc COPYING player_wrappers README.txt
%{_libdir}/*.so.*
%{_bindir}/*
@@ -132,6 +154,11 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Dec 01 2011 Xavier Bachelot <xavier at bachelot.org>
+- First upstream official release.
+- Fix BD-J build (missing files in upstream tarball).
+- Have subpackages require an arch-specific base package.
+
* Sun Oct 23 2011 Xavier Bachelot <xavier at bachelot.org> 0.2-0.7.20111023gite037110f11e70
- Update to latest snapshot.
diff --git a/sources b/sources
index a659b3d..6cf2801 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8ee8e0b1a94a7bc00283c77ccfe105ed libbluray-20111023gite037110f11e70.tar.bz2
+d4cfcf3f110e9d2afe01d29feb8c842b libbluray-0.2.1.tar.bz2
More information about the scm-commits
mailing list