[cambozola/f14/master] Initial import (#655496).

Cédric OLIVIER cquad at fedoraproject.org
Thu Jan 20 19:22:25 UTC 2011


commit 3fff10623763da6356f333a6e01814dfe3e92253
Author: cquad <cquad at fedoraproject.org>
Date:   Thu Jan 20 20:22:12 2011 +0100

    Initial import (#655496).

 .gitignore                       |    1 +
 cambozola-0.92-add_javadoc.patch |   23 ++++++++++
 cambozola.spec                   |   91 ++++++++++++++++++++++++++++++++++++++
 sources                          |    1 +
 4 files changed, 116 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5100402 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cambozola-latest.tar.gz
diff --git a/cambozola-0.92-add_javadoc.patch b/cambozola-0.92-add_javadoc.patch
new file mode 100644
index 0000000..73298a4
--- /dev/null
+++ b/cambozola-0.92-add_javadoc.patch
@@ -0,0 +1,23 @@
+--- build.xml.origine	2010-12-12 21:09:07.000000000 +0100
++++ build.xml	2010-12-22 18:00:10.325907266 +0100
+@@ -129,4 +129,20 @@
+         <delete dir="${package.base}"/>
+         <delete dir="${deploy}"/>
+     </target>
++
++	<target name="javadoc" description="generate javadoc documentation">
++        <javadoc
++            destdir="javadoc"
++            defaultexcludes="yes"
++            author="true"
++            version="true"
++            use="true"
++            access="protected"
++            windowtitle="cambozola javadoc"
++            failonerror="true">
++            <packageset dir="src">
++                <include name="com/charliemouse/cambozola/"/>
++            </packageset>
++        </javadoc>
++        </target>
+ </project>
diff --git a/cambozola.spec b/cambozola.spec
new file mode 100644
index 0000000..6c47735
--- /dev/null
+++ b/cambozola.spec
@@ -0,0 +1,91 @@
+Name:           cambozola
+Version:        0.92
+Release:        2%{?dist}
+Summary:        A viewer for multipart jpeg streams
+
+Group:          Development/Libraries
+License:        GPLv2+
+URL:            http://www.charliemouse.com/code/cambozola/index.html
+Source0:        http://www.charliemouse.com:8080/code/cambozola/%{name}-latest.tar.gz
+
+#patch to add javadoc generation in build.xml
+Patch0:         %{name}-%{version}-add_javadoc.patch
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  jpackage-utils
+BuildRequires:  java-devel
+BuildRequires:  ant
+BuildRequires:  ant-nodeps
+Requires:       jpackage-utils
+Requires:       java
+
+%description
+Cambozola is a very simple (cheesy!) viewer for multipart jpeg streams
+that are often pumped out by a streaming webcam server,
+sending over multiple images per second.
+
+%package javadoc
+Summary:        Javadoc for %{name}
+Group:          Documentation
+Requires:       jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q
+%patch0 -p0
+
+# Remove pre-built JAR and class files
+find -name '*.jar' -exec rm -f '{}' \;
+find -name '*.class' -exec rm -f '{}' \;
+
+%build
+ant javadoc
+ant
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+mkdir -p $RPM_BUILD_ROOT%{_javadir}
+cp -p dist/%{name}.jar   \
+  $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+cp -p dist/%{name}-server.jar   \
+  $RPM_BUILD_ROOT%{_javadir}/%{name}-server.jar
+
+# javadoc
+mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -rp javadoc/*  \
+  $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%{_javadir}/%{name}.jar
+%{_javadir}/%{name}-server.jar
+%doc LICENSE README.html
+
+
+%files javadoc
+%defattr(-,root,root,-)
+%{_javadocdir}/%{name}
+
+
+%changelog
+* Sun Jan 16 2011 Cédric OLIVIER <cedric.olivier at free.fr>  0.92-2
+- According to Java packaging guidelines version removed from jar file name
+- Reduce the spelling errors in description
+- Remove clean section
+- Remove unneeded requires in javadoc section
+
+* Wed Dec 22 2010 Cédric OLIVIER <cedric.olivier at free.fr>  0.92-1
+- Update to 0.92 release
+
+* Sun Nov 21 2010 Cédric OLIVIER <cedric.olivier at free.fr>  0.80-1
+- First release
+
diff --git a/sources b/sources
index e69de29..d97ff32 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+602daba851e726e2399445fda3ca718f  cambozola-latest.tar.gz


More information about the scm-commits mailing list