Package apache-sshd: 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 | BuildRequires: /proc BuildRequires: jpackage-compat Name: apache-sshd Version: 0.7.0 Release: alt1_1jpp7 Summary: Apache SSHD Group: Development/Java License: ASL 2.0 URL: http://mina.apache.org/sshd # Take into account that this URL will take you to a mirror # system, so you will need to use a browser to get the real file: Source0: http://www.apache.org/dyn/closer.cgi/mina/sshd/%{version}/%{name}-%{version}-src.tar.gz # Build the core only: Patch0: %{name}-build-the-core-only.patch # Dont try to download the license file: Patch1: %{name}-dont-download-license.patch # Use jzlib and tomcat-apr as a system dependencies: Patch2: %{name}-use-jzlib-as-system-dependency.patch Patch3: %{name}-use-tomcat-apr-as-system-dependency.patch # User version of bouncycastle for JDK6: Patch4: %{name}-use-bouncycastle-for-jdk6.patch # Use slf4j-api: #Patch5: %{name}-use-slf4j-api.patch BuildArch: noarch Requires: jpackage-utils Requires: apache-mina >= 2.0.4 Requires: jzlib >= 1.1.0 Requires: tomcat-lib >= 7.0.25 BuildRequires: jpackage-utils BuildRequires: maven BuildRequires: apache-mina >= 2.0.4 BuildRequires: jzlib >= 1.1.0 BuildRequires: bouncycastle >= 1.46 BuildRequires: tomcat-lib >= 7.0.25 BuildRequires: maven-compiler-plugin BuildRequires: maven-install-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-release-plugin BuildRequires: maven-resources-plugin BuildRequires: maven-surefire-plugin Source44: import.info %package javadoc Summary: Javadocs for %{name} Group: Development/Java Requires: jpackage-utils BuildArch: noarch %description Apache SSHD is a 100%% pure java library to support the SSH protocols on both the client and server side. %description javadoc This package contains javadoc for %{name}. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 #%patch5 -p1 %build # In the tarball distributed by Apache the source code is inside the srv # directory: cd src # Skip the tests as they don't run correctly with the current # version of the jzlib compression library that we have in the # distribution at the moment: mvn-rpmbuild \ -Dmaven.test.skip=true \ -Dproject.build.sourceEncoding=UTF-8 \ -D_javadir=%{_javadir} \ install \ javadoc:aggregate %install # Jar files: mkdir -p %{buildroot}%{_javadir}/%{name} cp -p src/sshd-core/target/sshd-core-%{version}.jar %{buildroot}%{_javadir}/%{name}/sshd-core.jar # POM files: install -d -m 755 %{buildroot}%{_mavenpomdir} install -pm 644 src/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-sshd-parent.pom install -pm 644 src/sshd-core/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-sshd-core.pom # Dependency map: %add_maven_depmap JPP.%{name}-sshd-parent.pom %add_maven_depmap JPP.%{name}-sshd-core.pom %{name}/sshd-core.jar # Javadoc files: install -d -m 755 %{buildroot}%{_javadocdir}/%{name} cp -rp src/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/. %files %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %{_javadir}/* %doc src/LICENSE.txt %doc src/NOTICE.txt %files javadoc %{_javadocdir}/%{name} %doc src/LICENSE.txt %doc src/NOTICE.txt %changelog * Wed Sep 05 2012 Igor Vlasenko <viy@altlinux.ru> 0.7.0-alt1_1jpp7 - new release |