Blame SPECS/apache-commons-vfs.spec

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