|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
%global base_name net
|
|
Stanislav Ochotnicky |
eae2d9 |
%global short_name commons-%{base_name}
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
Name: apache-%{short_name}
|
|
Stanislav Ochotnicky |
eae2d9 |
Version: 2.0
|
|
Stanislav Ochotnicky |
d65071 |
Release: 6%{?dist}
|
|
Stanislav Ochotnicky |
eae2d9 |
Summary: Internet protocol suite Java library
|
|
Stanislav Ochotnicky |
eae2d9 |
License: ASL 2.0
|
|
Stanislav Ochotnicky |
eae2d9 |
Group: Development/Libraries
|
|
Stanislav Ochotnicky |
eae2d9 |
URL: http://commons.apache.org/%{base_name}/
|
|
Stanislav Ochotnicky |
eae2d9 |
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildArch: noarch
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: jpackage-utils >= 0:1.7.2
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: java-devel >= 1:1.6.0
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: maven-doxia-sitetools
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: maven-plugin-bundle
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: maven-surefire-maven-plugin
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: maven-surefire-provider-junit
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: maven2-plugin-antrun
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: maven2-plugin-assembly
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: maven2-plugin-compiler
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: maven2-plugin-install
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: maven2-plugin-idea
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: maven2-plugin-jar
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: maven2-plugin-javadoc
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRequires: maven2-plugin-resources
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
Requires: java >= 1:1.6.0
|
|
Stanislav Ochotnicky |
eae2d9 |
Requires: jpackage-utils >= 0:1.7.2
|
|
Stanislav Ochotnicky |
eae2d9 |
Requires(post): jpackage-utils
|
|
Stanislav Ochotnicky |
eae2d9 |
Requires(postun): jpackage-utils
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
Provides: jakarta-%{short_name} = 0:%{version}-%{release}
|
|
Stanislav Ochotnicky |
eae2d9 |
Obsoletes: jakarta-%{short_name} < 0:2.0-3
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
%description
|
|
Stanislav Ochotnicky |
eae2d9 |
This is an Internet protocol suite Java library originally developed by
|
|
Stanislav Ochotnicky |
eae2d9 |
ORO, Inc. This version supports Finger, Whois, TFTP, Telnet, POP3, FTP,
|
|
Stanislav Ochotnicky |
eae2d9 |
NNTP, SMTP, and some miscellaneous protocols like Time and Echo as well
|
|
Stanislav Ochotnicky |
eae2d9 |
as BSD R command support. The purpose of the library is to provide
|
|
Stanislav Ochotnicky |
eae2d9 |
fundamental protocol access, not higher-level abstractions.
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
%package javadoc
|
|
Stanislav Ochotnicky |
eae2d9 |
Summary: API documentation for %{name}
|
|
Stanislav Ochotnicky |
eae2d9 |
Group: Documentation
|
|
Stanislav Ochotnicky |
eae2d9 |
Requires: jpackage-utils
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
Obsoletes: jakarta-%{short_name}-javadoc < 0:2.0-3
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
%description javadoc
|
|
Stanislav Ochotnicky |
eae2d9 |
%{summary}.
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
%prep
|
|
Stanislav Ochotnicky |
eae2d9 |
%setup -q -n %{short_name}-%{version}-src
|
|
Stanislav Ochotnicky |
eae2d9 |
sed -i 's/\r//' NOTICE.txt LICENSE.txt
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
%build
|
|
Stanislav Ochotnicky |
eae2d9 |
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
|
Stanislav Ochotnicky |
eae2d9 |
mkdir -p $MAVEN_REPO_LOCAL
|
|
Stanislav Ochotnicky |
e80598 |
# test.failure.ignore added because package would not build on koji
|
|
Stanislav Ochotnicky |
e80598 |
# with TimeTCPClientTest failing
|
|
Stanislav Ochotnicky |
eae2d9 |
mvn-jpp -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
|
Stanislav Ochotnicky |
e80598 |
-Dmaven.test.failure.ignore=true \
|
|
Stanislav Ochotnicky |
eae2d9 |
install javadoc:javadoc
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
%install
|
|
Stanislav Ochotnicky |
eae2d9 |
rm -rf $RPM_BUILD_ROOT
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
# jars
|
|
Stanislav Ochotnicky |
eae2d9 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
|
Stanislav Ochotnicky |
eae2d9 |
install -p -m 644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
pushd $RPM_BUILD_ROOT%{_javadir}
|
|
Stanislav Ochotnicky |
eae2d9 |
for jar in *-%{version}*; do
|
|
Stanislav Ochotnicky |
eae2d9 |
ln -sf ${jar} `echo $jar| sed "s|apache-||g"`
|
|
Stanislav Ochotnicky |
eae2d9 |
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
|
|
Stanislav Ochotnicky |
eae2d9 |
ln -sf ${jar} `echo $jar| sed "s|apache-\(.*\)-%{version}|\1|g"`
|
|
Stanislav Ochotnicky |
eae2d9 |
done
|
|
Stanislav Ochotnicky |
eae2d9 |
popd # come back from javadir
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
# pom
|
|
Stanislav Ochotnicky |
eae2d9 |
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
|
Stanislav Ochotnicky |
eae2d9 |
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
Stanislav Ochotnicky |
629c1f |
%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name}
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
# following line is only for backwards compatibility. New packages
|
|
Stanislav Ochotnicky |
eae2d9 |
# should use proper groupid org.apache.commons and also artifactid
|
|
Stanislav Ochotnicky |
eae2d9 |
%add_to_maven_depmap %{short_name} %{short_name} %{version} JPP %{short_name}
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
# javadoc
|
|
Stanislav Ochotnicky |
eae2d9 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
Stanislav Ochotnicky |
eae2d9 |
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
Stanislav Ochotnicky |
eae2d9 |
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
%clean
|
|
Stanislav Ochotnicky |
eae2d9 |
rm -rf $RPM_BUILD_ROOT
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
%post
|
|
Stanislav Ochotnicky |
eae2d9 |
%update_maven_depmap
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
%postun
|
|
Stanislav Ochotnicky |
eae2d9 |
%update_maven_depmap
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
%files
|
|
Stanislav Ochotnicky |
eae2d9 |
%defattr(-,root,root,-)
|
|
Stanislav Ochotnicky |
eae2d9 |
%doc LICENSE.txt NOTICE.txt
|
|
Stanislav Ochotnicky |
eae2d9 |
%{_javadir}/*
|
|
Stanislav Ochotnicky |
eae2d9 |
%{_mavenpomdir}/JPP-%{short_name}.pom
|
|
Stanislav Ochotnicky |
eae2d9 |
%{_mavendepmapfragdir}
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
%files javadoc
|
|
Stanislav Ochotnicky |
eae2d9 |
%defattr(-,root,root,-)
|
|
Stanislav Ochotnicky |
d65071 |
%doc %{_javadocdir}/%{name}-%{version}
|
|
Stanislav Ochotnicky |
d65071 |
%doc %{_javadocdir}/%{name}
|
|
Stanislav Ochotnicky |
d65071 |
%doc LICENSE.txt NOTICE.txt
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
%changelog
|
|
Stanislav Ochotnicky |
d65071 |
* Thu Jul 8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-6
|
|
Stanislav Ochotnicky |
d65071 |
- Add license to javadoc subpackage
|
|
Stanislav Ochotnicky |
d65071 |
|
|
Stanislav Ochotnicky |
629c1f |
* Thu May 20 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-5
|
|
Stanislav Ochotnicky |
629c1f |
- Fix maven depmap JPP name to short_name
|
|
Stanislav Ochotnicky |
629c1f |
|
|
Stanislav Ochotnicky |
e80598 |
* Wed May 19 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-4
|
|
Stanislav Ochotnicky |
e80598 |
- Ignore test failure
|
|
Stanislav Ochotnicky |
e80598 |
|
|
Stanislav Ochotnicky |
eae2d9 |
* Wed May 12 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-3
|
|
Stanislav Ochotnicky |
eae2d9 |
- Rename jakarta-commons-net to apache-commons-net and drop EPOCH
|
|
Stanislav Ochotnicky |
eae2d9 |
- Build with maven
|
|
Stanislav Ochotnicky |
eae2d9 |
- Clean up whole spec
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
* Thu Aug 13 2009 Alexander Kurtakov <akurtako@redhat.com> 0:2.0-2
|
|
Stanislav Ochotnicky |
eae2d9 |
- Set maven.repo.local.
|
|
Stanislav Ochotnicky |
eae2d9 |
|
|
Stanislav Ochotnicky |
eae2d9 |
* Thu Aug 13 2009 Alexander Kurtakov <akurtako@redhat.com> 0:2.0-1
|
|
Stanislav Ochotnicky |
eae2d9 |
- Update to upstream 2.0.
|
|
Stanislav Ochotnicky |
eae2d9 |
|