Blame SPECS/apache-commons-vfs.spec

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