71 lines
1.9 KiB
RPMSpec
71 lines
1.9 KiB
RPMSpec
Name: java-rosetta
|
|
Version: 1.0.2
|
|
Release: 1mamba
|
|
Summary: A common base to build a graphical console
|
|
Group: Development/Libraries/Java
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: gil <puntogil@libero.it>
|
|
URL: http://dev.artenum.com/projects/JRosetta/
|
|
# http://dev.artenum.com/projects/JRosetta/download/JRosetta-1-0-2/data/src-gpl?action=download&nodecorator
|
|
Source: jrosetta-%{version}-gpl.zip
|
|
License: GPL
|
|
BuildRequires: apache-ant
|
|
BuildRequires: java-gcj-compat
|
|
BuildRequires: jpackage-utils
|
|
Requires: java-gcj-compat
|
|
Requires: jpackage-utils
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
JRosetta provides a common base for graphical component that could be used
|
|
to build a graphical console in Swing with the latest requirements, such as
|
|
command history, completion and so on for instance for scripting language
|
|
or command line.
|
|
|
|
%prep
|
|
%setup -q -n jrosetta-%{version}-gpl
|
|
|
|
cp -p CHANGE.txt CHANGE.txt.temp
|
|
sed -i -e 's/\r//' CHANGE.txt
|
|
touch -r CHANGE.txt.temp CHANGE.txt
|
|
rm CHANGE.txt.temp
|
|
|
|
%build
|
|
|
|
unset JAVA_HOME
|
|
export JAVA_HOME=/usr/lib/jvm/jdk-gcj
|
|
ant make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
|
|
|
install -pm 644 dist/jrosetta-API.jar \
|
|
%{buildroot}%{_javadir}/jrosetta-API-%{version}.jar
|
|
install -pm 644 dist/jrosetta-engine.jar \
|
|
%{buildroot}%{_javadir}/jrosetta-engine-%{version}.jar
|
|
|
|
(
|
|
cd %{buildroot}%{_javadir}
|
|
for jar in *-%{version}.jar; do
|
|
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
|
|
done
|
|
)
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_javadir}/jrosetta-API-%{version}.jar
|
|
%{_javadir}/jrosetta-API.jar
|
|
%{_javadir}/jrosetta-engine-%{version}.jar
|
|
%{_javadir}/jrosetta-engine.jar
|
|
%doc CHANGE.txt COPYRIGHT LICENSE.txt
|
|
|
|
%changelog
|
|
* Fri Jan 21 2011 gil <puntogil@libero.it> 1.0.2-1mamba
|
|
- package created by autospec
|