first upstream release : 0.2.1
This commit is contained in:
parent
e6ba7c7ae7
commit
b5d0d53feb
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@
|
||||
/libbluray-20110514git46ee2766038e9.tar.bz2
|
||||
/libbluray-20110710git51d7d60a96d06.tar.bz2
|
||||
/libbluray-20111023gite037110f11e70.tar.bz2
|
||||
/libbluray-0.2.1.tar.bz2
|
||||
|
31
libbluray-0.2.1-bdj_build.xml
Normal file
31
libbluray-0.2.1-bdj_build.xml
Normal file
@ -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>
|
BIN
libbluray-0.2.1-bdj_java_subdir.tar.bz2
Normal file
BIN
libbluray-0.2.1-bdj_java_subdir.tar.bz2
Normal file
Binary file not shown.
@ -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@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@bachelot.org> 0.2-0.7.20111023gite037110f11e70
|
||||
- Update to latest snapshot.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user