[moconti] Initial import

Orion Poplawski orion at fedoraproject.org
Tue Apr 23 17:30:05 UTC 2013


commit 5697058a2bc8645cccf41f0525dd7025cedd922d
Author: Orion Poplawski <orion at nwra.com>
Date:   Tue Apr 23 11:29:57 2013 -0600

    Initial import

 .gitignore            |    1 +
 moconti-javadoc.patch |   14 +++++++++
 moconti.spec          |   77 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 4 files changed, 93 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d36accd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/moconti102609.tgz
diff --git a/moconti-javadoc.patch b/moconti-javadoc.patch
new file mode 100644
index 0000000..f5af40b
--- /dev/null
+++ b/moconti-javadoc.patch
@@ -0,0 +1,14 @@
+diff -up moconti/build.xml.javadoc moconti/build.xml
+--- moconti/build.xml.javadoc	2009-07-22 10:25:25.000000000 -0600
++++ moconti/build.xml	2013-04-23 10:55:49.681229560 -0600
+@@ -40,4 +40,10 @@
+       </manifest>
+      </jar>
+    </target>
++
++   <target name="javadoc">
++     <javadoc sourcepath="${project.src}" destdir="javadoc">
++       <classpath path="./lib/sleep.jar" />
++     </javadoc>
++   </target>
+ </project>
diff --git a/moconti.spec b/moconti.spec
new file mode 100644
index 0000000..66ffb44
--- /dev/null
+++ b/moconti.spec
@@ -0,0 +1,77 @@
+Name:           moconti
+Version:        102609
+Release:        3%{?dist}
+Summary:        Web Application Server for Sleep
+
+Group:          Development/Libraries
+License:        LGPLv2
+URL:            http://hick.org/~raffi/moconti.html
+Source0:        http://www.polishmywriting.com/download/moconti102609.tgz
+# Add javadoc target
+Patch0:         moconti-javadoc.patch
+BuildArch:      noarch
+
+BuildRequires:  jpackage-utils
+BuildRequires:  java-devel
+BuildRequires:  ant
+BuildRequires:  java-sleep
+
+Requires:       jpackage-utils
+Requires:       java
+Requires:       java-sleep
+
+%description
+Moconti is a light-weight application server that lets you create web sites
+using the Sleep Scripting Language. It supports multiple websites and is very
+easy to setup.
+
+
+%package javadoc
+Summary:        Javadocs for %{name}
+Group:          Documentation
+Requires:       jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1 -b .javadoc
+find -name '*.jar' -delete
+# Fix java source/target
+sed -i -e 's/1.4/1.5/' build.xml
+build-jar-repository -s -p lib sleep
+
+
+%build
+ant
+ant javadoc
+
+
+%install
+mkdir -p $RPM_BUILD_ROOT%{_javadir}
+cp -p moconti.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+mkdir -p $RPM_BUILD_ROOT%{_javadocdir}
+cp -rp javadoc $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+
+%files
+%{_javadir}/*
+%doc docs
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+
+%changelog
+* Tue Apr 23 2013 Orion Poplawski <orion at cora.nwra.com> - 102609-3
+- Fix java target/source to 1.5
+- Add javadoc
+
+* Wed Apr 17 2013 Orion Poplawski <orion at cora.nwra.com> - 102609-2
+- Update URL
+- BR/R java-sleep
+
+* Wed Nov 2 2011 Orion Poplawski <orion at cora.nwra.com> - 102609-1
+- Initial package
diff --git a/sources b/sources
index e69de29..843b914 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+dfacbf961c9696f544abf50c9fb5cc0d  moconti102609.tgz


More information about the scm-commits mailing list