forked from pool/apache-ivy
Accepting request 30435 from home:lkundrak:java-for-push
Copy from home:lkundrak:java-for-push/apache-ivy via accept of submit request 30435 revision 1. Request was accepted with message: accepted OK OBS-URL: https://build.opensuse.org/request/show/30435 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-ivy?expand=0&rev=1
This commit is contained in:
commit
05fba852d6
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
apache-ivy-2.1.0-src.tar.gz
Normal file
3
apache-ivy-2.1.0-src.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1cfa375466522ae24b34aa8e285502be1c951ba3fa9081b3e1d9ae432f099408
|
||||
size 2407345
|
112
apache-ivy.spec
Normal file
112
apache-ivy.spec
Normal file
@ -0,0 +1,112 @@
|
||||
Name: apache-ivy
|
||||
Version: 2.1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Java-based dependency manager
|
||||
|
||||
Group: Development/Tools
|
||||
License: ASL 2.0
|
||||
URL: http://ant.apache.org/ivy/
|
||||
Source0: http://www.apache.org/dist/ant/ivy/2.1.0/%{name}-%{version}-src.tar.gz
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||
BuildArch: noarch
|
||||
|
||||
Provides: ivy = %{version}-%{release}
|
||||
|
||||
BuildRequires: ant
|
||||
BuildRequires: ant-nodeps
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: jakarta-commons-httpclient3
|
||||
%else
|
||||
BuildRequires: commons-httpclient
|
||||
%endif
|
||||
BuildRequires: jsch
|
||||
BuildRequires: oro
|
||||
BuildRequires: java-devel >= 1.5
|
||||
BuildRequires: jpackage-utils
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description
|
||||
Apache Ivy is a tool for managing (recording, tracking, resolving and
|
||||
reporting) project dependencies. It is designed as process agnostic and is
|
||||
not tied to any methodology or structure. while available as a standalone
|
||||
tool, Apache Ivy works particularly well with Apache Ant providing a number
|
||||
of powerful Ant tasks ranging from dependency resolution to dependency
|
||||
reporting and publication.
|
||||
|
||||
|
||||
%package javadoc
|
||||
Summary: API Documentation for ivy
|
||||
Group: Development/Tools
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description javadoc
|
||||
JavaDoc documentation for %{name}
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
# Fix messed-up encodings
|
||||
for F in RELEASE_NOTES README LICENSE NOTICE CHANGES.txt
|
||||
do
|
||||
sed 's/\r//' $F |iconv -f iso8859-1 -t utf8 >$F.utf8
|
||||
touch -r $F $F.utf8
|
||||
mv $F.utf8 $F
|
||||
done
|
||||
|
||||
|
||||
%build
|
||||
# Remove prebuilt documentation
|
||||
rm -rf doc build/doc
|
||||
|
||||
# How to properly disable a plugin?
|
||||
# we disable vfs plugin since commons-vfs is not available
|
||||
rm -rf src/java/org/apache/ivy/plugins/repository/vfs \
|
||||
src/java/org/apache/ivy/plugins/resolver/VfsResolver.java
|
||||
sed '/vfs.*=.*org.apache.ivy.plugins.resolver.VfsResolver/d' -i \
|
||||
src/java/org/apache/ivy/core/settings/typedef.properties
|
||||
|
||||
# Craft class path
|
||||
mkdir -p lib
|
||||
build-jar-repository lib ant ant/ant-nodeps oro jsch \
|
||||
%if 0%{?suse_version}
|
||||
jakarta-commons-httpclient3
|
||||
%else
|
||||
commons-httpclient
|
||||
%endif
|
||||
|
||||
# Build
|
||||
ant /localivy /offline jar javadoc
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# Code
|
||||
install -d $RPM_BUILD_ROOT%{_javadir}
|
||||
install -p -m644 build/artifact/jars/ivy.jar $RPM_BUILD_ROOT%{_javadir}/ivy-%{version}.jar
|
||||
ln -sf ivy-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/ivy.jar
|
||||
|
||||
# API Documentation
|
||||
install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
cp -rp build/doc/reports/api/. $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadir}/*
|
||||
%doc RELEASE_NOTES CHANGES.txt LICENSE NOTICE README
|
||||
|
||||
|
||||
%files javadoc
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadocdir}/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Nov 09 2009 Lubomir Rintel <lkundrak@v3.sk> - 2.1.0-1
|
||||
- Initial Fedora packaging
|
Loading…
Reference in New Issue
Block a user