diff --git a/cpptasks-1.0b5.tar.gz b/cpptasks-1.0b5.tar.gz new file mode 100644 index 0000000..20999a6 Binary files /dev/null and b/cpptasks-1.0b5.tar.gz differ diff --git a/cpptasks.spec b/cpptasks.spec new file mode 100644 index 0000000..a4d6f59 --- /dev/null +++ b/cpptasks.spec @@ -0,0 +1,53 @@ +Name: cpptasks +Version: 1.0b5 +Release: 1 +Summary: Compile and link task for ant +License: ASL 2.0 +URL: http://ant-contrib.sourceforge.net/ +Source0: http://downloads.sourceforge.net/ant-contrib/cpptasks-1.0b5.tar.gz +BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.ant:ant) mvn(xerces:xercesImpl) +BuildArch: noarch +%description +This ant task can compile various source languages and produce +executables, shared libraries (aka DLL's) and static libraries. Compiler +adaptors are currently available for several C/C++ compilers, FORTRAN, +MIDL and Windows Resource files. + +%package javadoc +Summary: Javadoc for %{name} +%description javadoc +Javadoc documentation for %{summary}. + +%prep +%setup -q +find . -name "*.jar" -exec rm -f {} \; +find . -name "*.class" -exec rm -f {} \; +sed -i 's/\r//' NOTICE +%pom_remove_plugin :maven-compiler-plugin +%pom_remove_plugin :maven-javadoc-plugin +%pom_remove_plugin :maven-source-plugin +%pom_remove_plugin :maven-assembly-plugin +%pom_change_dep ant:ant org.apache.ant:ant +%pom_remove_dep ant:ant-nodeps +%pom_remove_dep ant:ant-trax +%mvn_file :%{name} ant/%{name} + +%build +%mvn_build + +%install +%mvn_install +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/ +echo "ant/%{name}" > $RPM_BUILD_ROOT/%{_sysconfdir}/ant.d/%{name} + +%files -f .mfiles +%license LICENSE NOTICE +%doc +%{_sysconfdir}/ant.d/%{name} + +%files javadoc -f .mfiles-javadoc +%license LICENSE NOTICE + +%changelog +* Mon Aug 3 2020 chengzihan - 1.0b5-1 +- Package init diff --git a/cpptasks.yaml b/cpptasks.yaml new file mode 100644 index 0000000..d2c1786 --- /dev/null +++ b/cpptasks.yaml @@ -0,0 +1,4 @@ +version_control: svn +src_repo: https://svn.code.sf.net/p/ant-contrib/code/cpptasks/ +tag_prefix: "cpptasks-" +seperator: "."