d500290
Name:		cpptasks
d500290
Version:	1.0b5
60d44d8
Release:	5%{?dist}
d500290
Summary:	Compile and link task for ant
d500290
d500290
Group:		Development/Libraries
d500290
d500290
License:	ASL 2.0
d500290
URL:		http://ant-contrib.sourceforge.net/
d500290
Vendor:		Ant contrib project
d500290
Source0:	http://downloads.sourceforge.net/ant-contrib/cpptasks-1.0b5.tar.gz
d500290
Source1:	%{name}-README.fedora
d500290
d500290
BuildRequires:	ant 
d500290
BuildRequires:	ant-junit 
d500290
BuildRequires:	jpackage-utils 
d500290
BuildRequires:	junit
37ff33c
#BuildRequires:	mave
d500290
d500290
Requires:	ant 
d500290
Requires:	java
d500290
Requires:	jpackage-utils
d500290
d500290
BuildArch:	noarch
d500290
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d500290
	
d500290
d500290
%description
d500290
This ant task can compile various source languages and produce
d500290
executables, shared libraries (aka DLL's) and static libraries. Compiler
d500290
adaptors are currently available for several C/C++ compilers, FORTRAN,
d500290
MIDL and Windows Resource files.
d500290
d500290
%package        javadoc
d500290
Summary:	Javadoc for %{name}
d500290
Group:		Documentation
3d646dc
Requires:	%{name} >= %{version}-%{release}
d500290
Requires:	jpackage-utils
d500290
d500290
%description	javadoc
d500290
Javadoc documentation for %{summary}.
d500290
d500290
d500290
#The manual for b5 has been moved to xdoc (doxia) format.
d500290
# This requires maven, which requires many dependencies which we don't have.
d500290
#%package	manual
d500290
#Summary:	Docs for %{name}
d500290
#Group:		Development/Documentation
d500290
d500290
#%description	manual
d500290
#User manual for %{summary}.
d500290
d500290
%prep
d500290
%setup -q -n %{name}-%{version}
d500290
d500290
#End of line conversion
d500290
%{__sed} -i 's/\r//' NOTICE 
d500290
d500290
#Check for exisiting jar files
d500290
JAR_files=""
d500290
for j in $(find -name \*.jar); do
d500290
if [ ! -L $j ] ; then
d500290
	JAR_files="$JAR_files $j"
d500290
	fi
d500290
done
d500290
d500290
if [ ! -z "$JAR_files" ] ; then
d500290
	echo "These JAR files should be deleted and symlinked to system JAR files: $JAR_files"
d500290
	exit 1
d500290
fi
d500290
d500290
cp -p %{SOURCE1} ./README.fedora
d500290
d500290
%build
d500290
export OPT_JAR_LIST="ant/ant-junit junit"
d500290
export CLASSPATH=
d500290
ant jars javadocs 
d500290
d500290
#In lieu of maven built docs, which requires clirr
d500290
#a URL is supplied in README.fedora
d500290
#mvn-jpp site
d500290
d500290
%install
d500290
rm -rf $RPM_BUILD_ROOT
d500290
d500290
d500290
# jars
d500290
mkdir -p $RPM_BUILD_ROOT%{_javadir}/ant/
d500290
install -Dpm 644 target/lib/%{name}.jar \
d500290
	$RPM_BUILD_ROOT%{_javadir}/ant/%{name}-%{version}.jar
d500290
d500290
pushd $RPM_BUILD_ROOT%{_javadir}/ant/
d500290
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{name}.jar
d500290
popd
d500290
d500290
# javadoc
d500290
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
d500290
d500290
cp -pr target/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
d500290
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
d500290
d500290
# manual - 
d500290
#install -dm 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
d500290
#cp -pr docs/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
d500290
d500290
#Place a file into ant's config dir
d500290
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/
d500290
echo "%{name} ant/%{name}" > $RPM_BUILD_ROOT/%{_sysconfdir}/ant.d/%{name}
d500290
d500290
d500290
%clean
d500290
rm -rf $RPM_BUILD_ROOT
d500290
d500290
%files
d500290
%defattr(-,root,root,-)
d500290
%doc LICENSE NOTICE README.fedora
d500290
%{_javadir}/ant/*.jar
d500290
%{_sysconfdir}/ant.d/%{name}
d500290
d500290
%files javadoc
d500290
%defattr(-,root,root,-)
d500290
%doc %{_javadocdir}/%{name}-%{version}
d500290
%doc %{_javadocdir}/%{name}
d500290
d500290
#%files manual
d500290
#%defattr(-,root,root,-)
d500290
#%doc %{_docdir}/%{name}-%{version}
d500290
d500290
# -----------------------------------------------------------------------------
d500290
d500290
%changelog
60d44d8
* Thu Sep 03 2009 D Haley <mycae@yahoo.com> - 1.0b5-5
60d44d8
- Req needs whitespace
60d44d8
60d44d8
* Thu Sep 03 2009 D Haley <mycae@yahoo.com> - 1.0b5-4
60d44d8
- tag bump
3d646dc
37ff33c
* Thu Sep 03 2009 D Haley <mycae@yahoo.com> - 1.0b5-3
37ff33c
- Remove excess BR
37ff33c
- Fix subpackage dep
37ff33c
- Fix doc installation 
37ff33c
d500290
* Fri Aug 28 2009 D Haley <mycae@yahoo.com> - 1.0b5-2
d500290
- Fix doc installation 
d500290
- Move to _javadir/ant/ rather than _javadir/
d500290
- Fix requires + buildrequires for both main and javadoc packages
d500290
- Add README.fedora source in lieu of  maven build 
d500290
d500290
* Sat Mar 14 2009 D Haley <mycae@yahoo.com> - 1.0b5-1
d500290
- Update to b5
d500290
- cpptasks now uses difficult mvn-doxia xdoc, so remove manual subpackage
d500290
- Add distribution jar check
d500290
- EOL conversion on NOTICE
d500290
- Change summary & format description
d500290
- Fix BuildRoot 
d500290
- Change licence to ASL 2.0 from Apache Software Licence 2.0
d500290
- Documentation to "Documentation" Group
d500290
d500290
* Sat Sep 02 2005 Anthony Green <green@redhat.com> - 0:1.0-0.b3.2jpp_1%{?dist}
d500290
- Remove "ghost" for javadocs and javadoc postprocessing.
d500290
- Place in Development/Libraries, not Development/Libraries/Java.
d500290
- Remove epoch references.
d500290
- Build into Fedora Extras.
d500290
d500290
* Mon Sep 06 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.0-0.b3.2jpp
d500290
- Upgrade to Ant 1.6.X
d500290
- Build with ant-1.6.2
d500290
- Upgraded to 1.0.b3 and relaxed requirements on Thu Jul 15 2004 
d500290
by Ralph Apel <r.apel at r-apel.de> as 0:1.0-0.b3.1jpp
d500290
d500290
* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.0-0.b2.4jpp
d500290
- Build with ant-1.6.2
d500290
- Relax versioned BuildReq
d500290
- Drop junit runtime requirement
d500290
d500290
* Fri Aug 06 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.0-0.b2.3jpp
d500290
- Also runtime dep to Ant 1.6.X
d500290
d500290
* Tue Jun 01 2004 Randy Watler <rwatler at finali.com> - 0:1.0-0.b2.2jpp
d500290
- Upgrade to Ant 1.6.X
d500290
d500290
* Wed Mar 24 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.0-0.b2.1jpp
d500290
- First JPackage release