Package weld-core: 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 | BuildRequires: maven-enforcer-plugin geronimo-jta geronimo-jpa BuildRequires: /proc BuildRequires: jpackage-compat # %name or %version is ahead of its definition. Predefining for rpm 4.0 compatibility. %define name weld-core %define version 1.1.5 %global namedreltag .AS71.Final %global namedversion %{version}%{?namedreltag} Name: weld-core Version: 1.1.5 Release: alt1_4.AS71.Finaljpp7 Summary: Reference Implementation for JSR-299: Contexts and Dependency Injection (CDI) Group: Development/Java License: ASL 2.0 and LGPLv2+ and (CDDL or GPLv2 with exceptions) URL: http://seamframework.org/Weld # git clone git://github.com/weld/core.git weld-core # cd weld-core && git checkout 1.1.5.AS71.Final && git checkout-index -f -a --prefix=weld-core-1.1.5.AS71.Final/ # find weld-core-1.1.5.AS71.Final -name '*.jar' -delete # tar -cJf weld-core-1.1.5.AS71.Final-CLEAN.tar.xz weld-core-1.1.5.AS71.Final Source0: %{name}-%{namedversion}-CLEAN.tar.xz # Removing chestyle: Patch0: %{name}-remove-checkstyle.patch # Support for JDK7: Patch1: %{name}-fix-compilation-problem-on-jdk7.patch # Fix issue with bridge methods: Patch2: %{name}-fix-issue-with-bridge-methods.patch BuildArch: noarch BuildRequires: findbugs BuildRequires: jpackage-utils BuildRequires: jboss-interceptor BuildRequires: jboss-jsf-2.1-api BuildRequires: jboss-jsp-2.2-api BuildRequires: jboss-servlet-3.0-api BuildRequires: maven BuildRequires: maven-compiler-plugin BuildRequires: maven-install-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-surefire-provider-junit4 BuildRequires: weld-api BuildRequires: weld-parent Requires: jpackage-utils Requires: jboss-interceptor Requires: jboss-jsf-2.1-api Requires: jboss-jsp-2.2-api Requires: jboss-servlet-3.0-api Requires: weld-api Source44: import.info %description Weld is the reference implementation (RI) for JSR-299: Java Contexts and Dependency Injection for the Java EE platform (CDI). CDI is the Java standard for dependency injection and contextual lifecycle management, and integrates cleanly with the Java EE platform. Any Java EE 6-compliant application server provides support for JSR-299 (even the web profile). %package javadoc Summary: Javadocs for %{name} Group: Development/Java Requires: jpackage-utils BuildArch: noarch %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{name}-%{namedversion} %patch0 -p1 %patch1 -p1 %patch2 -p1 %build mvn-rpmbuild install javadoc:aggregate %install # Jar files: install -d -m 755 %{buildroot}%{_javadir} install -pm 644 impl/target/weld-core-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}.jar # POM files: install -d -m 755 %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-parent.pom install -pm 644 impl/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom # Dependencies map: %add_maven_depmap JPP-%{name}-parent.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar # Javadoc files: install -d -m 755 %{buildroot}%{_javadocdir}/%{name} cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} %files %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %{_javadir}/* %files javadoc %{_javadocdir}/%{name} %changelog * Wed Sep 12 2012 Igor Vlasenko <viy@altlinux.ru> 1.1.5-alt1_4.AS71.Finaljpp7 - new version |