Blame SPECS/apache-commons-vfs.spec

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