commit
9504e6e7c4
BIN
1.0.8.tar.gz
Normal file
BIN
1.0.8.tar.gz
Normal file
Binary file not shown.
49
bytelist.spec
Normal file
49
bytelist.spec
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
%define __jar_repack %{nil}
|
||||||
|
|
||||||
|
Name: bytelist
|
||||||
|
Version: 1.0.8
|
||||||
|
Release: 17
|
||||||
|
Summary: Java library for lists of bytes
|
||||||
|
License: CPL or GPLv2+ or LGPLv2+
|
||||||
|
URL: http://github.com/jruby/bytelist
|
||||||
|
Source0: https://github.com/jruby/bytelist/archive/%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: ant, ant-junit, java-devel, jcodings, jpackage-utils, javapackages-local, junit
|
||||||
|
Requires: java-headless, jcodings, jpackage-utils
|
||||||
|
|
||||||
|
%description
|
||||||
|
This module is a small java library for manipulating lists of bytes.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
find \( -name "*.jar" -o -name "*.class" \) -delete
|
||||||
|
|
||||||
|
%build
|
||||||
|
echo "See %{url} for more info about the %{name} project." > README.txt
|
||||||
|
|
||||||
|
export CLASSPATH=$(build-classpath junit jcodings)
|
||||||
|
install -d lib
|
||||||
|
%ant
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d $RPM_BUILD_ROOT%{_javadir}
|
||||||
|
cp -p lib/%{name}-1.0.2.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||||
|
|
||||||
|
install -d $RPM_BUILD_ROOT%{_mavenpomdir}
|
||||||
|
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
||||||
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
||||||
|
|
||||||
|
%check
|
||||||
|
export CLASSPATH=$(build-classpath junit jcodings)
|
||||||
|
%ant test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.txt
|
||||||
|
%{_javadir}/*
|
||||||
|
%{_mavenpomdir}/*
|
||||||
|
%{_datadir}/maven-metadata/%{name}.xml
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Feb 11 2020 Shuaishuai Song <songshuaishuai2@huawei.com> - 1.0.8-17
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user