rpms/json_simple/devel import.log, NONE, 1.1 json_simple.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

stevetraylen stevetraylen at fedoraproject.org
Sun Oct 18 01:40:13 UTC 2009


Author: stevetraylen

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

Modified Files:
	.cvsignore sources 
Added Files:
	import.log json_simple.spec 
Log Message:
Import rhbz#521895



--- NEW FILE import.log ---
json_simple-1_1-2_fc11:HEAD:json_simple-1.1-2.fc11.src.rpm:1255829929


--- NEW FILE json_simple.spec ---
%global with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}

Name:           json_simple
Version:        1.1
Release:        2%{?dist}
Summary:        Simple Java toolkit for JSON

Group:          System Environment/Libraries
License:        ASL 2.0
URL:            http://code.google.com/p/json-simple/
Source0:        http://json-simple.googlecode.com/files/json_simple-1.1-all.zip
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%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

BuildRequires:  jpackage-utils
BuildRequires:  java-devel
BuildRequires:  ant

Requires:       jpackage-utils
Requires:       java

%description
JSON.simple is a simple Java toolkit for JSON. You can use JSON.simple 
to encode or decode JSON text. 
  * Full compliance with JSON specification (RFC4627) and reliable 
  * Provides multiple functionalities such as encode, decode/parse 
    and escape JSON text while keeping the library lightweight 
  * Flexible, simple and easy to use by reusing Map and List interfaces 
  * Supports streaming output of JSON text 
  * Stoppable SAX-like interface for streaming input of JSON text 
  * Heap based parser 
  * High performance (see performance testing) 
  * No dependency on external libraries 
  * Both of the source code and the binary are JDK1.2 compatible 

%prep
%setup -q -n json_simple-%{version}-all
find . -name '*.jar' -exec rm -f '{}' \;
# All the files have dos line endings, remove them.
find . -type f -exec %{__sed} -i 's/\r//' {} \;

%build
%ant 
%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p  lib/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

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

%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


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%{_javadir}/*

%if %{with_gcj}
%attr(-,root,root) %{_libdir}/gcj/%{name}
%endif

%doc ChangeLog.txt LICENSE.txt test test.xml AUTHORS.txt README.txt

%changelog
* Thu Oct 15 2009 Steve Traylen <steve.traylen at cern.ch> - 1.1-2
- Add AUTHORS.txt and README.txt files.

* Tue Sep 8 2009 Steve Traylen <steve.traylen at cern.ch> - 1.1-1
- Initial build.



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/json_simple/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	17 Oct 2009 20:42:44 -0000	1.1
+++ .cvsignore	18 Oct 2009 01:40:08 -0000	1.2
@@ -0,0 +1 @@
+json_simple-1.1-all.zip


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/json_simple/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	17 Oct 2009 20:42:44 -0000	1.1
+++ sources	18 Oct 2009 01:40:08 -0000	1.2
@@ -0,0 +1 @@
+bc5fabbac25d6b541d1b277f853f4a1e  json_simple-1.1-all.zip




More information about the scm-commits mailing list