rpms/antlr3/devel antlr-clean-generated, NONE, 1.1 antlr3.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Colin Walters (walters) fedora-extras-commits at redhat.com
Tue Jul 1 17:42:52 UTC 2008


Author: walters

Update of /cvs/pkgs/rpms/antlr3/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7424/devel

Modified Files:
	.cvsignore sources 
Added Files:
	antlr-clean-generated antlr3.spec import.log 
Log Message:
Initial import



--- NEW FILE antlr-clean-generated ---
#!/usr/bin/python
# Clean out files which look to have been generated by antlr
# Author: Colin Walters <walters at verbum.org>
# This file is hereby placed into the public domain.

import os,sys,re

_antlr_compiled_re = re.compile(r'// \$ANTLR.*:.*->.*\$$')

def clean_antlr_generated(basedir):
  for (dpath,subdirs,fnames) in os.walk(basedir):
    for fname in fnames:
      fpath = os.path.join(dpath, fname)
      f = open(fpath)
      first = f.readline()
      f.close()
      if _antlr_compiled_re.match(first):
        print "Deleting antlr-compiled %s" % (fpath,)
        os.unlink(fpath)

if __name__ == '__main__':
  basedir = sys.argv[1]
  clean_antlr_generated(basedir)


--- NEW FILE antlr3.spec ---
Summary: ANother Tool for Language Recognition
Name: antlr3
Version: 3.0.1
Release: 2%{?dist}
URL: http://www.antlr.org/
Source0: http://www.antlr.org/download/antlr-3.0.1.tar.gz
# Utility file, in conversation with upstream about this
Source1: antlr-clean-generated
License: BSD
Group: Development/Libraries
BuildArch: noarch
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: java-devel >= 1:1.6.0
# For cleaner script
BuildRequires: python
BuildRequires: ant, stringtemplate, ant-antlr, ant-junit
BuildRequires: jpackage-utils
Requires: jpackage-utils

%description
ANother Tool for Language Recognition, is a language tool
that provides a framework for constructing recognizers,
interpreters, compilers, and translators from grammatical 
descriptions containing actions in a variety of target languages.

%prep
%setup -q -n antlr-%{version}

%build
rm -f lib/*.jar
build-jar-repository -s -p lib stringtemplate
# Clean out generated files upstream includes
python %{SOURCE1} .
# Build
ant

%install
rm -rf $RPM_BUILD_ROOT
install -D build/antlr.jar $RPM_BUILD_ROOT%{_datadir}/java/antlr3.jar

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README.txt LICENSE.txt
%{_datadir}/java/*.jar

%changelog
* Fri Jun 27 2008 Colin Walters <walters at redhat.com> - 3.0.1-2
- Fix some BRs

* Sun Apr 06 2008 Colin Walters <walters at redhat.com> - 3.0.1-1
- First version


--- NEW FILE import.log ---
antlr3-3_0_1-2_fc9:HEAD:antlr3-3.0.1-2.fc9.src.rpm:1214934104


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/antlr3/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	1 Jul 2008 16:51:47 -0000	1.1
+++ .cvsignore	1 Jul 2008 17:42:02 -0000	1.2
@@ -0,0 +1 @@
+antlr-3.0.1.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/antlr3/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	1 Jul 2008 16:51:47 -0000	1.1
+++ sources	1 Jul 2008 17:42:02 -0000	1.2
@@ -0,0 +1 @@
+3368332e3ecec632db667cb5cdfdbf6f  antlr-3.0.1.tar.gz




More information about the scm-commits mailing list