File cryptix-asn1.spec of Package cryptix-asn1

# spec file for package cryptix-asn1 (Version 20011119)
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via

# norootforbuild

Name:           cryptix-asn1
BuildRequires:  ant cryptix java2-devel-packages xml-commons-apis
%define pname		Cryptix-asn1
%define name		cryptix-asn1
%define version		20011119
%define snapshot	20011119
%define release		5jpp
%define section		free
Version:        20011119
Release:        23
Summary:        Cryptix ASN1 Implementation
License:        BSD
Group:          Development/Libraries/Java
Source0:        %{pname}-%{snapshot}.tar.gz
Source1:        %{name}.build.script
Requires:       cryptix
BuildArch:	noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Java asn1 implementation for Cryptix.

%package javadoc
PreReq:         coreutils
Group:          Development/Libraries/Java
Summary:        Javadoc for cryptix-asn1

%description javadoc
Javadoc documentation for the asn1 implementation for Cryptix.

%setup -n %{pname}-%{snapshot}
cp %{SOURCE1} build.xml
# remove all binary libs
rm -fr $(find . -name "*.jar")

if ! grep -q "javac.*source=" build.xml ; then
  perl -p -i -e 's|<javac |<javac source=\"1.4\" |' build.xml
  perl -p -i -e 's|<javadoc |<javadoc source=\"1.4\" |' build.xml
ant clean jar javadoc

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 build/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}


%doc cryptix/asn1/docs/*

%files javadoc

%changelog -n cryptix-asn1
* Fri Sep 15 2006 -
- set source=1.4 for java
* Wed Jan 25 2006 -
- converted neededforbuild to BuildRequires
* Wed Jul 27 2005 -
- Adjustments in the spec file.
* Mon Jul 18 2005 -
- Current version 20011119 from
* Thu Sep 02 2004 -
- Initial package created with version 20011119 (JPackage 1.5)
openSUSE Build Service is sponsored by