File cryptix-asn1.spec of Package cryptix-asn1

# spec file for package cryptix-asn1 (Version 20011119)
# Copyright (c) 2009 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

# 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:        269
Summary:        Cryptix ASN1 Implementation
License:        BSD-3-Clause
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
License:        BSD-3-Clause
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

* 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