Package cpptasks: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | Epoch: 0 BuildRequires: /proc BuildRequires: jpackage-compat Name: cpptasks Version: 1.0b5 Release: alt2_8jpp7 Summary: Compile and link task for ant Group: Development/Java License: ASL 2.0 URL: http://ant-contrib.sourceforge.net/ Source0: http://downloads.sourceforge.net/ant-contrib/cpptasks-1.0b5.tar.gz Source1: %{name}-README.fedora BuildRequires: ant BuildRequires: ant-junit BuildRequires: jpackage-utils BuildRequires: junit #BuildRequires: mave Requires: ant Requires: jpackage-utils BuildArch: noarch Source44: import.info %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} Group: Development/Java Requires: cpptasks >= %{version}-%{release} Requires: jpackage-utils BuildArch: noarch %description javadoc Javadoc documentation for %{summary}. #The manual for b5 has been moved to xdoc (doxia) format. # This requires maven, which requires many dependencies which we don't have. #%package manual #Summary: Docs for %{name} #Group: Development/Documentation #%description manual #User manual for %{summary}. %prep %setup -q -n %{name}-%{version} #End of line conversion %{__sed} -i 's/\r//' NOTICE #Check for exisiting jar files JAR_files="" for j in $(find -name \*.jar); do if [ ! -L $j ] ; then JAR_files="$JAR_files $j" fi done if [ ! -z "$JAR_files" ] ; then echo "These JAR files should be deleted and symlinked to system JAR files: $JAR_files" exit 1 fi cp -p %{SOURCE1} ./README.fedora %build export OPT_JAR_LIST="ant/ant-junit junit" export CLASSPATH= ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 jars javadocs #In lieu of maven built docs, which requires clirr #a URL is supplied in README.fedora #mvn-jpp site %install # jars mkdir -p $RPM_BUILD_ROOT%{_javadir}/ant/ install -Dpm 644 target/lib/%{name}.jar \ $RPM_BUILD_ROOT%{_javadir}/ant/%{name}-%{version}.jar pushd $RPM_BUILD_ROOT%{_javadir}/ant/ ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{name}.jar popd # javadoc install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr target/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink # manual - #install -dm 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} #cp -pr docs/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} #Place a file into ant's config dir mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/ echo "ant/%{name}" > $RPM_BUILD_ROOT/%{_sysconfdir}/ant.d/%{name} # jpp compat ln -s ant/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar %add_to_maven_depmap ant-contrib %{name} %{namedversion} JPP %{name} # poms install -D -m 644 pom.xml $RPM_BUILD_ROOT%_mavenpomdir/JPP-%{name}.pom %files %doc LICENSE NOTICE README.fedora %{_javadir}/ant/*.jar %{_sysconfdir}/ant.d/%{name} %{_javadir}/%{name}.jar %{_mavendepmapfragdir}/* %_mavenpomdir/* %files javadoc %doc %{_javadocdir}/%{name}-%{version} %doc %{_javadocdir}/%{name} #%files manual #%defattr(-,root,root,-) #%doc %{_docdir}/%{name}-%{version} # ----------------------------------------------------------------------------- %changelog * Mon Aug 27 2012 Igor Vlasenko <viy@altlinux.ru> 0:1.0b5-alt2_8jpp7 - added jpp compatible symlink * Fri Aug 24 2012 Igor Vlasenko <viy@altlinux.ru> 0:1.0b5-alt1_8jpp7 - fc version * Tue Feb 01 2011 Igor Vlasenko <viy@altlinux.ru> 0:1.0-alt2_0.b5.1jpp5 - fixed build * Tue May 19 2009 Igor Vlasenko <viy@altlinux.ru> 0:1.0-alt1_0.b5.1jpp5 - new version * Fri Mar 27 2009 Igor Vlasenko <viy@altlinux.ru> 0:1.0-alt1_0.b4.1jpp5 - fixed repocop warnings * Mon Jun 04 2007 Igor Vlasenko <viy@altlinux.ru> 0:1.0-alt1_0.b4.1jpp1.7 - converted from JPackage by jppimport script |