From 1491a6f2f9e21e6cd252404285c43eaed5444083 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 21 2019 23:03:19 +0000 Subject: import apache-commons-vfs-2.0-11.el7 --- diff --git a/.apache-commons-vfs.metadata b/.apache-commons-vfs.metadata new file mode 100644 index 0000000..8675401 --- /dev/null +++ b/.apache-commons-vfs.metadata @@ -0,0 +1 @@ +4883af77f631662c6565857bcf8e2d08de6fcd47 SOURCES/commons-vfs-2.0-src.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..36bea4c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/commons-vfs-2.0-src.tar.gz diff --git a/SOURCES/apache-commons-vfs-2.0-build.patch b/SOURCES/apache-commons-vfs-2.0-build.patch new file mode 100644 index 0000000..2d022ba --- /dev/null +++ b/SOURCES/apache-commons-vfs-2.0-build.patch @@ -0,0 +1,155 @@ +diff -Nru commons-vfs-2.0/core/pom.xml commons-vfs-2.0-gil/core/pom.xml +--- commons-vfs-2.0/core/pom.xml 2011-08-18 15:57:10.000000000 +0200 ++++ commons-vfs-2.0-gil/core/pom.xml 2012-06-18 11:47:33.151985239 +0200 +@@ -40,7 +40,7 @@ + commons-logging + + +- ant ++ org.apache.ant + ant + true + +@@ -64,11 +64,11 @@ + commons-httpclient + true + +- ++ + + com.jcraft + jsch +@@ -167,6 +167,37 @@ + + + ++ ++ org.apache.maven.plugins ++ maven-compiler-plugin ++ ++ ++ default-compile ++ compile ++ ++ ++ **/webdav/* ++ ++ ++ ++ compile ++ ++ ++ ++ default-testCompile ++ test-compile ++ ++ ++ **/webdav/test/* ++ ++ ++ ++ testCompile ++ ++ ++ ++ ++ + + + +diff -Nru commons-vfs-2.0/pom.xml commons-vfs-2.0-gil/pom.xml +--- commons-vfs-2.0/pom.xml 2011-08-18 15:57:11.000000000 +0200 ++++ commons-vfs-2.0-gil/pom.xml 2012-06-18 11:53:03.379995343 +0200 +@@ -187,14 +187,14 @@ + org.apache.maven.plugins + maven-checkstyle-plugin + +- ++ ++ < version inherited from commons-parent > + + commons-${commons.componentid}-${commons.release.version} + +- ++ + + + +@@ -243,9 +243,10 @@ + + + true ++ *.webdav.* + + +- ++ + + + +@@ -273,11 +274,11 @@ + test-jar + test + +- ++ + + org.apache.commons + commons-vfs-examples +@@ -310,13 +311,13 @@ + commons-compress + 1.1 + +- ++ + +- ant ++ org.apache.ant + ant + 1.6.2 + +@@ -349,7 +350,7 @@ + + + +- ++ + + + diff --git a/SPECS/apache-commons-vfs.spec b/SPECS/apache-commons-vfs.spec new file mode 100644 index 0000000..67f0554 --- /dev/null +++ b/SPECS/apache-commons-vfs.spec @@ -0,0 +1,156 @@ +%global base_name vfs +%global short_name commons-%{base_name} +Name: apache-commons-vfs +Version: 2.0 +Release: 11%{?dist} +Summary: Commons Virtual File System +License: ASL 2.0 +Url: http://commons.apache.org/%{base_name}/ +Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz +# add maven-compiler-plugin configuration +# fix ant gId +# remove/disable jackrabbit-webdav support +# remove org.apache.commons commons-build-plugin +# remove org.codehaus.mojo findbugs-maven-plugin +# remove maven-scm +# remove old vfs stuff +Patch0: %{name}-%{version}-build.patch + +BuildRequires: maven-local +BuildRequires: mvn(com.jcraft:jsch) +BuildRequires: mvn(commons-collections:commons-collections) +BuildRequires: mvn(commons-httpclient:commons-httpclient) +BuildRequires: mvn(commons-logging:commons-logging) +BuildRequires: mvn(commons-net:commons-net) +BuildRequires: mvn(org.apache.ant:ant) +BuildRequires: mvn(org.apache.commons:commons-compress) +BuildRequires: mvn(org.apache.commons:commons-parent) >= 26-7 +BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) +BuildRequires: mvn(org.jdom:jdom) + +# test deps +BuildRequires: mvn(junit:junit) + +BuildArch: noarch +Provides: %{name}2 = %{version}-%{release} + +%description +Commons VFS provides a single API for accessing various +different file systems. It presents a uniform view of the +files from various different sources, such as the files on +local disk, on an HTTP server, or inside a Zip archive. +Some of the features of Commons VFS are: +* A single consistent API for accessing files of different + types. +* Support for numerous file system types. +* Caching of file information. Caches information in-JVM, + and optionally can cache remote file information on the + local file system. +* Event delivery. +* Support for logical file systems made up of files from + various different file systems. +* Utilities for integrating Commons VFS into applications, + such as a VFS-aware ClassLoader and URLStreamHandlerFactory. +* A set of VFS-enabled Ant tasks. + +%package ant +Summary: Development files for Commons VFS +Requires: %{name} = %{version}-%{release} + +%description ant +This package enables support for the Commons VFS ant tasks. + +%package examples +Summary: Commons VFS Examples +Requires: %{name} = %{version}-%{release} + +%description examples +VFS is a Virtual File System library - Examples. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains javadoc for %{name}. + +%prep +%setup -q -n %{short_name}-%{version} +perl -pi -e 's/\r$//g;' *.txt + +%patch0 -p1 +rm -rf core/src/main/java/org/apache/commons/vfs2/provider/webdav +rm -rf core/src/test/java/org/apache/commons/vfs2/provider/webdav +sed -i 's|"webdav",||' core/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java + +sed -i "s|dist||" pom.xml + +# not really needed +%pom_remove_plugin :maven-checkstyle-plugin + +%mvn_alias :commons-vfs2 "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}" +%mvn_alias :commons-vfs2-examples "org.apache.commons:%{short_name}-examples" "%{short_name}:%{short_name}-examples" + +# main package wins parent POM +%mvn_package ":commons-vfs2-project" commons-vfs2 + +%build +%mvn_build -s + +%install +%mvn_install + +mkdir -p %{buildroot}%{_sysconfdir}/ant.d +echo "ant commons-logging %{short_name}" > %{short_name} +install -p -m 644 %{short_name} %{buildroot}%{_sysconfdir}/ant.d/%{short_name} + + +%files -f .mfiles-commons-vfs2 +%dir %{_javadir}/%{name} +%doc LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt + +%files examples -f .mfiles-commons-vfs2-examples + +%files javadoc -f .mfiles-javadoc +%doc LICENSE.txt NOTICE.txt + +%files ant +%config %{_sysconfdir}/ant.d/%{short_name} + +%changelog +* Fri Dec 27 2013 Daniel Mach - 2.0-11 +- Mass rebuild 2013-12-27 + +* Fri Sep 20 2013 Mikolaj Izdebski - 2.0-10 +- Add BuildRequires on apache-commons-parent >= 26-7 + +* Fri Jun 28 2013 Mikolaj Izdebski - 2.0-9 +- Rebuild to regenerate API documentation +- Resolves: CVE-2013-1571 + +* Fri Jun 28 2013 Michal Srb - 2.0-8 +- Fix directory ownership + +* Thu Jun 27 2013 Michal Srb - 2.0-7 +- Build with XMvn +- Do not ignore test failures +- Fix BR + +* Wed Feb 13 2013 Fedora Release Engineering - 2.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Feb 06 2013 Java SIG - 2.0-5 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Wed Aug 1 2012 Mikolaj Izdebski - 2.0-4 +- Rebuild against javamail + +* Wed Jul 18 2012 Fedora Release Engineering - 2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 18 2012 gil cattaneo 2.0-2 +- add subpackage ant +- install NOTICE.txt in javadocs subpackage + +* Mon May 14 2012 gil cattaneo 2.0-1 +- initial rpm