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 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ + 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 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 0.92-1 +- Update to 0.92 release + +* Sun Nov 21 2010 Cédric OLIVIER 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