61 lines
1.8 KiB
RPMSpec
61 lines
1.8 KiB
RPMSpec
Name: mchange-commons
|
|
Version: 0.2.11
|
|
Release: 8
|
|
Summary: A collection of general purpose utilities for c3p0
|
|
License: LGPLv2 or EPL
|
|
URL: https://github.com/swaldman/mchange-commons-java
|
|
Source0: https://github.com/swaldman/mchange-commons-java/archive/mchange-commons-java-0.2.11/mchange-commons-0.2.11.tar.gz
|
|
Source1: https://raw.github.com/willb/climbing-nemesis/master/climbing-nemesis.py
|
|
|
|
Patch0000: mchange-no-tests.patch
|
|
|
|
BuildRequires: sbt ivy-local maven-local log4j12 slf4j typesafe-config python2 python-unversioned-command
|
|
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
General tool, part of c3p0.
|
|
|
|
%package help
|
|
Summary: API documentation for mchange-commons
|
|
Provides: %{name}-javadoc = %{version}-%{release}
|
|
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
|
|
|
%description help
|
|
The help for mchange-commons to use.
|
|
|
|
|
|
%prep
|
|
%autosetup -n mchange-commons-java-mchange-commons-java-0.2.11 -p1
|
|
|
|
find -name '*.class' -delete
|
|
find -name '*.jar' -delete
|
|
|
|
cp %{SOURCE1} .
|
|
chmod 755 climbing-nemesis.py
|
|
sed -i -e 's/0.13.6/0.13.1/' project/build.properties
|
|
cp -pr /usr/share/sbt/ivy-local .
|
|
|
|
%build
|
|
cp -r /usr/share/java/jline /usr/share/java/jline2
|
|
./climbing-nemesis.py com.typesafe config any ivy-local --version 1.2.1
|
|
./climbing-nemesis.py log4j log4j 12 ivy-local --version 1.2.14
|
|
./climbing-nemesis.py org.slf4j slf4j-api any ivy-local --version 1.7.5
|
|
|
|
export SBT_BOOT_DIR=$PWD/boot
|
|
export SBT_IVY_DIR=$PWD/ivy-local
|
|
sbt package make-pom doc
|
|
|
|
%mvn_artifact target/mchange-commons-java-%{version}.pom target/mchange-commons-java-%{version}.jar
|
|
|
|
%install
|
|
%mvn_install -J target/api
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE*
|
|
|
|
%files help -f .mfiles-javadoc
|
|
|
|
%changelog
|
|
* Thu Nov 14 2019 wangye <wangye54@huawei.com> - 0.2.11-8
|
|
- Package init |