|
|
212552 |
Name: jackson
|
|
|
212552 |
Version: 1.9.4
|
|
|
5baf11 |
Release: 7%{?dist}
|
|
|
212552 |
Summary: Jackson Java JSON-processor
|
|
|
212552 |
|
|
|
212552 |
Group: Development/Libraries
|
|
|
212552 |
License: ASL 2.0 or LGPLv2
|
|
|
212552 |
URL: http://jackson.codehaus.org
|
|
|
212552 |
|
|
|
212552 |
Source0: http://jackson.codehaus.org/1.9.4/jackson-src-1.9.4.tar.gz
|
|
|
212552 |
|
|
|
212552 |
# Build plain jar files instead of OSGi bundles in order to avoid depending on
|
|
|
212552 |
# BND:
|
|
|
212552 |
Patch0: %{name}-build-plain-jars-instead-of-osgi-bundles.patch
|
|
|
212552 |
|
|
|
212552 |
# Don't require a repackaged version of ASM:
|
|
|
212552 |
Patch1: %{name}-dont-require-repackaged-asm.patch
|
|
|
212552 |
|
|
|
212552 |
# Don't bundle the ASM classes:
|
|
|
212552 |
Patch2: %{name}-dont-bundle-asm.patch
|
|
|
212552 |
|
|
|
212552 |
BuildArch: noarch
|
|
|
212552 |
|
|
|
212552 |
Requires: java
|
|
|
212552 |
Requires: jpackage-utils
|
|
|
212552 |
Requires: joda-time >= 1.6.2
|
|
|
212552 |
Requires: stax2-api >= 3.1.1
|
|
|
212552 |
Requires: jsr-311 >= 1.1.1
|
|
|
212552 |
Requires: objectweb-asm >= 3.3
|
|
|
212552 |
|
|
|
212552 |
BuildRequires: jpackage-utils
|
|
|
212552 |
BuildRequires: java-devel
|
|
|
212552 |
BuildRequires: ant >= 1.8.2
|
|
|
212552 |
BuildRequires: joda-time >= 1.6.2
|
|
|
212552 |
BuildRequires: stax2-api >= 3.1.1
|
|
|
212552 |
BuildRequires: jsr-311 >= 1.1.1
|
|
|
212552 |
BuildRequires: objectweb-asm >= 3.3
|
|
|
212552 |
BuildRequires: cglib >= 2.2
|
|
|
212552 |
BuildRequires: groovy >= 1.8.5
|
|
|
212552 |
|
|
|
212552 |
|
|
|
212552 |
%description
|
|
|
212552 |
JSON processor (JSON parser + JSON generator) written in Java. Beyond basic
|
|
|
212552 |
JSON reading/writing (parsing, generating), it also offers full node-based Tree
|
|
|
212552 |
Model, as well as full OJM (Object/Json Mapper) data binding functionality.
|
|
|
212552 |
|
|
|
212552 |
|
|
|
212552 |
%package javadoc
|
|
|
212552 |
Summary: Javadocs for %{name}
|
|
|
212552 |
Group: Documentation
|
|
|
212552 |
Requires: jpackage-utils
|
|
|
212552 |
|
|
|
212552 |
|
|
|
212552 |
%description javadoc
|
|
|
212552 |
This package contains javadoc for %{name}.
|
|
|
212552 |
|
|
|
212552 |
|
|
|
212552 |
%prep
|
|
|
212552 |
%setup -q -n %{name}-src-%{version}
|
|
|
212552 |
%patch0 -p1
|
|
|
212552 |
%patch1 -p1
|
|
|
212552 |
%patch2 -p1
|
|
|
212552 |
|
|
|
212552 |
# Remove all the binary jar files, as the packaging policies
|
|
|
212552 |
# forbids using them:
|
|
|
212552 |
find . -type f -name '*.jar' -exec rm {} \;
|
|
|
212552 |
|
|
|
212552 |
# Remove some tests to avoid additional dependencies:
|
|
|
212552 |
rm src/test/org/codehaus/jackson/map/interop/TestHibernate.java
|
|
|
212552 |
rm src/perf/perf/TestJsonPerf.java
|
|
|
212552 |
rm src/test/org/codehaus/jackson/map/interop/TestGoogleCollections.java
|
|
|
212552 |
|
|
|
212552 |
# Make symbolic links to the jar files expected by the ant build
|
|
|
212552 |
# scripts:
|
|
|
212552 |
ln -s $(build-classpath joda-time) lib/ext/joda-time.jar
|
|
|
212552 |
ln -s $(build-classpath stax2-api) lib/xml/sta2-api.jar
|
|
|
212552 |
ln -s $(build-classpath jsr-311) lib/jaxrs/jsr-311.jar
|
|
|
212552 |
ln -s $(build-classpath objectweb-asm/asm) lib/ext/asm/asm.jar
|
|
|
212552 |
ln -s $(build-classpath objectweb-asm/asm) lib/repackaged/jackson-asm.jar
|
|
|
212552 |
ln -s $(build-classpath cglib) lib/ext/cglib/cglib-nodep.jar
|
|
|
212552 |
ln -s $(build-classpath groovy) lib/ext/groovy/groovy.jar
|
|
|
212552 |
ln -s $(build-classpath junit) lib/junit/junit.jar
|
|
|
212552 |
|
|
|
212552 |
|
|
|
212552 |
%build
|
|
|
212552 |
ant dist
|
|
|
212552 |
|
|
|
212552 |
|
|
|
212552 |
%install
|
|
|
212552 |
|
|
|
212552 |
# Create the directories for the jar and pom files:
|
|
|
212552 |
mkdir -p %{buildroot}%{_javadir}/jackson
|
|
|
212552 |
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
212552 |
|
|
|
212552 |
# For each jar file install it and its pom:
|
|
|
212552 |
jars='
|
|
|
212552 |
jackson-core-asl
|
|
|
212552 |
jackson-mapper-asl
|
|
|
212552 |
jackson-xc
|
|
|
212552 |
jackson-smile
|
|
|
212552 |
jackson-mrbean
|
|
|
212552 |
jackson-jaxrs
|
|
|
212552 |
'
|
|
|
212552 |
for jar in ${jars}
|
|
|
212552 |
do
|
|
|
212552 |
cp -p dist/${jar}-%{version}.jar %{buildroot}%{_javadir}/jackson/${jar}.jar
|
|
|
212552 |
install -pm 644 dist/${jar}-%{version}.pom %{buildroot}/%{_mavenpomdir}/JPP.jackson-${jar}.pom
|
|
|
212552 |
%add_maven_depmap JPP.jackson-${jar}.pom jackson/${jar}.jar
|
|
|
212552 |
done
|
|
|
212552 |
|
|
|
212552 |
# Javadoc files:
|
|
|
212552 |
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
212552 |
cp -rp dist/javadoc/* %{buildroot}%{_javadocdir}/%{name}/.
|
|
|
212552 |
|
|
|
212552 |
|
|
|
212552 |
%files
|
|
|
212552 |
%{_mavenpomdir}/*
|
|
|
212552 |
%{_mavendepmapfragdir}/*
|
|
|
212552 |
%{_javadir}/%{name}/*
|
|
|
212552 |
%doc README.txt
|
|
|
212552 |
%doc release-notes
|
|
|
212552 |
|
|
|
212552 |
|
|
|
212552 |
%files javadoc
|
|
|
212552 |
%{_javadocdir}/%{name}
|
|
|
212552 |
%doc README.txt
|
|
|
212552 |
%doc release-notes
|
|
|
212552 |
|
|
|
212552 |
|
|
|
212552 |
%changelog
|
|
|
5baf11 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.9.4-7
|
|
|
5baf11 |
- Mass rebuild 2013-12-27
|
|
|
5baf11 |
|
|
|
212552 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.4-6
|
|
|
212552 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
212552 |
|
|
|
212552 |
* Tue Jul 24 2012 Juan Hernandez <juan.hernandez@redhat.com> - 1.9.4-5
|
|
|
212552 |
- Don't bundle ASM classes (#842603)
|
|
|
212552 |
|
|
|
212552 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.4-4
|
|
|
212552 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
212552 |
|
|
|
212552 |
* Mon Apr 30 2012 Juan Hernandez <juan.hernandez@redhat.com> 1.9.4-3
|
|
|
212552 |
- Remove the build dependency on maven ant tasks
|
|
|
212552 |
|
|
|
212552 |
* Wed Feb 15 2012 Juan Hernandez <juan.hernandez@redhat.com> 1.9.4-2
|
|
|
212552 |
- Updated license to ASL 2.0 or LGPLv2
|
|
|
212552 |
- Removed macros from the source URL
|
|
|
212552 |
|
|
|
212552 |
* Mon Feb 13 2012 Juan Hernandez <juan.hernandez@redhat.com> 1.9.4-1
|
|
|
212552 |
- Update to upstream version 1.9.4
|
|
|
212552 |
|
|
|
212552 |
* Mon Feb 13 2012 Juan Hernandez <juan.hernandez@redhat.com> 1.6.3-3
|
|
|
212552 |
- Include jackson-jarxrs.jar in the package
|
|
|
212552 |
|
|
|
212552 |
* Mon Feb 13 2012 Juan Hernandez <juan.hernandez@redhat.com> 1.6.3-2
|
|
|
212552 |
- Don't use absolute references but build-classpath
|
|
|
212552 |
|
|
|
212552 |
* Thu Feb 9 2012 Juan Hernandez <juan.hernandez@redhat.com> 1.6.3-1
|
|
|
212552 |
- Initial packaging
|
|
|
212552 |
|