Package findbugs: 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 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 | Epoch: 0 Group: Development/Other # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-macros-java BuildRequires: perl(FileHandle.pm) unzip # END SourceDeps(oneline) BuildRequires: tex(pdftex.def) BuildRequires: tex(dehypht.tex) BuildRequires: /proc rpm-build-java BuildRequires: jpackage-default # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %global noupdatechecks_version 20140707gitcce19ac Name: findbugs Version: 3.0.1 Release: alt2_25jpp11 Summary: Find bugs in Java code License: LGPLv2+ URL: http://findbugs.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-source.zip Source1: findbugs-ant Source2: findbugs-tools-README Source3: http://repo1.maven.org/maven2/com/google/code/findbugs/findbugs/3.0.1/findbugs-3.0.1.pom Source4: http://repo1.maven.org/maven2/com/google/code/findbugs/annotations/3.0.0/annotations-3.0.0.pom # This archive contains the source for the noUpdateChecks plugin. # It was created with: # $ git clone --bare https://code.google.com/p/findbugs # $ git --git-dir=findbugs.git archive --format tgz cce19ac plugins/noUpdateChecks -o noUpdateChecks-plugin-20140707gitcce19ac.tgz Source5: noUpdateChecks-plugin-%{noupdatechecks_version}.tgz Source6: http://repo1.maven.org/maven2/com/google/code/findbugs/findbugs-ant/3.0.0/findbugs-ant-3.0.0.pom # This patch has not been submitted upstream, as it contains Fedora-specific # changes. It looks in /usr/share/java for jar files at compile time, instead # of in findbugs' lib directory. Patch0: findbugs-build.patch # Fedora-specific patch: # - Remove Class-Path entry from findbugs.jar manifest; use build-classpath # instead (#575632) # - Simplify shell fragment that determines findbugs_home (also fixes #848612) Patch1: findbugs-fedora.patch # Fedora-specific patch to allow Ant task to work even though findbugs.jar has # no Class-Path attribute in its manifest (bug #1080682) Patch2: findbugs-ant-task-classpath.patch Patch3: findbugs-manual.patch # Port to dom4j 2.0 Patch4: findbugs-dom4j.patch Patch5: findbugs-javadoc.patch Patch6: findbugs-java11.patch BuildArch: noarch BuildRequires: findbugs-bcel BuildRequires: ant BuildRequires: docbook-style-xsl BuildRequires: apache-commons-lang BuildRequires: dom4j BuildRequires: jaxen BuildRequires: jcip-annotations BuildRequires: jdepend BuildRequires: jFormatString BuildRequires: jpackage-utils BuildRequires: jsr-305 BuildRequires: junit BuildRequires: objectweb-asm BuildRequires: perl-devel BuildRequires: rpm-build-perl BuildRequires: tex(latex) BuildRequires: texlive-collection-basic # Add temporary dependency on javapackages-local, for %%add_maven_depmap macro # See https://lists.fedoraproject.org/archives/list/java-devel@lists.fedoraproject.org/thread/R3KZ7VI5DPCMCELFIVJQ4AXB2WQED35C/ BuildRequires: javapackages-local # For generating HTML version of manual using xsltproc BuildRequires: libxslt xsltproc BuildRequires: docbook-style-xsl Requires: findbugs-bcel Requires: apache-commons-lang Requires: dom4j Requires: java >= 1.6.0 Requires: jaxen Requires: jcip-annotations Requires: jFormatString Requires: jpackage-utils Requires: jsr-305 Requires: junit Requires: objectweb-asm Source44: import.info %description Findbugs is a program which uses static analysis to look for bugs in Java code. It can check for null pointer exceptions, multithreaded code errors, and other bugs. %package -n ant-findbugs Group: Development/Java Summary: Ant task for findbugs Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: ant %description -n ant-findbugs This package defines an ant task for findbugs for easy integration of findbugs into your ant-controlled project. %package javadoc Group: Development/Documentation Summary: Javadoc documentation for findbugs BuildArch: noarch %description javadoc Javadoc documentation for findbugs. %package tools Group: Development/Other Summary: Addon tools for findbugs Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: junit %description tools This package contains additional tools for use with findbugs. See README.fedora for more information. %prep %setup -q %setup -a 5 %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 cp -p %{SOURCE2} README.fedora # Make sure we don't accidentally use any existing JAR files rm -f lib/*.jar # Get rid of code for Mac OS X that depends on a jar from Apple rm -f src/gui/edu/umd/cs/findbugs/gui2/OSXAdapter.java %pom_remove_dep com.apple:AppleJavaExtensions %{SOURCE3} %build # Build the class files and docs ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 docs build # Build the javadocs ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 apiJavadoc # Build the architecture PDF pushd design/architecture make depend make popd # Package up the tools pushd build/classes jar cf ../../lib/findbugs-tools.jar edu/umd/cs/findbugs/tools popd # Build the noUpdateChecks plugin pushd plugins/noUpdateChecks ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 plugin-jar popd %install # Install the jars mkdir -p $RPM_BUILD_ROOT%{_javadir} cp -p lib/annotations.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-annotations.jar cp -p lib/%{name}-tools.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-tools.jar cp -p lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar # Install the ant task mkdir -p $RPM_BUILD_ROOT%{_javadir}/ant cp -p lib/%{name}-ant.jar $RPM_BUILD_ROOT%{_javadir}/ant/ant-%{name}.jar mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/%{name} # Install the javadocs mkdir -p $RPM_BUILD_ROOT%{_javadocdir} cp -a apiJavaDoc $RPM_BUILD_ROOT%{_javadocdir}/%{name} # Install the scripts mkdir -p $RPM_BUILD_ROOT%{_bindir} for f in $(find bin -maxdepth 1 -type f \! -name '*.bat' \! -name '*.ico'); do cp -p $f $RPM_BUILD_ROOT%{_bindir} done # Install the shared files mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name} cp -a etc plugin $RPM_BUILD_ROOT%{_datadir}/%{name} # Install the noUpdateChecks plugin cp -p plugins/noUpdateChecks/build/noUpdateChecks.jar $RPM_BUILD_ROOT%{_datadir}/%{name}/plugin # Create /usr/share/findbugs/lib directory containing symlinks to required JARs (bug #1080682) # List is based on the Class-Path attribute in etc/MANIFEST-findbugs.MF mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/lib for i in findbugs findbugs-bcel dom4j jaxen objectweb-asm/asm-all jsr-305 \ jFormatString apache-commons-lang; do ln -s %{_javadir}/$i.jar $RPM_BUILD_ROOT%{_datadir}/%{name}/lib done # Remove now unnecessary build-only manual files so %%doc doesn't get them rm -f build/doc/manual*.xml build/doc/manual*.xsl # Install poms mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir} sed -i 's/3\.0\.0/3\.0\.1/g' %{SOURCE4} %{SOURCE6} cp %{SOURCE3} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom cp %{SOURCE4} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-annotations.pom cp %{SOURCE6} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.ant-ant-%{name}.pom # Add depmaps %add_maven_depmap -a net.sourceforge.findbugs:findbugs JPP-%{name}.pom %{name}.jar %add_maven_depmap -a net.sourceforge.findbugs:annotations JPP-%{name}-annotations.pom %{name}-annotations.jar %add_maven_depmap -a net.sourceforge.findbugs:findbugs-ant JPP.ant-ant-%{name}.pom ant/ant-findbugs.jar -f ant # set_javadoc_namelink_check %pre javadoc path = "%{_javadocdir}/%{name}" if [ -L $path ]; then rm -f $path fi ||: %files -f .mfiles %doc design/DecouplingFromBCEL.txt design/VisitingAndCaching.txt %doc README.txt design/eclipse\ findbugs\ plugin\ features.sxw %doc design/architecture/architecture.pdf build/doc %doc --no-dereference licenses/LICENSE.txt %{_bindir}/* %{_datadir}/%{name} %files -n ant-findbugs -f .mfiles-ant %doc --no-dereference licenses/LICENSE.txt %config(noreplace) %{_sysconfdir}/ant.d/%{name} %files javadoc %{_javadocdir}/* %files tools %doc README.fedora %doc --no-dereference licenses/LICENSE.txt %{_javadir}/findbugs-tools.jar %changelog * Mon Aug 09 2021 Igor Vlasenko <viy@altlinux.org> 0:3.0.1-alt2_25jpp11 - texlive 2021 support * Thu Jun 10 2021 Igor Vlasenko <viy@altlinux.org> 0:3.0.1-alt1_25jpp11 - fc34 update * Tue Jun 01 2021 Igor Vlasenko <viy@altlinux.org> 0:3.0.1-alt1_23jpp11 - update * Thu Apr 02 2020 Igor Vlasenko <viy@altlinux.ru> 0:3.0.1-alt1_20jpp8 - fixed pom for gradle * Sat Jul 13 2019 Igor Vlasenko <viy@altlinux.ru> 0:3.0.1-alt1_17jpp8 - fc update * Sun Jun 03 2018 Igor Vlasenko <viy@altlinux.ru> 0:3.0.1-alt1_14jpp8 - fc28+ update * Fri Apr 20 2018 Igor Vlasenko <viy@altlinux.ru> 0:3.0.1-alt1_13jpp8 - java update * Thu Nov 09 2017 Igor Vlasenko <viy@altlinux.ru> 0:3.0.1-alt1_12jpp8 - fc27 update * Wed Nov 01 2017 Igor Vlasenko <viy@altlinux.ru> 0:3.0.1-alt1_8jpp8 - new jpp release * Fri Dec 16 2016 Igor Vlasenko <viy@altlinux.ru> 0:3.0.1-alt1_6jpp8 - new fc release * Tue Nov 22 2016 Igor Vlasenko <viy@altlinux.ru> 0:3.0.1-alt1_5jpp8 - new fc release * Fri Feb 12 2016 Igor Vlasenko <viy@altlinux.ru> 0:3.0.1-alt1_4jpp8 - new version * Fri Jan 22 2016 Igor Vlasenko <viy@altlinux.ru> 0:3.0.1-alt0.1jpp - bootstrap pack of jars created with jppbootstrap script - temporary package to satisfy circular dependencies * Sat Aug 02 2014 Igor Vlasenko <viy@altlinux.ru> 0:1.3.9-alt2_15jpp7 - new release * Thu Jul 10 2014 Igor Vlasenko <viy@altlinux.ru> 0:1.3.9-alt2_12jpp7 - converted from JPackage by jppimport script * Wed Sep 12 2012 Igor Vlasenko <viy@altlinux.ru> 0:1.3.9-alt2_5jpp6 - build with saxon6 * Fri Feb 10 2012 Igor Vlasenko <viy@altlinux.ru> 0:1.3.9-alt1_5jpp6 - new release * Wed Feb 08 2012 Igor Vlasenko <viy@altlinux.ru> 0:1.3.9-alt1_2jpp6 - new version * Mon Nov 17 2008 Igor Vlasenko <viy@altlinux.ru> 0:1.3.4-alt2_2jpp5 - removed obsolete update_menus |