Compare commits

..

No commits in common. "rawhide" and "f17" have entirely different histories.

6 changed files with 152 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
src.jar

View file

@ -0,0 +1,18 @@
--- makefile.sav 2010-05-05 11:57:46.000000000 +0300
+++ makefile 2010-05-05 12:04:37.504052246 +0300
@@ -2,9 +2,14 @@
JAR = jar
JAVAC = javac
+JAVADOC = javadoc
-all: yydebug.jar
+all: yydebug.jar javadocs
yydebug.jar:
$(JAVAC) *.java -d .
$(JAR) cf yydebug.jar jay/yydebug/*.class
+
+javadocs:
+ mkdir javadocs
+ $(JAVADOC) -d ./javadocs *.java

View file

@ -0,0 +1,36 @@
diff -U makefile makefile
--- makefile 2006-03-10 15:49:48.000000000 -0500
+++ makefile 2010-01-21 14:06:41.000000000 -0500
@@ -1,27 +1,10 @@
# jay/yydebug [leaf]
-v4 = /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Commands
-
-JAR = $(v4)/jar
-JAVAC = $(v4)/javac -classpath ../..
-
-d = jay/yydebug
-go = yyDebug.class yyDebugAdapter.class yyAnim.class \
- yyAnimPanel.class yyInputStream.class yyPrintStream.class \
- yyJInputStream.class
+JAR = jar
+JAVAC = javac
all: yydebug.jar
-clean: ; rm -f *.class src.jar doc-files/*.jar
-dist: all src.jar ; cp yydebug.jar src.jar doc-files
-distclean: clean ; rm -f yydebug.jar
-test: all
-
-yydebug.jar: $(go)
- cd ../.. && $(JAR) cf $d/$@ $d/*.class
-
-src.jar: $(go:.class=.java) makefile package.html
- cd ../.. && $(JAR) cf $d/$@ $d/*.java $d/makefile $d/package.html
-.SUFFIXES:
-.SUFFIXES: .class .java
-.java.class: ; $(JAVAC) $*.java
+yydebug.jar:
+ $(JAVAC) *.java -d .
+ $(JAR) cf yydebug.jar jay/yydebug/*.class

View file

@ -1 +0,0 @@
Orphaned for 6+ weeks

1
sources Normal file
View file

@ -0,0 +1 @@
0774224122dfcdbefdd87be6eff6c16d src.jar

96
yydebug.spec Normal file
View file

@ -0,0 +1,96 @@
Name: yydebug
Version: 1.1.0
Release: 7%{?dist}
Summary: Supports tracing and animation for a Java-based parser generated by jay
Group: Development/Debuggers
License: BSD
URL: http://www.cs.rit.edu/~ats/projects/lp/doc/jay/yydebug/package-summary.html
Source0: http://www.cs.rit.edu/~ats/projects/lp/doc/jay/yydebug/doc-files/src.jar
Patch0: clean-up-broken-makefile.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=561452
Patch1: add-javadocs-to-makefile.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: java-devel
BuildRequires: jpackage-utils
Requires: java
Requires: jpackage-utils
BuildArch: noarch
%description
jay/yydebug supports tracing and animation for a Java-based parser generated
by jay. An implementation of yyDebug is passed as an additional argument to
yyparse() to trace a Java-based parser generated by jay with option -t set.
yyDebugAdapter produces one-line messages, by default to standard output.
The messages are designed to be filtered by a program such as grep. yyAnim
provides an animation of the parsing process
%package javadoc
Summary: Javadocs for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
Requires: jpackage-utils
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n jay/yydebug
%patch0
%patch1
find ./ -name '*.jar' -exec rm -f '{}' \;
find ./ -name '*.class' -exec rm -f '{}' \;
%build
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp yydebug.jar $RPM_BUILD_ROOT%{_javadir}/yydebug-%{version}.jar
ln -s %{_javadir}/yydebug-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/yydebug.jar
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -rp javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_javadir}/yydebug-%{version}.jar
%{_javadir}/yydebug.jar
%doc package.html
%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/%{name}
%changelog
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu May 06 2010 Mohammed Morsi <mmorsi@redhat.com> - 1.1.0-5
- added my name which was missing in this changelog
* Wed May 05 2010 Mohammed Morsi <mmorsi@redhat.com> - 1.1.0-4
- added Alexander Kurtakov's patch to generate javadocs
- added javadoc bits to the spec
* Tue May 04 2010 Mohammed Morsi <mmorsi@redhat.com> - 1.1.0-3
- BSD license retrieved from 'jay' superproject
- http://svn.codehaus.org/jruby/trunk/jay/jay.1
* Tue Apr 27 2010 Mohammed Morsi <mmorsi@redhat.com> - 1.1.0-2
- removed gcj bits
* Thu Jan 21 2009 Mohammed Morsi <mmorsi@redhat.com> - 1.1.0-1
- Initial build.