File jcodings.spec of Package jcodings
#
# spec file for package jcodings (Version 1.0.2)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global git_commit 8a3ca9e
%global cluster jruby
# Prevent brp-java-repack-jars from being run.
%define __jar_repack %{nil}
Name: jcodings
Version: 1.0.2
Release: 1
Summary: Java-based codings helper classes for Joni and JRuby
Group: Development/Libraries/Java
License: MIT
Url: http://github.com/%{cluster}/%{name}
Source0: %{url}/tarball/%{version}/%{cluster}-%{name}-%{git_commit}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: ant
BuildRequires: java-devel
BuildRequires: jpackage-utils
Requires: java
Requires: jpackage-utils
%description
Java-based codings helper classes for Joni and JRuby.
%prep
%setup -q -n %{cluster}-%{name}-%{git_commit}
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;
%build
echo "See %{url} for more info about the %{name} project." > README.txt
%{ant}
%install
%__mkdir_p %{buildroot}%{_javadir}
%__cp -p target/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
pushd %{buildroot}%{_javadir}/
%__ln_s %{name}-%{version}.jar %{name}.jar
popd
%clean
%__rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_javadir}/*
%doc README.txt
%changelog