Package metrics: 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 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 | Group: Development/Java # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-build-java # END SourceDeps(oneline) %filter_from_requires /^java-headless/d BuildRequires: /proc BuildRequires: jpackage-generic-compat %define fedora 23 Name: metrics Version: 3.0.1 Release: alt1_6jpp8 Summary: Java library which gives you what your code does in production License: ASL 2.0 URL: http://metrics.dropwizard.io Source0: https://github.com/dropwizard/metrics/archive/v%{version}.tar.gz BuildRequires: maven-local BuildRequires: mvn(ch.qos.logback:logback-classic) BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind) BuildRequires: mvn(com.sun.jersey:jersey-server:1.19) BuildRequires: mvn(info.ganglia.gmetric4j:gmetric4j) BuildRequires: mvn(javax.servlet:javax.servlet-api) BuildRequires: mvn(log4j:log4j:1.2.17) BuildRequires: mvn(net.sf.ehcache:ehcache-core) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.httpcomponents:httpclient) BuildRequires: mvn(org.jdbi:jdbi) BuildRequires: mvn(org.slf4j:slf4j-api) %if 0 # metrics-jetty9 deps BuildRequires: mvn(org.eclipse.jetty:jetty-client) BuildRequires: mvn(org.eclipse.jetty:jetty-server) # metrics-benchmarks deps BuildRequires: mvn(com.google.caliper:caliper:1.0-beta-1) BuildRequires: mvn(com.google.guava:guava:14.0.1) # Test deps BuildRequires: mvn(com.sun.jersey.jersey-test-framework:jersey-test-framework-inmemory:1.19) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.easytesting:fest-assert-core:2.0M10) BuildRequires: mvn(org.eclipse.jetty:jetty-servlet) BuildRequires: mvn(org.mockito:mockito-all) BuildRequires: mvn(org.slf4j:slf4j-simple) %endif # Docs deps BuildRequires: python-module-sphinx BuildRequires: /usr/bin/pdflatex BuildArch: noarch Source44: import.info %description Metrics is a Java library which gives you unparalleled insight into what your code does in production. Developed by Yammer to instrument their JVM-based back-end services, Metrics provides a powerful toolkit of ways to measure the behavior of critical components in your production environment. With modules for common libraries like Jetty, Logback, Log4j, Apache HttpClient, Ehcache, JDBI, Jersey and reporting back-ends like Ganglia and Graphite, Metrics provides you with full-stack visibility. For more information, please see the documentation. This package provides the Metrics Core Library. %package annotation Group: Development/Java Summary: Annotations for Metrics %description annotation A dependency-less package of just the annotations used by other Metrics modules. %if 0 %package benchmarks Group: Development/Java Summary: Benchmarks for Metrics %description benchmarks A development module for performance benchmarks of Metrics classes. %endif %package ehcache Group: Development/Java Summary: Metrics Integration for Ehcache %description ehcache An Ehcache wrapper providing Metrics instrumentation of caches. %package ganglia Group: Development/Java Summary: Ganglia Integration for Metrics %description ganglia A reporter for Metrics which announces measurements to a Ganglia cluster. %package graphite Group: Development/Java Summary: Graphite Integration for Metrics %description graphite A reporter for Metrics which announces measurements to a Graphite server. %package healthchecks Group: Development/Java Summary: Metrics Health Checks %description healthchecks An addition to Metrics which provides the ability to run application-specific health checks, allowing you to check your application's heath in production. %package httpclient Group: Development/Java Summary: Metrics Integration for Apache HttpClient %description httpclient An Apache HttpClient wrapper providing Metrics instrumentation of connection pools, request durations and rates, and other useful information. %package jdbi Group: Development/Java Summary: Metrics Integration for JDBI %description jdbi A JDBI wrapper providing Metrics instrumentation of query durations and rates. %package jersey Group: Development/Java Summary: Metrics Integration for Jersey %description jersey A set of class providing Metrics integration for Jersey, the reference JAX-RS implementation. %if 0 %package jetty Group: Development/Java Summary: Metrics Integration for Jetty 9 %description jetty A set of extensions for Jetty 9 which provide instrumentation of thread pools, connector metrics, and application latency and utilization. %endif %package json Group: Development/Java Summary: Jackson Integration for Metrics %description json A set of Jackson modules which provide serializers for most Metrics classes. %package jvm Group: Development/Java Summary: JVM Integration for Metrics %description jvm A set of classes which allow you to monitor critical aspects of your Java Virtual Machine using Metrics. %package log4j Group: Development/Java Summary: Metrics Integration for Log4j %if %{?fedora} > 20 Requires: log4j12 %endif %description log4j An instrumented appender for Log4j. %package logback Group: Development/Java Summary: Metrics Integration for Logback %description logback An instrumented appender for Logback. %package servlet Group: Development/Java Summary: Metrics Integration for Servlets %description servlet An instrumented filter for servlet environments. %package servlets Group: Development/Java Summary: Metrics Utility Servlets %description servlets A set of utility servlets for Metrics, allowing you to expose valuable information about your production environment. %package javadoc Group: Development/Java Summary: Javadoc for %{name} BuildArch: noarch %description javadoc This package contains javadoc for %{name}. %package doc Group: Development/Java Summary: Metrics's user manual %description doc This package contains %{name}'s user manual. %prep %setup -q -n %{name}-%{version} find . -name "*.class" -delete find . -name "*.jar" -type f -delete # Unavailable build deps: %pom_disable_module metrics-jetty8 %pom_disable_module metrics-benchmarks # TODO see rhbz#861502#c3 rhbz#861502#c5 disable jetty9 sub-module (use jetty 9.0.4.v20130625) org.eclipse.jetty.server.HttpChannelState.isDispatched method was removed %pom_disable_module metrics-jetty9 # org.easytesting:fest-assert-core:2.0M10 * %pom_remove_dep org.easytesting:fest-assert-core %pom_remove_plugin :findbugs-maven-plugin %pom_remove_plugin :maven-enforcer-plugin # Disable javadoc jar %pom_xpath_remove "pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions" # Disable source jar %pom_remove_plugin :maven-source-plugin %pom_xpath_set "pom:properties/pom:jersey.version" 1.19 %{name}-jersey %mvn_package ":%{name}-core" %{name} %mvn_package ":%{name}-parent" %{name} %if 0 %mvn_package ":%{name}-jetty9" %{name}-jetty %endif %build # Unavailable test dep * %mvn_build -s -f ( cd docs %if 0 make %{?_smp_mflags} latexpdf %endif make %{?_smp_mflags} singlehtml make %{?_smp_mflags} man ) %install %mvn_install mkdir -p %{buildroot}%{_mandir}/man1 install -pm 644 docs/target/man/%{name}.1 %{buildroot}%{_mandir}/man1/ rm -rf docs/target/singlehtml/.buildinfo %files -f .mfiles-%{name} %dir %{_javadir}/%{name} %doc README.md %doc LICENSE NOTICE %files annotation -f .mfiles-%{name}-annotation %doc LICENSE NOTICE %if 0 %files benchmarks -f .mfiles-%{name}-benchmarks %doc LICENSE NOTICE %endif %files ehcache -f .mfiles-%{name}-ehcache %doc LICENSE NOTICE %files ganglia -f .mfiles-%{name}-ganglia %doc LICENSE NOTICE %files graphite -f .mfiles-%{name}-graphite %doc LICENSE NOTICE %files healthchecks -f .mfiles-%{name}-healthchecks %doc LICENSE NOTICE %files httpclient -f .mfiles-%{name}-httpclient %doc LICENSE NOTICE %files jdbi -f .mfiles-%{name}-jdbi %doc LICENSE NOTICE %files jersey -f .mfiles-%{name}-jersey %doc LICENSE NOTICE %if 0 %files jetty -f .mfiles-%{name}-jetty %doc LICENSE NOTICE %endif %files json -f .mfiles-%{name}-json %doc LICENSE NOTICE %files jvm -f .mfiles-%{name}-jvm %doc LICENSE NOTICE %files log4j -f .mfiles-%{name}-log4j %doc LICENSE NOTICE %files logback -f .mfiles-%{name}-logback %doc LICENSE NOTICE %files servlet -f .mfiles-%{name}-servlet %doc LICENSE NOTICE %files servlets -f .mfiles-%{name}-servlets %doc LICENSE NOTICE %files javadoc -f .mfiles-javadoc %doc LICENSE NOTICE %files doc %{_mandir}/man1/%{name}.* %doc LICENSE NOTICE %doc docs/target/singlehtml %if 0 %doc docs/target/latex/*.pdf %endif %changelog * Mon Feb 08 2016 Igor Vlasenko <viy@altlinux.ru> 3.0.1-alt1_6jpp8 - new version |