|
|
ad689e |
%global pkg_name apache-commons-vfs
|
|
|
ad689e |
%{?scl:%scl_package %{pkg_name}}
|
|
|
ad689e |
%{?maven_find_provides_and_requires}
|
|
|
ad689e |
|
|
|
ad689e |
%global base_name vfs
|
|
|
ad689e |
%global short_name commons-%{base_name}
|
|
|
ad689e |
Name: %{?scl_prefix}%{pkg_name}
|
|
|
ad689e |
Version: 2.0
|
|
|
ad689e |
Release: 11.15%{?dist}
|
|
|
ad689e |
Summary: Commons Virtual File System
|
|
|
ad689e |
License: ASL 2.0
|
|
|
ad689e |
Url: http://commons.apache.org/%{base_name}/
|
|
|
ad689e |
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
|
ad689e |
# add maven-compiler-plugin configuration
|
|
|
ad689e |
# fix ant gId
|
|
|
ad689e |
# remove/disable jackrabbit-webdav support
|
|
|
ad689e |
# remove org.apache.commons commons-build-plugin
|
|
|
ad689e |
# remove org.codehaus.mojo findbugs-maven-plugin
|
|
|
ad689e |
# remove maven-scm
|
|
|
ad689e |
# remove old vfs stuff
|
|
|
ad689e |
Patch0: %{pkg_name}-%{version}-build.patch
|
|
|
ad689e |
|
|
|
ad689e |
BuildRequires: %{?scl_prefix}maven-local
|
|
|
ad689e |
BuildRequires: %{?scl_prefix_java_common}mvn(com.jcraft:jsch)
|
|
|
ad689e |
BuildRequires: %{?scl_prefix_java_common}mvn(commons-collections:commons-collections)
|
|
|
ad689e |
BuildRequires: %{?scl_prefix_java_common}mvn(commons-httpclient:commons-httpclient)
|
|
|
ad689e |
BuildRequires: %{?scl_prefix_java_common}mvn(commons-logging:commons-logging)
|
|
|
ad689e |
BuildRequires: %{?scl_prefix_java_common}mvn(commons-net:commons-net)
|
|
|
ad689e |
BuildRequires: %{?scl_prefix_java_common}mvn(org.apache.ant:ant)
|
|
|
ad689e |
BuildRequires: %{?scl_prefix_java_common}mvn(org.apache.commons:commons-compress)
|
|
|
ad689e |
BuildRequires: %{?scl_prefix_java_common}mvn(org.jdom:jdom)
|
|
|
ad689e |
BuildRequires: %{?scl_prefix}mvn(org.apache.commons:commons-parent:pom:) >= 26-7
|
|
|
ad689e |
BuildRequires: %{?scl_prefix}mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
|
|
ad689e |
|
|
|
ad689e |
# test deps
|
|
|
ad689e |
BuildRequires: %{?scl_prefix_java_common}mvn(junit:junit)
|
|
|
ad689e |
|
|
|
ad689e |
BuildArch: noarch
|
|
|
ad689e |
|
|
|
ad689e |
%description
|
|
|
ad689e |
Commons VFS provides a single API for accessing various
|
|
|
ad689e |
different file systems. It presents a uniform view of the
|
|
|
ad689e |
files from various different sources, such as the files on
|
|
|
ad689e |
local disk, on an HTTP server, or inside a Zip archive.
|
|
|
ad689e |
Some of the features of Commons VFS are:
|
|
|
ad689e |
* A single consistent API for accessing files of different
|
|
|
ad689e |
types.
|
|
|
ad689e |
* Support for numerous file system types.
|
|
|
ad689e |
* Caching of file information. Caches information in-JVM,
|
|
|
ad689e |
and optionally can cache remote file information on the
|
|
|
ad689e |
local file system.
|
|
|
ad689e |
* Event delivery.
|
|
|
ad689e |
* Support for logical file systems made up of files from
|
|
|
ad689e |
various different file systems.
|
|
|
ad689e |
* Utilities for integrating Commons VFS into applications,
|
|
|
ad689e |
such as a VFS-aware ClassLoader and URLStreamHandlerFactory.
|
|
|
ad689e |
* A set of VFS-enabled Ant tasks.
|
|
|
ad689e |
|
|
|
ad689e |
%package ant
|
|
|
ad689e |
Summary: Development files for Commons VFS
|
|
|
ad689e |
Requires: %{name} = %{version}-%{release}
|
|
|
ad689e |
|
|
|
ad689e |
%description ant
|
|
|
ad689e |
This package enables support for the Commons VFS ant tasks.
|
|
|
ad689e |
|
|
|
ad689e |
%package examples
|
|
|
ad689e |
Summary: Commons VFS Examples
|
|
|
ad689e |
Requires: %{name} = %{version}-%{release}
|
|
|
ad689e |
|
|
|
ad689e |
%description examples
|
|
|
ad689e |
VFS is a Virtual File System library - Examples.
|
|
|
ad689e |
|
|
|
ad689e |
%package javadoc
|
|
|
ad689e |
Summary: Javadoc for %{pkg_name}
|
|
|
ad689e |
|
|
|
ad689e |
%description javadoc
|
|
|
ad689e |
This package contains javadoc for %{pkg_name}.
|
|
|
ad689e |
|
|
|
ad689e |
%prep
|
|
|
ad689e |
%setup -q -n %{short_name}-%{version}
|
|
|
ad689e |
%{?scl:scl enable %{scl} - <<"EOF"}
|
|
|
ad689e |
set -e -x
|
|
|
ad689e |
perl -pi -e 's/\r$//g;' *.txt
|
|
|
ad689e |
|
|
|
ad689e |
%patch0 -p1
|
|
|
ad689e |
rm -rf core/src/main/java/org/apache/commons/vfs2/provider/webdav
|
|
|
ad689e |
rm -rf core/src/test/java/org/apache/commons/vfs2/provider/webdav
|
|
|
ad689e |
sed -i 's|"webdav",||' core/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java
|
|
|
ad689e |
|
|
|
ad689e |
sed -i "s|<module>dist</module>||" pom.xml
|
|
|
ad689e |
|
|
|
ad689e |
# not really needed
|
|
|
ad689e |
%pom_remove_plugin :maven-checkstyle-plugin
|
|
|
ad689e |
|
|
|
ad689e |
%mvn_alias :commons-vfs2 "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}"
|
|
|
ad689e |
%mvn_alias :commons-vfs2-examples "org.apache.commons:%{short_name}-examples" "%{short_name}:%{short_name}-examples"
|
|
|
ad689e |
|
|
|
ad689e |
# main package wins parent POM
|
|
|
ad689e |
%mvn_package ":commons-vfs2-project" commons-vfs2
|
|
|
ad689e |
%{?scl:EOF}
|
|
|
ad689e |
|
|
|
ad689e |
%build
|
|
|
ad689e |
%{?scl:scl enable %{scl} - <<"EOF"}
|
|
|
ad689e |
set -e -x
|
|
|
ad689e |
%mvn_build -s
|
|
|
ad689e |
%{?scl:EOF}
|
|
|
ad689e |
|
|
|
ad689e |
%install
|
|
|
ad689e |
%{?scl:scl enable %{scl} - <<"EOF"}
|
|
|
ad689e |
set -e -x
|
|
|
ad689e |
%mvn_install
|
|
|
ad689e |
|
|
|
ad689e |
mkdir -p %{buildroot}%{_sysconfdir_java_common}/ant.d
|
|
|
ad689e |
echo "ant commons-logging %{short_name}" > %{short_name}
|
|
|
ad689e |
install -p -m 644 %{short_name} %{buildroot}%{_sysconfdir_java_common}/ant.d/%{short_name}
|
|
|
ad689e |
%{?scl:EOF}
|
|
|
ad689e |
|
|
|
ad689e |
|
|
|
ad689e |
%files -f .mfiles-commons-vfs2
|
|
|
ad689e |
%dir %{_mavenpomdir}/%{pkg_name}
|
|
|
ad689e |
%dir %{_javadir}/%{pkg_name}
|
|
|
ad689e |
%doc LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt
|
|
|
ad689e |
|
|
|
ad689e |
%files examples -f .mfiles-commons-vfs2-examples
|
|
|
ad689e |
|
|
|
ad689e |
%files javadoc -f .mfiles-javadoc
|
|
|
ad689e |
%doc LICENSE.txt NOTICE.txt
|
|
|
ad689e |
|
|
|
ad689e |
%files ant
|
|
|
ad689e |
%config %{_sysconfdir_java_common}/ant.d/%{short_name}
|
|
|
ad689e |
|
|
|
ad689e |
%changelog
|
|
|
ad689e |
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 2.0-11.15
|
|
|
ad689e |
- Fix BR on maven-local & co.
|
|
|
ad689e |
|
|
|
ad689e |
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 2.0-11.14
|
|
|
ad689e |
- maven33 rebuild #2
|
|
|
ad689e |
|
|
|
ad689e |
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 2.0-11.13
|
|
|
ad689e |
- maven33 rebuild
|
|
|
ad689e |
|
|
|
ad689e |
* Thu Jan 15 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-11.12
|
|
|
ad689e |
- Install ant.d files into rh-java-common's ant.d
|
|
|
ad689e |
|
|
|
ad689e |
* Thu Jan 15 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-11.11
|
|
|
ad689e |
- Add directory ownership on %%{_mavenpomdir} subdir
|
|
|
ad689e |
|
|
|
ad689e |
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 2.0-11.10
|
|
|
ad689e |
- Mass rebuild 2015-01-13
|
|
|
ad689e |
|
|
|
ad689e |
* Mon Jan 12 2015 Michael Simacek <msimacek@redhat.com> - 2.0-11.9
|
|
|
ad689e |
- Fix parent pom BR
|
|
|
ad689e |
- BR packages from common collection
|
|
|
ad689e |
|
|
|
ad689e |
* Mon Jan 12 2015 Michael Simacek <msimacek@redhat.com> - 2.0-11.8
|
|
|
ad689e |
- Rebuild to regenerate requires from java-common
|
|
|
ad689e |
|
|
|
ad689e |
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 2.0-11.7
|
|
|
ad689e |
- Mass rebuild 2015-01-06
|
|
|
ad689e |
|
|
|
ad689e |
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-11.6
|
|
|
ad689e |
- Mass rebuild 2014-05-26
|
|
|
ad689e |
|
|
|
ad689e |
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-11.5
|
|
|
ad689e |
- Mass rebuild 2014-02-19
|
|
|
ad689e |
|
|
|
ad689e |
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-11.4
|
|
|
ad689e |
- Mass rebuild 2014-02-18
|
|
|
ad689e |
|
|
|
ad689e |
* Mon Feb 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-11.3
|
|
|
ad689e |
- SCL-ize build-requires
|
|
|
ad689e |
|
|
|
ad689e |
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-11.2
|
|
|
ad689e |
- Rebuild to regenerate auto-requires
|
|
|
ad689e |
|
|
|
ad689e |
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-11.1
|
|
|
ad689e |
- First maven30 software collection build
|
|
|
ad689e |
|
|
|
ad689e |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0-11
|
|
|
ad689e |
- Mass rebuild 2013-12-27
|
|
|
ad689e |
|
|
|
ad689e |
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-10
|
|
|
ad689e |
- Add BuildRequires on apache-commons-parent >= 26-7
|
|
|
ad689e |
|
|
|
ad689e |
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-9
|
|
|
ad689e |
- Rebuild to regenerate API documentation
|
|
|
ad689e |
- Resolves: CVE-2013-1571
|
|
|
ad689e |
|
|
|
ad689e |
* Fri Jun 28 2013 Michal Srb <msrb@redhat.com> - 2.0-8
|
|
|
ad689e |
- Fix directory ownership
|
|
|
ad689e |
|
|
|
ad689e |
* Thu Jun 27 2013 Michal Srb <msrb@redhat.com> - 2.0-7
|
|
|
ad689e |
- Build with XMvn
|
|
|
ad689e |
- Do not ignore test failures
|
|
|
ad689e |
- Fix BR
|
|
|
ad689e |
|
|
|
ad689e |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-6
|
|
|
ad689e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
ad689e |
|
|
|
ad689e |
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.0-5
|
|
|
ad689e |
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
ad689e |
- Replace maven BuildRequires with maven-local
|
|
|
ad689e |
|
|
|
ad689e |
* Wed Aug 1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-4
|
|
|
ad689e |
- Rebuild against javamail
|
|
|
ad689e |
|
|
|
ad689e |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-3
|
|
|
ad689e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
ad689e |
|
|
|
ad689e |
* Mon Jun 18 2012 gil cattaneo <puntogil@libero.it> 2.0-2
|
|
|
ad689e |
- add subpackage ant
|
|
|
ad689e |
- install NOTICE.txt in javadocs subpackage
|
|
|
ad689e |
|
|
|
ad689e |
* Mon May 14 2012 gil cattaneo <puntogil@libero.it> 2.0-1
|
|
|
ad689e |
- initial rpm
|