Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37043113
en ru br
ALT Linux repos
S:1.0.8-alt3_22jpp11

Group :: Development/Other
RPM: bytelist

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Group: Development/Other
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-java
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%global  git_commit d0ec879
%global  cluster jruby

# Prevent brp-java-repack-jars from being run.

%define __jar_repack %{nil}

Name:           bytelist
Version:        1.0.8
Release:        alt3_22jpp11
Summary:        A java library for lists of bytes

License:        CPL or GPLv2+ or LGPLv2+
URL:            http://github.com/%{cluster}/%{name}
Source0:        http://download.github.com/%{cluster}-%{name}-%{version}-0-g%{git_commit}.tar.gz

Patch0:         00-set-javac-1.8-source-target.patch

BuildArch:      noarch

BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  jcodings
BuildRequires:  jpackage-utils
BuildRequires:  javapackages-local
BuildRequires:  junit

Requires:       jcodings
Requires:       jpackage-utils
Source44: import.info


%description
A small java library for manipulating lists of bytes.


%prep
%setup -q -n %{cluster}-%{name}-%{git_commit}
%patch0 -p1

find -name '*.class' -delete
find -name '*.jar' -delete

# install in _javadir

%mvn_file org.jruby.extras:%{name} %{name}

%build
echo "See %{url} for more info about the %{name} project." > README.txt

export CLASSPATH=$(build-classpath junit jcodings)
mkdir -p lib
%ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8

%mvn_artifact pom.xml lib/%{name}-1.0.2.jar

%install
%mvn_install

%check
export CLASSPATH=$(build-classpath junit jcodings)
%ant test

%files -f .mfiles
%doc README.txt

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin