ALT repositories
Last updated at Fri, 24 Jul 2020 14:09:54 +0000 | SRPMs: 23857
en ru
SRPMs in branches
hide window
  • 0.6.0-alt1_16jpp8
  • 0.6.0-alt1_11jpp8
  • 0.6.0-alt1_11jpp8
  • 0.6.0-alt1_6jpp7
  • 0.6.0-alt1_6jpp7
  • 0.6.0-alt1_6jpp7
Group :: System/Libraries
Source RPM: cortado
Raw spec file

Group: System/Libraries
# BEGIN SourceDeps(oneline):
BuildRequires(pre):
rpm-macros-java
# END SourceDeps(oneline)

BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-1.8-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382

%define _localstatedir %{_var}
Name: cortado
Version: 0.6.0
Release: alt1_19jpp8
Summary: Java media framework
URL: http://www.theora.org/cortado/
# The codecs are all LGPLv2+, the jst framework is mixed, the player applet GPL

License: LGPLv2+ and GPLv2+
Source0: http://downloads.xiph.org/releases/%{name}/%{name}-%{version}.tar.gz
Patch0: cortado-0.6.0-javadoc-fix.patch
BuildArch: noarch
BuildRequires: jpackage-utils jorbis
Requires: java jpackage-utils jorbis
Source44: import.info

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


%package javadoc
Group: Development/Java
Summary: Java docs for %{name}
Requires: jpackage-utils
BuildArch: noarch

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q
%patch0 -p1
# Remove included jorbis copy

rm -fr src/com/jcraft
# We don't want to include the examples in the jar we build

mv src/com/fluendo/examples .
# javac does not like the UTF-8 x, ∗, − and ’ symbols used in the comments

sed -i "s/×/x/g" src/com/fluendo/jheora/Quant.java
sed -i "s/∗/*/g" src/com/fluendo/jheora/Quant.java
sed -i "s/−/-/g" src/com/fluendo/jheora/Quant.java
sed -i "s/’/'/g" src/com/fluendo/jheora/Quant.java


%build
javac `find stubs -name "*.java"`
export CLASSPATH=stubs:%{_javadir}/jogg.jar:%{_javadir}/jorbis.jar:.
javac `find src -name "*.java"`
pushd src
jar cf %{name}.jar `find -name "*.class"`
popd
javadoc -d doc -public `find src -name "*.java"`


%install
mkdir -p $RPM_BUILD_ROOT%{_javadir}
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}
cp -a src/%{name}.jar $RPM_BUILD_ROOT%{_javadir}
cp -a doc $RPM_BUILD_ROOT%{_javadocdir}/%{name}


%files
%doc ChangeLog HACKING LICENSE.* NEWS README RELEASE TODO examples
%{_javadir}/%{name}.jar

%files javadoc
%doc LICENSE.*
%doc %{_javadocdir}/%{name}


%changelog
* Sat Feb 15 2020 Igor Vlasenko <viy at altlinux.ru> 0.6.0-alt1_19jpp8
- fc update

* Sat May 25 2019 Igor Vlasenko <viy at altlinux.ru> 0.6.0-alt1_17jpp8
- new version

* Tue Feb 05 2019 Igor Vlasenko <viy at altlinux.ru> 0.6.0-alt1_16jpp8
- fc29 update

* Thu Apr 19 2018 Igor Vlasenko <viy at altlinux.ru> 0.6.0-alt1_15jpp8
- java update

* Thu Nov 09 2017 Igor Vlasenko <viy at altlinux.ru> 0.6.0-alt1_14jpp8
- fc27 update

* Tue Oct 17 2017 Igor Vlasenko <viy at altlinux.ru> 0.6.0-alt1_13jpp8
- new jpp release

* Tue Nov 22 2016 Igor Vlasenko <viy at altlinux.ru> 0.6.0-alt1_12jpp8
- new fc release

* Tue Feb 02 2016 Igor Vlasenko <viy at altlinux.ru> 0.6.0-alt1_11jpp8
- new version

* Mon Sep 08 2014 Igor Vlasenko <viy at altlinux.ru> 0.6.0-alt1_8jpp7
- new release

* Mon Jul 28 2014 Igor Vlasenko <viy at altlinux.ru> 0.6.0-alt1_7jpp7
- new release

* Mon Aug 20 2012 Igor Vlasenko <viy at altlinux.ru> 0.6.0-alt1_6jpp7
- update to new release by jppimport

* Thu Jun 21 2012 Igor Vlasenko <viy at altlinux.ru> 0.6.0-alt1_5jpp7
- new version

 
The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.