gil 323bc5
# hadoop was retired
Mikolaj Izdebski 3045b2
%bcond_without hadoop
Michael Simacek ec1e60
%bcond_without ftp
Michael Simacek ec1e60
%bcond_without ssh
Michael Simacek ec1e60
gil 231e3f
Name:          apache-commons-vfs
gil d55075
Version:       2.1
Fedora Release Engineering e8fd80
Release:       12%{?dist}
gil 231e3f
Summary:       Commons Virtual File System
gil 231e3f
License:       ASL 2.0
gil d55075
Url:           http://commons.apache.org/vfs/
gil d55075
Source0:       http://www.apache.org/dist/commons/vfs/source/commons-vfs-%{version}-src.tar.gz
gil 4abefd
Michael Simacek ec1e60
BuildRequires:  maven-local
Michael Simacek ec1e60
BuildRequires:  mvn(commons-httpclient:commons-httpclient)
Michael Simacek ec1e60
BuildRequires:  mvn(commons-logging:commons-logging)
Michael Simacek ec1e60
BuildRequires:  mvn(commons-net:commons-net)
Michael Simacek ec1e60
BuildRequires:  mvn(org.apache.ant:ant)
Michael Simacek ec1e60
BuildRequires:  mvn(org.apache.commons:commons-collections4)
Michael Simacek ec1e60
BuildRequires:  mvn(org.apache.commons:commons-compress)
Michael Simacek ec1e60
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
Michael Simacek ec1e60
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
Mikolaj Izdebski 3045b2
%if %{with hadoop}
Michael Simacek ec1e60
BuildRequires:  mvn(org.apache.hadoop:hadoop-common)
Michael Simacek ec1e60
BuildRequires:  mvn(org.apache.hadoop:hadoop-hdfs)
Michael Simacek ec1e60
%endif
Michael Simacek ec1e60
%if %{with ssh}
Michael Simacek ec1e60
BuildRequires:  mvn(com.jcraft:jsch)
Michael Simacek ec1e60
%endif
Michael Simacek ec1e60
%if %{with ftp}
Michael Simacek ec1e60
BuildRequires:  mvn(org.apache.ftpserver:ftpserver-core)
gil 323bc5
%endif
Michal Srb d80d2d
gil 231e3f
BuildArch:     noarch
gil 231e3f
Provides:      %{name}2 = %{version}-%{release}
gil 231e3f
gil 231e3f
%description
gil 231e3f
Commons VFS provides a single API for accessing various
gil 231e3f
different file systems. It presents a uniform view of the
gil 231e3f
files from various different sources, such as the files on
gil 231e3f
local disk, on an HTTP server, or inside a Zip archive.
gil 231e3f
Some of the features of Commons VFS are:
gil 231e3f
* A single consistent API for accessing files of different
gil 231e3f
 types.
gil 231e3f
* Support for numerous file system types.
gil 231e3f
* Caching of file information. Caches information in-JVM,
gil 231e3f
 and optionally can cache remote file information on the
gil 231e3f
 local file system.
gil 231e3f
* Event delivery.
gil 231e3f
* Support for logical file systems made up of files from
gil 231e3f
 various different file systems.
gil 231e3f
* Utilities for integrating Commons VFS into applications,
gil 231e3f
 such as a VFS-aware ClassLoader and URLStreamHandlerFactory.
gil 231e3f
* A set of VFS-enabled Ant tasks.
gil 231e3f
gil 231e3f
%package ant
gil 231e3f
Summary:       Development files for Commons VFS
gil 231e3f
Requires:      %{name} = %{version}-%{release}
gil 231e3f
gil 231e3f
%description ant
gil 231e3f
This package enables support for the Commons VFS ant tasks.
gil 231e3f
gil 231e3f
%package examples
gil 231e3f
Summary:       Commons VFS Examples
gil 231e3f
gil 231e3f
%description examples
gil 231e3f
VFS is a Virtual File System library - Examples.
gil 231e3f
gil d55075
%package project
gil d55075
Summary:       Commons VFS Parent POM
gil d55075
gil d55075
%description project
gil d55075
Commons VFS Parent POM.
gil d55075
gil 231e3f
%package javadoc
gil 231e3f
Summary:       Javadoc for %{name}
gil 231e3f
gil 231e3f
%description javadoc
gil 231e3f
This package contains javadoc for %{name}.
gil 231e3f
gil 231e3f
%prep
gil d55075
%setup -q -n commons-vfs-%{version}
gil 6afa19
Michael Simacek 6c3d38
%pom_remove_plugin :apache-rat-plugin
Michael Simacek 6c3d38
gil 6afa19
# Convert from dos to unix line ending
gil 6afa19
for file in LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt; do
gil 6afa19
 sed -i.orig 's|\r||g' $file
gil 6afa19
 touch -r $file.orig $file
gil 6afa19
 rm $file.orig
gil 6afa19
done
gil 231e3f
gil 4abefd
# Disable unwanted module
gil 4abefd
%pom_disable_module dist
gil 4abefd
gil d55075
# Fix ant gId
gil d55075
%pom_change_dep -r :ant org.apache.ant:
gil d55075
# Upadate bouncycastle aId
gil d55075
%pom_change_dep -r :bcprov-jdk16 :bcprov-jdk15on
gil d55075
gil d55075
# Remove unwanted dependency jackrabbit-{standalone,webdav}
gil d55075
%pom_remove_dep -r org.apache.jackrabbit:
Michael Simacek ec1e60
Michael Simacek ec1e60
rm -rf core/src/{main,test}/java/org/apache/commons/vfs2/provider/webdav
Michael Simacek ec1e60
gil d55075
# Use old version of sshd-core
gil d55075
%pom_remove_dep -r :sshd-core
gil d4f36a
Michael Simacek 5f3c30
# hadoop has been retired
Mikolaj Izdebski 3045b2
%if %{without hadoop}
Michael Simacek 5f3c30
%pom_remove_dep -r org.apache.hadoop
Michael Simacek 5f3c30
rm -r core/src/{main,test}/java/org/apache/commons/vfs2/provider/hdfs
gil 323bc5
%endif
Michael Simacek 5f3c30
Michal Srb d80d2d
# not really needed
Michal Srb d80d2d
%pom_remove_plugin :maven-checkstyle-plugin
gil 4abefd
%pom_remove_plugin :findbugs-maven-plugin
gil 4abefd
Michael Simacek ec1e60
%if %{without ssh}
Michael Simacek ec1e60
%pom_remove_dep -r :jsch
Michael Simacek ec1e60
rm -r core/src/{main,test}/java/org/apache/commons/vfs2/provider/sftp
Michael Simacek ec1e60
rm examples/src/main/java/org/apache/commons/vfs2/libcheck/SftpCheck.java
Michael Simacek ec1e60
%endif
Michael Simacek ec1e60
Michael Simacek ec1e60
%if %{without ftp}
Michael Simacek ec1e60
%pom_remove_dep -r :ftpserver-core
Michael Simacek ec1e60
rm -r core/src/{main,test}/java/org/apache/commons/vfs2/provider/ftps
Michael Simacek ec1e60
%endif
Michael Simacek ec1e60
Michael Simacek ec1e60
gil 4abefd
# Fix installation directory and symlink
gil d55075
%mvn_file :commons-vfs2 %{name}
gil d55075
%mvn_file :commons-vfs2 %{name}2
gil d55075
%mvn_file :commons-vfs2 commons-vfs
gil d55075
%mvn_file :commons-vfs2 commons-vfs2
gil d55075
%mvn_file :commons-vfs2-examples %{name}-examples
gil d55075
%mvn_file :commons-vfs2-examples %{name}2-examples
gil d55075
%mvn_file :commons-vfs2-examples commons-vfs-examples
gil d55075
%mvn_file :commons-vfs2-examples commons-vfs2-examples
gil d55075
gil d55075
%mvn_alias :commons-vfs2 "org.apache.commons:commons-vfs" "commons-vfs:commons-vfs"
gil d55075
%mvn_alias :commons-vfs2-examples "org.apache.commons:commons-vfs-examples" "commons-vfs:commons-vfs-examples"
gil 231e3f
Michal Srb d80d2d
%build
Michael Simacek ec1e60
%mvn_build -sf
Michal Srb d80d2d
Michal Srb d80d2d
%install
Michal Srb d80d2d
%mvn_install
gil 231e3f
gil 231e3f
mkdir -p %{buildroot}%{_sysconfdir}/ant.d
gil d55075
echo "ant commons-logging commons-vfs" > commons-vfs
gil d55075
install -p -m 644 commons-vfs %{buildroot}%{_sysconfdir}/ant.d/commons-vfs
gil 231e3f
Michal Srb d80d2d
%files -f .mfiles-commons-vfs2
gil ed1942
%doc README.txt RELEASE-NOTES.txt
gil ed1942
%license LICENSE.txt NOTICE.txt
gil 231e3f
Michal Srb d80d2d
%files examples -f .mfiles-commons-vfs2-examples
gil d55075
%files project -f .mfiles-commons-vfs2-project
gil d55075
%license LICENSE.txt NOTICE.txt
gil 231e3f
Michal Srb d80d2d
%files javadoc -f .mfiles-javadoc
gil ed1942
%license LICENSE.txt NOTICE.txt
gil 231e3f
gil 231e3f
%files ant
gil d55075
%config %{_sysconfdir}/ant.d/commons-vfs
gil 231e3f
gil 231e3f
%changelog
Fedora Release Engineering e8fd80
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-12
Fedora Release Engineering e8fd80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Fedora Release Engineering e8fd80
Fedora Release Engineering 66dc77
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-11
Fedora Release Engineering 66dc77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
Fedora Release Engineering 66dc77
Michael Simacek ec1e60
* Mon Feb 06 2017 Michael Simacek <msimacek@redhat.com> - 2.1-10
Michael Simacek ec1e60
- Add conditionals for ftp and ssh
Michael Simacek ec1e60
Michael Simacek 6c3d38
* Mon Feb 06 2017 Michael Simacek <msimacek@redhat.com> - 2.1-9
Michael Simacek 6c3d38
- Remove rat-plugin
Michael Simacek 6c3d38
Mikolaj Izdebski 3045b2
* Sun Jan 29 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1-8
Mikolaj Izdebski 3045b2
- Fix hadoop build conditionals
Mikolaj Izdebski 3045b2
gil d7a850
* Fri Oct 28 2016 gil cattaneo <puntogil@libero.it> 2.1-7
gil d7a850
- enable HDFS support (rhbz#1387108)
gil d7a850
Mikolaj Izdebski 4a177e
* Mon Oct  3 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1-6
Mikolaj Izdebski 4a177e
- Remove build-requires on perl
Mikolaj Izdebski 4a177e
gil 1c4bb4
* Thu Jul 21 2016 gil cattaneo <puntogil@libero.it> 2.1-5
gil 1c4bb4
- add missing BR
gil 1c4bb4
gil 71751a
* Sat Jun 25 2016 gil cattaneo <puntogil@libero.it> 2.1-4
gil 71751a
- disable tests failure
gil 71751a
gil 323bc5
* Thu Jun 02 2016 gil cattaneo <puntogil@libero.it> 2.1-3
gil 323bc5
- disable hadoop stuff with bcond
gil 323bc5
Michael Simacek 5f3c30
* Thu Jun 02 2016 Michael Simacek <msimacek@redhat.com> - 2.1-2
Michael Simacek 5f3c30
- Remove support for retired hadoop
Michael Simacek 5f3c30
gil d55075
* Sun May 22 2016 gil cattaneo <puntogil@libero.it> 2.1-1
gil d55075
- update to 2.1
gil d55075
Dennis Gilmore 7915d2
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-17
Dennis Gilmore 7915d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Dennis Gilmore 7915d2
Dennis Gilmore a9e6b6
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-16
Dennis Gilmore a9e6b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
Dennis Gilmore a9e6b6
gil ed1942
* Thu Jan 29 2015 gil cattaneo <puntogil@libero.it> 2.0-15
gil ed1942
- introduce license macro
gil ed1942
Mikolaj Izdebski 327ddd
* Wed Jul 30 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-14
Mikolaj Izdebski 327ddd
- Fix build-requires on apache-commons-parent
Mikolaj Izdebski 327ddd
Dennis Gilmore 699d9a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-13
Dennis Gilmore 699d9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
Dennis Gilmore 699d9a
Stanislav Ochotnicky cdcbc2
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-12
Stanislav Ochotnicky cdcbc2
- Use Requires: java-headless rebuild (#1067528)
Stanislav Ochotnicky cdcbc2
Dennis Gilmore cba5ef
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-11
Dennis Gilmore cba5ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Dennis Gilmore cba5ef
gil 375d95
* Fri Jun 28 2013 gil cattaneo <puntogil@libero.it> 2.0-10
gil 375d95
- used pom_xpath_set macro
gil 375d95
gil 4abefd
* Fri Jun 28 2013 gil cattaneo <puntogil@libero.it> 2.0-9
gil 4abefd
- swith to pom macros
gil 4abefd
- packaged in /usr/share/java instead of /usr/share/java/apache-commons-vfs
gil 4abefd
Michal Srb 0f82e9
* Fri Jun 28 2013 Michal Srb <msrb@redhat.com> - 2.0-8
Michal Srb 0f82e9
- Fix directory ownership
Michal Srb 0f82e9
Michal Srb d80d2d
* Thu Jun 27 2013 Michal Srb <msrb@redhat.com> - 2.0-7
Michal Srb d80d2d
- Build with XMvn
Michal Srb d80d2d
- Do not ignore test failures
Michal Srb d80d2d
- Fix BR
Michal Srb d80d2d
Dennis Gilmore 752350
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-6
Dennis Gilmore 752350
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
Dennis Gilmore 752350
Stanislav Ochotnicky 33a97c
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.0-5
Stanislav Ochotnicky 33a97c
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky 33a97c
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky 33a97c
Mikolaj Izdebski 7c1ff7
* Wed Aug  1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-4
Mikolaj Izdebski 7c1ff7
- Rebuild against javamail
Mikolaj Izdebski 7c1ff7
Dennis Gilmore d4ac61
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-3
Dennis Gilmore d4ac61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Dennis Gilmore d4ac61
gil 231e3f
* Mon Jun 18 2012 gil cattaneo <puntogil@libero.it> 2.0-2
gil 231e3f
- add subpackage ant
gil 231e3f
- install NOTICE.txt in javadocs subpackage
gil 231e3f
gil 231e3f
* Mon May 14 2012 gil cattaneo <puntogil@libero.it> 2.0-1
Mikolaj Izdebski 7c1ff7
- initial rpm