158 lines
4.6 KiB
RPMSpec
158 lines
4.6 KiB
RPMSpec
|
%define with_gcj 1
|
||
|
%define javahome %{_jvmdir}/jdk
|
||
|
|
||
|
Name: java-jfree-librepository
|
||
|
Version: 1.1.3
|
||
|
Release: 1mamba
|
||
|
Summary: a simple abstraction layer to access bulk content that is organized in a hierarchical layer
|
||
|
Group: Development/Libraries/Java
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://reporting.pentaho.org/
|
||
|
# http://sourceforge.net/projects/jfreereport/
|
||
|
# cvs -d:pserver:anonymous@jfreereport.cvs.sourceforge.net:/cvsroot/jfreereport login
|
||
|
# cvs -z3 -d:pserver:anonymous@jfreereport.cvs.sourceforge.net:/cvsroot/jfreereport co -P librepository
|
||
|
Source0: http://sourceforge.net/projects/jfreereport/files/02.%20Libraries/1.1.3-stable/librepository-1.1.3.zip
|
||
|
Patch0: java-jfree-librepository-1.1.3-build_properties.patch
|
||
|
License: LGPL
|
||
|
BuildRequires: ant-contribb3
|
||
|
BuildRequires: apache-ant
|
||
|
BuildRequires: jakarta-commons-logging
|
||
|
BuildRequires: java-glassfish-jaf
|
||
|
BuildRequires: java-glassfish-javamail
|
||
|
BuildRequires: java-jfree-libbase
|
||
|
BuildRequires: java-junit3
|
||
|
BuildRequires: jpackage-utils
|
||
|
Requires: java-jfree-libbase
|
||
|
Requires: jpackage-utils
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
LibRepository provides a simple abstraction layer to access bulk content that is organized in a hierarchical layer.
|
||
|
|
||
|
Unlike the JSR-000170, this library does not aim to solve all problems associated with content storages. The main purpose of LibRepository is to give users an astract view over an filesystem like structure so that content generator and content consumer do no longer have to make assumptions about where to store the generated content.
|
||
|
|
||
|
The repositories described here should not be used to store other things than BLOBs.
|
||
|
|
||
|
%if %with_gcj
|
||
|
%package gcj
|
||
|
Group: System/Libraries/Java
|
||
|
Summary: GCJ support for %{name}
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: java-gcj-compat
|
||
|
BuildRequires: libgcc
|
||
|
BuildRequires: libgcj4-devel
|
||
|
BuildRequires: libz-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
Requires: java-gcj-compat
|
||
|
|
||
|
%description gcj
|
||
|
JFree Base Services.
|
||
|
|
||
|
This package contains GCJ support for %{name}.
|
||
|
%endif
|
||
|
|
||
|
%package javadoc
|
||
|
Group: Documentation
|
||
|
Summary: Javadoc for %{name}
|
||
|
|
||
|
%description javadoc
|
||
|
LibRepository provides a simple abstraction layer to access bulk content that is organized in a hierarchical layer.
|
||
|
|
||
|
This package contains documentation for %{name}.
|
||
|
|
||
|
%prep
|
||
|
|
||
|
%setup -q -c -n librepository
|
||
|
%patch0
|
||
|
|
||
|
for j in $(find . -name "*.jar"); do
|
||
|
rm -rf $j
|
||
|
done
|
||
|
|
||
|
for txt in ChangeLog.txt licence-LGPL.txt README.txt; do
|
||
|
%{__perl} -pi -e 's/\r$//g' $txt
|
||
|
done
|
||
|
|
||
|
mkdir -p lib/ant-contrib
|
||
|
ln -sf $(build-classpath libbase) lib/libbase-%{version}.jar
|
||
|
ln -sf $(build-classpath commons-logging-api) lib/commons-logging-api-1.0.4.jar
|
||
|
ln -sf $(build-classpath junit-3.8.2) lib/junit.jar
|
||
|
ln -sf $(build-classpath glassfish-jaf) lib/activation-1.1.1.jar
|
||
|
ln -sf $(build-classpath glassfish-javamail-monolithic) lib/mail-1.4.1.jar
|
||
|
ln -s %{_javadir}/ant/* lib/ant-contrib
|
||
|
|
||
|
%build
|
||
|
|
||
|
unset JAVA_HOME
|
||
|
export JAVA_HOME=%{javahome}
|
||
|
export CLASSPATH=$(build-classpath ant-contribb3 commons-logging-api libbase junit-3.8.2 glassfish-jaf glassfish-javamail)
|
||
|
ant \
|
||
|
jar javadoc
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
mkdir -p %{buildroot}%{_javadir}
|
||
|
|
||
|
install -pm 644 dist/librepository-%{version}.jar %{buildroot}%{_javadir}/librepository-%{version}.jar
|
||
|
|
||
|
(
|
||
|
cd %{buildroot}%{_javadir}
|
||
|
for jar in *-%{version}*; do
|
||
|
ln -sf ${jar} ${jar/-%{version}/}
|
||
|
done
|
||
|
)
|
||
|
|
||
|
mkdir -p %{buildroot}%{_javadocdir}/librepository
|
||
|
cp -pr bin/javadoc/docs/api/* %{buildroot}%{_javadocdir}/librepository
|
||
|
|
||
|
%if %with_gcj
|
||
|
%{_bindir}/aot-compile-rpm
|
||
|
%endif
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_javadir}/librepository-%{version}.jar
|
||
|
%{_javadir}/librepository.jar
|
||
|
%doc ChangeLog.txt licence-LGPL.txt README.txt
|
||
|
|
||
|
%if %with_gcj
|
||
|
%post gcj
|
||
|
if [ -x %{_bindir}/rebuild-gcj-db ] ; then
|
||
|
%{_bindir}/rebuild-gcj-db
|
||
|
fi
|
||
|
|
||
|
%postun gcj
|
||
|
if [ -x %{_bindir}/rebuild-gcj-db ] ; then
|
||
|
%{_bindir}/rebuild-gcj-db
|
||
|
fi
|
||
|
|
||
|
%files gcj
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/gcj/java-jfree-librepository/librepository-%{version}.jar.db
|
||
|
%{_libdir}/gcj/java-jfree-librepository/librepository-%{version}.jar.so
|
||
|
%endif
|
||
|
|
||
|
%files javadoc
|
||
|
%defattr(-,root,root)
|
||
|
%{_javadocdir}/librepository
|
||
|
|
||
|
%changelog
|
||
|
* Sat Jan 22 2011 gil <puntogil@libero.it> 1.1.3-1mamba
|
||
|
- update to 1.1.3
|
||
|
|
||
|
* Wed Dec 09 2009 gil <puntogil@libero.it> 1.0.0-2mamba
|
||
|
- rebuilt
|
||
|
|
||
|
* Wed Dec 09 2009 gil <puntogil@libero.it> 1.0.0-1mamba
|
||
|
- update to 1.0.0
|
||
|
|
||
|
* Wed Dec 09 2009 gil <puntogil@libero.it> 0.1.1-1mamba
|
||
|
- package created by autospec
|