- Document sources and patches
This commit is contained in:
parent
f2b6b10820
commit
51b12a39d0
@ -28,13 +28,7 @@
|
|||||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
|
%define with_maven 0
|
||||||
|
|
||||||
# If you don't want to build with maven, and use straight ant instead,
|
|
||||||
# give rpmbuild option '--without maven'
|
|
||||||
|
|
||||||
%define with_maven %{!?_without_maven:1}%{?_without_maven:0}
|
|
||||||
%define without_maven %{?_without_maven:1}%{!?_without_maven:0}
|
|
||||||
|
|
||||||
%define parent plexus
|
%define parent plexus
|
||||||
%define subname classworlds
|
%define subname classworlds
|
||||||
@ -42,27 +36,27 @@
|
|||||||
|
|
||||||
Name: %{parent}-%{subname}
|
Name: %{parent}-%{subname}
|
||||||
Version: 1.2
|
Version: 1.2
|
||||||
Release: 0.a9.6%{?dist}
|
Release: 0.a9.7%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: Plexus Classworlds Classloader Framework
|
Summary: Plexus Classworlds Classloader Framework
|
||||||
License: ASL 2.0 and Plexus
|
License: ASL 2.0 and Plexus
|
||||||
Group: Development/Java
|
Group: Development/Libraries
|
||||||
URL: http://plexus.codehaus.org/
|
URL: http://plexus.codehaus.org/
|
||||||
# svn export http://svn.codehaus.org/plexus/plexus-classworlds/tags/plexus-classworlds-1.2-alpha-9/ plexus-classworlds
|
# svn export http://svn.codehaus.org/plexus/plexus-classworlds/tags/plexus-classworlds-1.2-alpha-9/ plexus-classworlds-1.2-alpha-9
|
||||||
# tar czf plexus-classworlds-1.0-alpha-9.tar.gz plexus-classworlds/
|
# tar czf plexus-classworlds-1.2-alpha-9.tar.gz plexus-classworlds-1.2-alpha-9
|
||||||
Source0: %{name}-%{namedversion}-src.tar.gz
|
Source0: %{name}-%{namedversion}-src.tar.gz
|
||||||
|
|
||||||
|
# Generated with mvn ant:ant
|
||||||
Source1: plexus-classworlds-1.2-build.xml
|
Source1: plexus-classworlds-1.2-build.xml
|
||||||
|
# Fedora-specific maven bits
|
||||||
Source3: plexus-classworlds-settings.xml
|
Source3: plexus-classworlds-settings.xml
|
||||||
Source4: plexus-classworlds-1.2-jpp-depmap.xml
|
Source4: plexus-classworlds-1.2-jpp-depmap.xml
|
||||||
|
|
||||||
|
# Add plexus-utils dependency
|
||||||
Patch0: plexus-classworlds-1.2-pom_xml.patch
|
Patch0: plexus-classworlds-1.2-pom_xml.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%if ! %{gcj_support}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
|
||||||
BuildRequires: jpackage-utils >= 0:1.7.3
|
BuildRequires: jpackage-utils >= 0:1.7.3
|
||||||
BuildRequires: ant >= 0:1.6.5
|
BuildRequires: ant >= 0:1.6.5
|
||||||
@ -77,26 +71,15 @@ BuildRequires: maven2-plugin-javadoc
|
|||||||
BuildRequires: maven2-plugin-resources
|
BuildRequires: maven2-plugin-resources
|
||||||
BuildRequires: maven2-plugin-surefire = 2.3
|
BuildRequires: maven2-plugin-surefire = 2.3
|
||||||
BuildRequires: maven-surefire-provider-junit = 2.3
|
BuildRequires: maven-surefire-provider-junit = 2.3
|
||||||
BuildRequires: maven-doxia
|
BuildRequires: maven-doxia
|
||||||
BuildRequires: maven-doxia-sitetools
|
BuildRequires: maven-doxia-sitetools
|
||||||
BuildRequires: maven-release
|
BuildRequires: maven-release
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: plexus-utils
|
BuildRequires: plexus-utils
|
||||||
%if %{gcj_support}
|
|
||||||
BuildRequires: java-gcj-compat-devel
|
|
||||||
Requires(post): java-gcj-compat
|
|
||||||
Requires(postun): java-gcj-compat
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Requires(post): jpackage-utils >= 0:1.7.2
|
Requires(post): jpackage-utils >= 0:1.7.2
|
||||||
Requires(postun): jpackage-utils >= 0:1.7.2
|
Requires(postun): jpackage-utils >= 0:1.7.2
|
||||||
|
|
||||||
%if %{gcj_support}
|
|
||||||
BuildRequires: java-gcj-compat-devel
|
|
||||||
Requires(post): java-gcj-compat
|
|
||||||
Requires(postun): java-gcj-compat
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Classworlds is a framework for container developers
|
Classworlds is a framework for container developers
|
||||||
who require complex manipulation of Java's ClassLoaders.
|
who require complex manipulation of Java's ClassLoaders.
|
||||||
@ -109,9 +92,7 @@ classworlds.
|
|||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
Group: Development/Documentation
|
Group: Documentation
|
||||||
Requires(post): /bin/rm,/bin/ln
|
|
||||||
Requires(postun): /bin/rm
|
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
Javadoc for %{name}.
|
Javadoc for %{name}.
|
||||||
@ -119,7 +100,7 @@ Javadoc for %{name}.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{namedversion}
|
%setup -q -n %{name}-%{namedversion}
|
||||||
for j in $(find . -name "*.jar" | grep -v /test-data/ | grep -v /test-jars/); do
|
for j in $(find . -name "*.jar" | grep -v /test-data/ | grep -v /test-jars/); do
|
||||||
mv $j $j.no
|
mv $j $j.no
|
||||||
done
|
done
|
||||||
cp %{SOURCE1} build.xml
|
cp %{SOURCE1} build.xml
|
||||||
cp %{SOURCE3} settings.xml
|
cp %{SOURCE3} settings.xml
|
||||||
@ -138,10 +119,10 @@ mkdir -p $MAVEN_REPO_LOCAL
|
|||||||
|
|
||||||
%if %{with_maven}
|
%if %{with_maven}
|
||||||
mvn-jpp \
|
mvn-jpp \
|
||||||
-e \
|
-e \
|
||||||
-Dmaven.test.failure.ignore=true \
|
-Dmaven.test.failure.ignore=true \
|
||||||
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
||||||
install javadoc:javadoc
|
install javadoc:javadoc
|
||||||
|
|
||||||
%else
|
%else
|
||||||
export CLASSPATH=
|
export CLASSPATH=
|
||||||
@ -167,48 +148,37 @@ install -pm 644 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{parent}-%{s
|
|||||||
# javadoc
|
# javadoc
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||||
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||||
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
|
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%if %{gcj_support}
|
|
||||||
%{_bindir}/aot-compile-rpm
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%update_maven_depmap
|
%update_maven_depmap
|
||||||
%if %{gcj_support}
|
|
||||||
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
||||||
then
|
|
||||||
%{_bindir}/rebuild-gcj-db
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%update_maven_depmap
|
%update_maven_depmap
|
||||||
%if %{gcj_support}
|
|
||||||
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
||||||
then
|
|
||||||
%{_bindir}/rebuild-gcj-db
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_javadir}/%{parent}
|
%{_javadir}/%{parent}
|
||||||
%{_datadir}/maven2
|
%{_datadir}/maven2
|
||||||
%{_mavendepmapfragdir}
|
%{_mavendepmapfragdir}
|
||||||
%if %{gcj_support}
|
%doc LICENSE.txt
|
||||||
%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
|
|
||||||
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{subname}*-%{version}.jar.*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc %{_javadocdir}/*
|
%doc %{_javadocdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 19 2009 Andrew Overholt <overholt@redhat.com> 0:1.2-0.a9.7
|
||||||
|
- Document sources and patches
|
||||||
|
|
||||||
|
* Wed Aug 19 2009 Andrew Overholt <overholt@redhat.com> 0:1.2-0.a9.6
|
||||||
|
- Update tarball-building instructions
|
||||||
|
- Remove gcj support
|
||||||
|
- Remove unnecessary post requirements
|
||||||
|
|
||||||
* Thu May 14 2009 Fernando Nasser <fnasser@redhat.com> 0:1.2-0.a9.6
|
* Thu May 14 2009 Fernando Nasser <fnasser@redhat.com> 0:1.2-0.a9.6
|
||||||
- Fix license specification
|
- Fix license specification
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user