Initial import (#821712).
This commit is contained in:
parent
ea1949cf4c
commit
231e3fcd42
4 changed files with 347 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -0,0 +1 @@
|
|||
/commons-vfs-2.0-src.tar.gz
|
||||
155
apache-commons-vfs-2.0-build.patch
Normal file
155
apache-commons-vfs-2.0-build.patch
Normal file
|
|
@ -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 @@
|
||||
<artifactId>commons-logging</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
- <groupId>ant</groupId>
|
||||
+ <groupId>org.apache.ant</groupId>
|
||||
<artifactId>ant</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
@@ -64,11 +64,11 @@
|
||||
<artifactId>commons-httpclient</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
- <dependency>
|
||||
+ <!--dependency>
|
||||
<groupId>org.apache.jackrabbit</groupId>
|
||||
<artifactId>jackrabbit-webdav</artifactId>
|
||||
<optional>true</optional>
|
||||
- </dependency>
|
||||
+ </dependency-->
|
||||
<dependency>
|
||||
<groupId>com.jcraft</groupId>
|
||||
<artifactId>jsch</artifactId>
|
||||
@@ -167,6 +167,37 @@
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
+ <plugin>
|
||||
+ <groupId>org.apache.maven.plugins</groupId>
|
||||
+ <artifactId>maven-compiler-plugin</artifactId>
|
||||
+ <executions>
|
||||
+ <execution>
|
||||
+ <id>default-compile</id>
|
||||
+ <phase>compile</phase>
|
||||
+ <configuration>
|
||||
+ <excludes>
|
||||
+ <exclude>**/webdav/*</exclude>
|
||||
+ </excludes>
|
||||
+ </configuration>
|
||||
+ <goals>
|
||||
+ <goal>compile</goal>
|
||||
+ </goals>
|
||||
+ </execution>
|
||||
+ <execution>
|
||||
+ <id>default-testCompile</id>
|
||||
+ <phase>test-compile</phase>
|
||||
+ <configuration>
|
||||
+ <testExcludes>
|
||||
+ <exclude>**/webdav/test/*</exclude>
|
||||
+ </testExcludes>
|
||||
+ </configuration>
|
||||
+ <goals>
|
||||
+ <goal>testCompile</goal>
|
||||
+ </goals>
|
||||
+ </execution>
|
||||
+ </executions>
|
||||
+ </plugin>
|
||||
+
|
||||
</plugins>
|
||||
</build>
|
||||
<profiles>
|
||||
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 @@
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||
</plugin>
|
||||
- <plugin>
|
||||
+ <!--plugin>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-build-plugin</artifactId>
|
||||
- <!-- version inherited from commons-parent -->
|
||||
+ < version inherited from commons-parent >
|
||||
<configuration>
|
||||
<commons.release.name>commons-${commons.componentid}-${commons.release.version}</commons.release.name>
|
||||
</configuration>
|
||||
- </plugin>
|
||||
+ </plugin-->
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
@@ -243,9 +243,10 @@
|
||||
</tag>
|
||||
</tags>
|
||||
<aggregate>true</aggregate>
|
||||
+ <excludePackageNames>*.webdav.*</excludePackageNames>
|
||||
</configuration>
|
||||
</plugin>
|
||||
- <plugin>
|
||||
+ <!--plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>findbugs-maven-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
@@ -254,7 +255,7 @@
|
||||
<effort>Default</effort>
|
||||
<excludeFilterFile>findbugs-exclude-filter.xml</excludeFilterFile>
|
||||
</configuration>
|
||||
- </plugin>
|
||||
+ </plugin-->
|
||||
</plugins>
|
||||
</reporting>
|
||||
|
||||
@@ -273,11 +274,11 @@
|
||||
<type>test-jar</type>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
- <dependency>
|
||||
+ <!--dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-vfs-sandbox</artifactId>
|
||||
<version>${project.version}</version>
|
||||
- </dependency>
|
||||
+ </dependency-->
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-vfs-examples</artifactId>
|
||||
@@ -310,13 +311,13 @@
|
||||
<artifactId>commons-compress</artifactId>
|
||||
<version>1.1</version>
|
||||
</dependency>
|
||||
- <dependency>
|
||||
+ <!--dependency>
|
||||
<groupId>org.apache.jackrabbit</groupId>
|
||||
<artifactId>jackrabbit-webdav</artifactId>
|
||||
<version>1.5.2</version>
|
||||
- </dependency>
|
||||
+ </dependency-->
|
||||
<dependency>
|
||||
- <groupId>ant</groupId>
|
||||
+ <groupId>org.apache.ant</groupId>
|
||||
<artifactId>ant</artifactId>
|
||||
<version>1.6.2</version>
|
||||
</dependency>
|
||||
@@ -349,7 +350,7 @@
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
- <dependencies>
|
||||
+ <!--dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.scm</groupId>
|
||||
<artifactId>maven-scm-api</artifactId>
|
||||
@@ -360,7 +361,7 @@
|
||||
<artifactId>maven-scm-provider-svnexe</artifactId>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
- </dependencies>
|
||||
+ </dependencies-->
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
190
apache-commons-vfs.spec
Normal file
190
apache-commons-vfs.spec
Normal file
|
|
@ -0,0 +1,190 @@
|
|||
%global base_name vfs
|
||||
%global short_name commons-%{base_name}
|
||||
Name: apache-commons-vfs
|
||||
Version: 2.0
|
||||
Release: 2%{?dist}
|
||||
Summary: Commons Virtual File System
|
||||
Group: Development/Libraries
|
||||
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: java-devel
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: apache-commons-parent
|
||||
|
||||
BuildRequires: maven
|
||||
BuildRequires: maven-antrun-plugin
|
||||
BuildRequires: maven-compiler-plugin
|
||||
BuildRequires: maven-install-plugin
|
||||
BuildRequires: maven-jar-plugin
|
||||
BuildRequires: maven-javadoc-plugin
|
||||
BuildRequires: maven-plugin-bundle
|
||||
BuildRequires: maven-resources-plugin
|
||||
BuildRequires: maven-site-plugin
|
||||
BuildRequires: maven-surefire-plugin
|
||||
BuildRequires: maven-surefire-provider-junit4
|
||||
|
||||
BuildRequires: ant
|
||||
BuildRequires: apache-commons-collections
|
||||
BuildRequires: apache-commons-compress
|
||||
BuildRequires: apache-commons-logging
|
||||
BuildRequires: apache-commons-net
|
||||
BuildRequires: jakarta-commons-httpclient
|
||||
BuildRequires: javamail
|
||||
BuildRequires: jcifs
|
||||
BuildRequires: jdom
|
||||
BuildRequires: jsch
|
||||
|
||||
# test deps
|
||||
BuildRequires: junit4
|
||||
BuildRequires: slf4j
|
||||
|
||||
Requires: apache-commons-collections
|
||||
Requires: apache-commons-compress
|
||||
Requires: apache-commons-logging
|
||||
Requires: apache-commons-net
|
||||
Requires: jakarta-commons-httpclient
|
||||
Requires: javamail
|
||||
Requires: jcifs
|
||||
Requires: jsch
|
||||
|
||||
Requires: java
|
||||
Requires: jpackage-utils
|
||||
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
|
||||
Group: Development/Languages
|
||||
Requires: ant
|
||||
Requires: apache-commons-logging
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description ant
|
||||
This package enables support for the Commons VFS ant tasks.
|
||||
|
||||
%package examples
|
||||
Group: Development/Libraries
|
||||
Summary: Commons VFS Examples
|
||||
Requires: jdom
|
||||
Requires: jpackage-utils
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: %{name}2-examples = %{version}-%{release}
|
||||
|
||||
%description examples
|
||||
VFS is a Virtual File System library - Examples.
|
||||
|
||||
%package javadoc
|
||||
Group: Documentation
|
||||
Summary: Javadoc for %{name}
|
||||
Requires: jpackage-utils
|
||||
|
||||
%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|<module>dist</module>|<!--module>dist</module-->|" pom.xml
|
||||
|
||||
%build
|
||||
|
||||
mvn-rpmbuild -Dmaven.test.failure.ignore=true install javadoc:aggregate
|
||||
|
||||
%install
|
||||
|
||||
mkdir -p %{buildroot}%{_javadir}
|
||||
install -m 644 core/target/%{short_name}2-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
install -m 644 examples/target/%{short_name}2-examples-%{version}.jar %{buildroot}%{_javadir}/%{name}-examples.jar
|
||||
|
||||
(
|
||||
cd %{buildroot}%{_javadir}
|
||||
ln -s %{name}.jar %{short_name}.jar
|
||||
ln -s %{name}-examples.jar %{short_name}-examples.jar
|
||||
ln -s %{name}.jar %{name}2.jar
|
||||
ln -s %{name}-examples.jar %{name}2-examples.jar
|
||||
ln -s %{name}.jar %{short_name}2.jar
|
||||
ln -s %{name}-examples.jar %{short_name}2-examples.jar
|
||||
)
|
||||
|
||||
mkdir -p %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}-project.pom
|
||||
%add_maven_depmap JPP-%{short_name}-project.pom
|
||||
install -pm 644 core/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom
|
||||
%add_maven_depmap JPP-%{short_name}.pom %{short_name}.jar -a "org.apache.commons:%{short_name},%{short_name}:%{short_name}"
|
||||
install -pm 644 examples/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}-examples.pom
|
||||
%add_maven_depmap -f examples JPP-%{short_name}-examples.pom %{short_name}-examples.jar -a "org.apache.commons:%{short_name}-examples,%{short_name}:%{short_name}-examples"
|
||||
|
||||
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
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
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_javadir}/%{name}2.jar
|
||||
%{_javadir}/%{short_name}.jar
|
||||
%{_javadir}/%{short_name}2.jar
|
||||
%{_mavenpomdir}/JPP-%{short_name}.pom
|
||||
%{_mavenpomdir}/JPP-%{short_name}-project.pom
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
%doc LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt
|
||||
|
||||
%files examples
|
||||
%{_javadir}/%{name}-examples.jar
|
||||
%{_javadir}/%{name}2-examples.jar
|
||||
%{_javadir}/%{short_name}-examples.jar
|
||||
%{_javadir}/%{short_name}2-examples.jar
|
||||
%{_mavenpomdir}/JPP-%{short_name}-examples.pom
|
||||
%{_mavendepmapfragdir}/%{name}-examples
|
||||
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}
|
||||
%doc LICENSE.txt NOTICE.txt
|
||||
|
||||
%files ant
|
||||
%config %{_sysconfdir}/ant.d/%{short_name}
|
||||
|
||||
%changelog
|
||||
* Mon Jun 18 2012 gil cattaneo <puntogil@libero.it> 2.0-2
|
||||
- add subpackage ant
|
||||
- install NOTICE.txt in javadocs subpackage
|
||||
|
||||
* Mon May 14 2012 gil cattaneo <puntogil@libero.it> 2.0-1
|
||||
- initial rpm
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
ce839bb9f345de1c5da819239b395898 commons-vfs-2.0-src.tar.gz
|
||||
Loading…
Add table
Add a link
Reference in a new issue