Blame SPECS/apache-commons-vfs.spec

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