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

Andrew Overholt overholt at fedoraproject.org
Fri Apr 17 16:59:24 UTC 2009


Author: overholt

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

Modified Files:
	.cvsignore sources 
Added Files:
	import.log json.spec 
Log Message:
Initial import of package.


--- NEW FILE import.log ---
json-2-1_fc10:HEAD:json-2-1.fc10.src.rpm:1239987393


--- NEW FILE json.spec ---
# Copyright (c) 2000-2009, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:       json
Summary:    JavaScript Object Notation
URL:        http://www.json.org/java/index.html
Version:    2
Release:    1%{?dist}
License:    ASL 2.0
Group:      Development/Libraries
BuildArch:  noarch
Source0:    http://www.json.org/java/apache.zip
BuildRequires:  jpackage-utils
BuildRequires:  java-devel

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
JSON (JavaScript Object Notation) is a lightweight data-interchange format.
It is based on a subset of the JavaScript Programming Language, Standard
ECMA-262 3rd Edition - December 1999.  JSON is a text format that is 
completely language independent but uses conventions that are familiar to 
programmers of the C-family of languages including C, C++, C#, Java, 
JavaScript, Perl, Python, and many others.

%package javadoc
Summary:    Javadoc for %{name}
Group:      Documentation

%description javadoc
%{summary}.

%prep
%setup -q -c -n %{name}-%{version}
mkdir -p src/org
mv apache src/org

%build
export JAVA_HOME=%{_jvmdir}/java
mkdir -p target/classes
$JAVA_HOME/bin/javac -d target/classes $(find src -name "*.java")
$JAVA_HOME/bin/jar cf target/%{name}.jar -C target/classes org
mkdir -p target/site/apidocs
$JAVA_HOME/bin/javadoc -d target/site/apidocs $(find src -name "*.java")

%install
rm -rf $RPM_BUILD_ROOT
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 target/%{name}.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)

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

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

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

%changelog
* Tue Apr 14 2009 Andrew Overholt <overholt at redhat.com> 2-1
- Some cleanups for Fedora (license, version, tabs vs. spaces).
- Remove maven POM file of unknown origin.
- Use APL-licensed source zip.

* Fri Jan 23 2009 Ralph Apel <r.apel at r-apel.de> 0:20080425-1.jpp5
- First release


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/json/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	16 Apr 2009 04:32:19 -0000	1.1
+++ .cvsignore	17 Apr 2009 16:58:53 -0000	1.2
@@ -0,0 +1 @@
+apache.zip


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/json/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	16 Apr 2009 04:32:19 -0000	1.1
+++ sources	17 Apr 2009 16:58:53 -0000	1.2
@@ -0,0 +1 @@
+8f822e604866f92fde5c7b3f67b66809  apache.zip




More information about the fedora-extras-commits mailing list