[jspeex] Inital import
Hicham HAOUARI
hicham at fedoraproject.org
Fri Mar 4 13:26:35 UTC 2011
commit ff2759d41873d797e3a347362144006fb373cd4e
Author: Hicham HAOUARI <hicham.haouari at gmail.com>
Date: Fri Mar 4 13:26:19 2011 +0000
Inital import
.gitignore | 1 +
jspeex.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 68 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..50973c4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jspeex-0.9.7.zip
diff --git a/jspeex.spec b/jspeex.spec
new file mode 100644
index 0000000..2866e71
--- /dev/null
+++ b/jspeex.spec
@@ -0,0 +1,66 @@
+Name: jspeex
+Version: 0.9.7
+Release: 1%{?dist}
+Summary: Java Implementation of Speex
+
+Group: Development/Libraries
+License: BSD with advertising
+URL: http://jspeex.sourceforge.net/
+Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.zip
+BuildArch: noarch
+
+BuildRequires: jpackage-utils
+BuildRequires: java-devel >= 1:1.6.0
+BuildRequires: ant
+BuildRequires: proguard
+BuildRequires: junit
+
+Requires: jpackage-utils
+Requires: java >= 1:1.6.0
+
+%description
+JSpeex is a Java port of the Speex speech Codec (Open Source/Free Software
+patent-free audio compression format designed for speech). It provides both
+the decoder and the encoder in pure Java, as well as a JavaSound SPI.
+
+%package javadoc
+Summary: Java docs for %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n %{name}
+# Make sure to remove any prebuilt jars and classes
+find . \( -name '*.class' -o -name '*.jar' \) -exec rm -f '{}' \;
+# Remove doc dir if it is already there
+[ -d doc ] && rm -rf doc
+# Fix wrong end of file encoding
+sed -i 's|\r||g' License.txt README
+
+%build
+export CLASSPATH=$(build-classpath proguard junit)
+%ant package javadoc
+
+
+%install
+install -Dpm 644 dist/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -rp doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+
+%files
+%defattr(-,root,root,-)
+%doc License.txt README
+%{_javadir}/%{name}.jar
+
+%files javadoc
+%defattr(-,root,root,-)
+%doc License.txt
+%doc %{_javadocdir}/%{name}
+
+%changelog
+* Mon Dec 20 2010 Hicham HAOUARI <hicham.haouari at gmail.com> - 0.9.7-1
+- Initial package for Fedora
diff --git a/sources b/sources
index e69de29..266b835 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a568efa4a6aa3c218ca4a37e5231685c jspeex-0.9.7.zip
More information about the scm-commits
mailing list