Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d2525389c | ||
|
|
e75c51a131 | ||
|
|
edfb8f1ab5 | ||
|
|
2984362409 |
7 changed files with 108 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
ditaa-0.9.r74.tar.xz
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: ditaa
|
||||
# $Id$
|
||||
NAME := ditaa
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
13
ditaa-0.9-batik-png.patch
Normal file
13
ditaa-0.9-batik-png.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--- ditaa/src/org/stathissideris/ascii2image/graphics/ImageHandler.java~ 2009-11-12 22:32:30.000000000 +0100
|
||||
+++ ditaa/src/org/stathissideris/ascii2image/graphics/ImageHandler.java 2010-06-20 23:02:08.000000000 +0200
|
||||
@@ -45,8 +45,8 @@
|
||||
import org.apache.batik.bridge.UserAgentAdapter;
|
||||
import org.apache.batik.dom.svg.SAXSVGDocumentFactory;
|
||||
import org.apache.batik.dom.util.DocumentFactory;
|
||||
-import org.apache.batik.ext.awt.image.codec.PNGEncodeParam;
|
||||
-import org.apache.batik.ext.awt.image.codec.PNGImageEncoder;
|
||||
+import org.apache.batik.ext.awt.image.codec.png.PNGEncodeParam;
|
||||
+import org.apache.batik.ext.awt.image.codec.png.PNGImageEncoder;
|
||||
import org.apache.batik.gvt.GraphicsNode;
|
||||
import org.apache.batik.gvt.renderer.ConcreteImageRendererFactory;
|
||||
import org.apache.batik.gvt.renderer.ImageRenderer;
|
||||
82
ditaa.spec
Normal file
82
ditaa.spec
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
%global over 0_9
|
||||
%global svn 74
|
||||
|
||||
Summary: Diagrams Through ASCII Art
|
||||
Name: ditaa
|
||||
Version: 0.9
|
||||
Release: 4.r%{svn}%{?dist}
|
||||
Group: Applications/System
|
||||
License: GPLv2+
|
||||
URL: http://ditaa.sourceforge.net/
|
||||
#Source0: http://downloads.sourceforge.net/ditaa/ditaa%{over}-src.zip
|
||||
# Sources pulled from svn:
|
||||
# rm -rf ditaa-0.9
|
||||
# svn co -r%{svn} https://ditaa.svn.sourceforge.net/svnroot/ditaa/trunk ditaa-0.9
|
||||
# tar cJvf ditaa-0.9.r%{svn}.tar.xz ditaa-0.9
|
||||
Source0: ditaa-0.9.r%{svn}.tar.xz
|
||||
Source1: ditaa.wrapper
|
||||
Patch0: ditaa-0.9-batik-png.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
BuildRequires: java-devel >= 1:1.6.0
|
||||
BuildRequires: ant
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: batik
|
||||
BuildRequires: jericho-html
|
||||
BuildRequires: xml-commons-apis
|
||||
BuildRequires: jakarta-commons-cli
|
||||
Requires: jakarta-commons-cli
|
||||
Requires: xml-commons-apis
|
||||
Requires: jericho-html
|
||||
Requires: batik
|
||||
Requires: jpackage-utils
|
||||
Requires: java >= 1:1.6.0
|
||||
|
||||
%description
|
||||
ditaa is a small command-line utility written in Java, that can
|
||||
convert diagrams drawn using ASCII art ('drawings' that contain
|
||||
characters that resemble lines like | / - ), into proper bitmap
|
||||
graphics.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
find -name '*.class' -delete
|
||||
find -name '*.jar' -delete
|
||||
|
||||
%build
|
||||
%{__install} -d bin
|
||||
build-jar-repository -s -p lib commons-cli batik-all xml-commons-apis-ext jericho-html
|
||||
ant -f build/release.xml
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
%{__install} -D -p -m 0644 releases/%{name}%{over}.jar \
|
||||
%{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||
%{__ln_s} %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
%{__install} -D -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root, -)
|
||||
%doc COPYING HISTORY
|
||||
%{_bindir}/%{name}
|
||||
%{_javadir}/%{name}-%{version}.jar
|
||||
%{_javadir}/%{name}.jar
|
||||
|
||||
%changelog
|
||||
* Mon Jul 26 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.9-4.r74
|
||||
- Pull sources from svn do get working ditaa using system jericho
|
||||
|
||||
* Wed Jun 22 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.9-3
|
||||
- Use system jericho-html
|
||||
|
||||
* Mon Jun 21 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.9-2
|
||||
- Be more generic about jdk 1.6 buildreq
|
||||
- Add req on jdk 1.6
|
||||
- Include some jars to wrapper
|
||||
|
||||
* Sun Jun 20 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.9-1
|
||||
- initial build
|
||||
11
ditaa.wrapper
Normal file
11
ditaa.wrapper
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#! /bin/bash
|
||||
#
|
||||
|
||||
source /usr/share/java-utils/java-functions
|
||||
|
||||
MAIN_CLASS=org.stathissideris.ascii2image.core.CommandLineConverter
|
||||
BASE_JARS="ditaa commons-cli xml-commons-apis batik"
|
||||
|
||||
set_classpath $BASE_JARS
|
||||
|
||||
run "$@"
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
d28ac984ef6e1e860bc05542a3a1d9a5 ditaa-0.9.r74.tar.xz
|
||||
Loading…
Add table
Add a link
Reference in a new issue