rpms/jFormatString/devel import.log, NONE, 1.1 jFormatString-build.patch, NONE, 1.1 jFormatString.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Jerry James jjames at fedoraproject.org
Thu Mar 5 23:15:30 UTC 2009


Author: jjames

Update of /cvs/pkgs/rpms/jFormatString/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12872/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log jFormatString-build.patch jFormatString.spec 
Log Message:
Initial import.



--- NEW FILE import.log ---
jFormatString-0-0_2_20081016svn_fc10:HEAD:jFormatString-0-0.2.20081016svn.fc10.src.rpm:1236294788

jFormatString-build.patch:

--- NEW FILE jFormatString-build.patch ---
diff -dur jformatstring.ORIG/jFormatString/build.xml jformatstring/jFormatString/build.xml
--- jformatstring.ORIG/jFormatString/build.xml	2008-10-15 23:22:04.000000000 -0600
+++ jformatstring/jFormatString/build.xml	2008-12-09 11:02:19.000000000 -0700
@@ -2,9 +2,7 @@
 <project name="jFormatString" default="build">
 
 
-<path id="compileClasspath">
-                <fileset dir="lib"/>
-    </path>
+<path id="compileClasspath" path="/usr/share/java/junit4.jar"/>
 
 	<target name="build" depends="clean,jarFile"/>
 


--- NEW FILE jFormatString.spec ---
%define with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}

Name:           jFormatString
Version:        0
Release:        0.2.20081016svn%{?dist}
Summary:        Java format string compile-time checker

Group:          Development/Libraries/Java
License:        GPLv2 with exceptions
URL:            https://jformatstring.dev.java.net/
# There has been no official release yet.  This is a snapshot of the Subversion
# repository as of 16 Oct 2008.  Use the following commands to generate the
# tarball:
#   svn export -r 8 https://jformatstring.dev.java.net/svn/jformatstring/trunk \
#     jformatstring --username guest
#   (The password is "guest".)
#   tar -cjvf jFormatString-0.tar.bz2 jformatstring
Source0:        %{name}-%{version}.tar.bz2
# This patch has not been sent upstream, since it is Fedora specific.  This
# gives the build system the path to the appropriate junit jar.
Patch0:         %{name}-build.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  ant, java-devel, java-javadoc, jpackage-utils, junit4
Requires:       java, jpackage-utils

%if %{with_gcj}
BuildRequires:  java-gcj-compat-devel >= 1.0.31
Requires(post): java-gcj-compat >= 1.0.31
Requires(postun): java-gcj-compat >= 1.0.31
%else
BuildArch:      noarch
%endif

%description
This project is derived from Sun's implementation of java.util.Formatter.  It
is designed to allow compile time checks as to whether or not a use of a
format string will be erroneous when executed at runtime.

%package javadoc
Summary:        Javadoc documentation for %{name}
Group:          Development/Documentation
Requires:       %{name} = %{version}-%{release}, java-javadoc

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jformatstring
%patch0 -p1

%build
# Build the JAR
cd jFormatString
ant
cd ..

# Create the javadocs
mkdir docs
javadoc -d docs -source 1.5 -sourcepath jFormatString/src/java \
  -classpath jFormatString/build/classes:%{_javadir}/junit4.jar \
  -link file://%{_javadocdir}/java edu.umd.cs.findbugs.formatStringChecker

%install
rm -rf $RPM_BUILD_ROOT

# JAR files
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p %{name}/build/%{name}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

# Javadocs
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -rp docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

# Precompiled bits
%if %{with_gcj}
%{_bindir}/aot-compile-rpm
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%if %{with_gcj}
if [ -x %{_bindir}/rebuild-gcj-db ]; then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%if %{with_gcj}
if [ -x %{_bindir}/rebuild-gcj-db ]; then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%files
%defattr(-,root,root,-)
%doc www/index.html jFormatString/LICENSE
%{_javadir}/%{name}*
%if %{with_gcj}
%{_libdir}/gcj/%{name}
%endif

%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/%{name}*

%changelog
* Thu Mar  5 2009 Jerry James <loganjerry at gmail.com> - 0-0.2.20081016svn
- Clean up minor issues raised in package review

* Tue Dec  9 2008 Jerry James <loganjerry at gmail.com> - 0-0.1.20081016svn
- Initial RPM


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/jFormatString/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	5 Mar 2009 20:34:47 -0000	1.1
+++ .cvsignore	5 Mar 2009 23:14:59 -0000	1.2
@@ -0,0 +1 @@
+jFormatString-0.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/jFormatString/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	5 Mar 2009 20:34:47 -0000	1.1
+++ sources	5 Mar 2009 23:14:59 -0000	1.2
@@ -0,0 +1 @@
+0bd082f8d7000eeb5634fa7d63b34ee0  jFormatString-0.tar.bz2




More information about the fedora-extras-commits mailing list