packages: ant-cpptasks/ant-cpptasks.spec (NEW) - new, BR for stanse

pawelz pawelz at pld-linux.org
Tue Oct 13 13:51:15 CEST 2009


Author: pawelz                       Date: Tue Oct 13 11:51:15 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, BR for stanse

---- Files affected:
packages/ant-cpptasks:
   ant-cpptasks.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ant-cpptasks/ant-cpptasks.spec
diff -u /dev/null packages/ant-cpptasks/ant-cpptasks.spec:1.1
--- /dev/null	Tue Oct 13 13:51:15 2009
+++ packages/ant-cpptasks/ant-cpptasks.spec	Tue Oct 13 13:51:10 2009
@@ -0,0 +1,188 @@
+# $Revision$, $Date$
+
+%if "%{pld_release}" == "ti"
+%bcond_without	java_sun	# build with gcj
+%else
+%bcond_with	java_sun	# build with java-sun
+%endif
+#
+%include	/usr/lib/rpm/macros.java
+
+%define		_rc	b5
+
+Summary:	C/C++, FORTRAN, MIDL and Windows Resource compilers tasks for ant
+Name:		ant-cpptasks
+Version:	1.0
+Release:	0.%{_rc}.1
+License:	Apache v2.0
+Group:		Development/Languages/Java
+Source0: http://downloads.sourceforge.net/project/ant-contrib/ant-contrib/cpptasks-1.0-beta5/cpptasks-1.0%{_rc}.tar.gz
+# Source0-md5:	7f0f7732acd0c82f7efb228f667ec79a
+URL:		http://sf.net/projects/ant-contrib
+BuildRequires:	ant
+%{!?with_java_sun:BuildRequires:	java-gcj-compat-devel}
+%{?with_java_sun:BuildRequires:	java-sun}
+BuildRequires:	java-xerces
+BuildRequires:	jpackage-utils
+BuildRequires:	rpm >= 4.4.9-56
+BuildRequires:	rpm-javaprov
+BuildRequires:	rpmbuild(macros) >= 1.300
+# for %{_javadir}
+Requires:	jpackage-utils
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The cc task can compile various source languages and produce executables,
+shared libraries (aka DLL's) and static libraries. Compiler adaptors are
+currently available for C/C++, FORTRAN, MIDL and Windows Resource compilers.
+
+%prep
+%setup -q -n cpptasks-%{version}%{_rc}
+
+%build
+export JAVA_HOME="%{java_home}"
+
+required_jars="xerces-j2"
+CLASSPATH=$(build-classpath $required_jars)
+
+%ant
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}/ant
+
+# jars
+cp -a target/lib/cpptasks.jar $RPM_BUILD_ROOT%{_javadir}/ant/cpptasks.jar
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_javadir}/ant/*.jar
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/10/13 11:51:10  pawelz
+- new, BR for stanse
+
+Revision 1.38  2009/09/20 20:14:07  pawelz
+- -n %{srcname}-%{version} option for %setup
+
+Revision 1.37  2009/04/09 17:51:48  pawelz
+- demo G: Documentation
+
+Revision 1.36  2009/04/06 10:23:32  glen
+- typo
+
+Revision 1.35  2009/04/03 15:57:29  pawelz
+- typo
+
+Revision 1.34  2009/04/03 15:01:01  pawelz
+- jdk BRs
+- versioned rpm BR for %{pld_release}
+
+Revision 1.33  2009/04/03 14:57:37  pawelz
+- jdk bconds
+- use %%srcname for Name without java- prefix
+
+Revision 1.32  2009/02/02 12:21:08  glen
+- better group for -demo
+
+Revision 1.31  2008/11/23 21:05:12  glen
+- Libraries/Java
+
+Revision 1.30  2008/10/03 19:06:38  glen
+- demo copy sample
+
+Revision 1.29  2007-12-19 22:35:38  glen
+- undos sample
+
+Revision 1.28  2007-12-11 17:02:14  glen
+- export CLASSPATH separately to be able to catch error from subshell
+
+Revision 1.27  2007-12-09 08:29:20  glen
+- avoid copy-pasto errors
+
+Revision 1.26  2007-12-09 00:09:02  glen
+- assume we have java on all arch
+
+Revision 1.25  2007-12-02 21:42:10  glen
+- add -manual, drop -source
+
+Revision 1.24  2007-12-02 18:35:09  glen
+- corrections
+
+Revision 1.23  2007-11-21 22:26:00  glen
+- found sample %package demo
+
+Revision 1.22  2007-11-21 22:15:51  glen
+- more stuff to copy paste
+
+Revision 1.21  2007-10-09 17:18:26  glen
+- comment out %files demo (no %package)
+
+Revision 1.20  2007/05/03 22:40:53  glen
+- ln -nfs sounds funnier
+
+Revision 1.19  2007/04/29 22:59:04  qboosh
+- ln -snf just in case
+
+Revision 1.18  2007/04/29 22:57:19  qboosh
+- reverted, symlink is ghost
+
+Revision 1.17  2007/04/29 22:53:48  qboosh
+- postun for javadoc
+
+Revision 1.16  2007/04/29 22:50:37  qboosh
+- removed pl declension (unknown case)
+
+Revision 1.15  2007/04/15 19:57:13  glen
+- rosa helikopers
+
+Revision 1.14  2007/04/11 23:18:10  glen
+- need src subdir
+
+Revision 1.13  2007/04/11 23:08:06  glen
+- -demo and -source packages
+
+Revision 1.12  2007/04/11 21:09:18  glen
+- some better ideas from jpackage
+
+Revision 1.11  2007/04/11 17:02:46  glen
+- without api/ subdir in -javadoc
+
+Revision 1.10  2007/04/10 23:40:41  glen
+- java autodeps
+
+Revision 1.9  2007/04/09 21:17:45  glen
+- Group Documentation for -doc
+
+Revision 1.8  2007/04/09 21:09:55  glen
+- common javadoc install
+
+Revision 1.7  2007/04/09 21:03:41  glen
+- install jars for jakarta builds
+
+Revision 1.6  2007/04/09 20:50:05  glen
+- sample for jar install
+
+Revision 1.5  2007/02/12 22:09:17  glen
+- tabs in preamble
+
+Revision 1.4  2007/02/12 01:06:46  baggins
+- converted to UTF-8
+
+Revision 1.3  2007/02/01 21:23:14  glen
+- sample for versioned jars
+
+Revision 1.2  2007/01/31 17:16:04  glen
+- unneccessary quoting removed
+
+Revision 1.1  2007/01/31 17:14:33  glen
+- template based on ant.spec; feel free to advance this
================================================================


More information about the pld-cvs-commit mailing list