cortado.spec.in 1.31 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
Name:           cortado
Version:        @VERSION@
Release:        @RELEASE@
Summary:        Cortado - a Java media framework

Group:          Applications/Multimedia
License:	GPL/LGPL/BSD
URL:            http://www.theora.org/cortado/
Source:         http://downloads.xiph.org/releases/cortado/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires:	ant

%description
Cortado is a Java media framework based on GStreamer's design.

%prep
%setup -q

%build
ant

%install
rm -rf $RPM_BUILD_ROOT

ant -Dprefix=$RPM_BUILD_ROOT%{_prefix} install_class
ant -Dprefix=$RPM_BUILD_ROOT%{_prefix} -Dtype=stripped install_applet
ant -Dprefix=$RPM_BUILD_ROOT%{_prefix} -Dtype=debug install_applet

# make some symlinks so that we can have a version-independent cortado
for type in ov ovt mmjs
do
  ln -sf %{_datadir}/cortado/cortado-$type-debug-%{version}.jar \
    $RPM_BUILD_ROOT%{_datadir}/cortado/cortado-$type.jar
done

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc LICENSE.* HACKING README NEWS RELEASE TODO cortado.doap
%{_libdir}/cortado
%{_datadir}/cortado

%changelog
* Thu Nov 5 2009 Ralph Giles <giles@xiph.org>
- Update the URLs; since 0.5.0 the project has been hosted at xiph.org.

* Thu Oct 26 2006 Thomas Vander Stichele <thomas at apestaart dot org>
- add doap file