Package bouncycastle1.65: 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 | %define oldname bouncycastle Epoch: 0 Group: System/Libraries # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-macros-java # END SourceDeps(oneline) BuildRequires: /proc rpm-build-java BuildRequires: jpackage-11-compat # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %global gittag r1rv65 %global classname org.bouncycastle.jce.provider.BouncyCastleProvider Summary: Bouncy Castle Cryptography APIs for Java Name: bouncycastle1.65 Version: 1.65 Release: alt3_4jpp11 License: MIT URL: http://www.bouncycastle.org Source0: https://github.com/bcgit/bc-java/archive/%{gittag}.tar.gz # POMs from Maven Central Source1: https://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk15on/%{version}/bcprov-jdk15on-%{version}.pom Source2: https://repo1.maven.org/maven2/org/bouncycastle/bcpkix-jdk15on/%{version}/bcpkix-jdk15on-%{version}.pom Source3: https://repo1.maven.org/maven2/org/bouncycastle/bcpg-jdk15on/%{version}/bcpg-jdk15on-%{version}.pom Source4: https://repo1.maven.org/maven2/org/bouncycastle/bcmail-jdk15on/%{version}/bcmail-jdk15on-%{version}.pom Source5: https://repo1.maven.org/maven2/org/bouncycastle/bctls-jdk15on/%{version}/bctls-jdk15on-%{version}.pom # Script to fetch POMs from Maven Central Source6: get-poms.sh BuildArch: noarch BuildRequires: aqute-bnd BuildRequires: ant BuildRequires: ant-junit BuildRequires: jakarta-mail BuildRequires: jakarta-activation BuildRequires: javapackages-local Requires(post): javapackages-tools Requires(postun): javapackages-tools Provides: bcprov = %{version}-%{release} Source44: import.info %description The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains JCE provider and lightweight API for the Bouncy Castle Cryptography APIs for JDK 1.5 to JDK 1.8. %package pkix Group: System/Libraries Summary: Bouncy Castle PKIX, CMS, EAC, TSP, PKCS, OCSP, CMP, and CRMF APIs %description pkix The Bouncy Castle Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and certificate generation. This jar contains APIs for JDK 1.5 to JDK 1.8. The APIs can be used in conjunction with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs. %package pg Group: System/Libraries Summary: Bouncy Castle OpenPGP API %description pg The Bouncy Castle Java API for handling the OpenPGP protocol. This jar contains the OpenPGP API for JDK 1.5 to JDK 1.8. The APIs can be used in conjunction with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs. %package mail Group: System/Libraries Summary: Bouncy Castle S/MIME API %description mail The Bouncy Castle Java S/MIME APIs for handling S/MIME protocols. This jar contains S/MIME APIs for JDK 1.5 to JDK 1.8. The APIs can be used in conjunction with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs. The JavaMail API and the Java activation framework will also be needed. %package tls Group: System/Libraries Summary: Bouncy Castle JSSE provider and TLS/DTLS API %description tls The Bouncy Castle Java APIs for TLS and DTLS, including a provider for the JSSE. %package javadoc Group: Development/Java Summary: Javadoc for %{oldname} BuildArch: noarch %description javadoc API documentation for the Bouncy Castle Cryptography APIs. %prep %setup -q -n bc-java-%{gittag} # Remove provided binaries find . -type f -name "*.class" -exec rm -f {} \; find . -type f -name "*.jar" -exec rm -f {} \; # Relax javadoc linting and set expected source encoding sed -i -e '/<javadoc/aadditionalparam="-Xdoclint:none" encoding="UTF-8" source="1.8"' \ -e '/<javac/aencoding="UTF-8"' ant/bc+-build.xml cp -p %{SOURCE1} bcprov.pom cp -p %{SOURCE2} bcpkix.pom cp -p %{SOURCE3} bcpg.pom cp -p %{SOURCE4} bcmail.pom cp -p %{SOURCE5} bctls.pom %build ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 -f ant/jdk15+.xml \ -Djunit.jar.home=$(build-classpath junit) \ -Dmail.jar.home=$(build-classpath javax.mail) \ -Dactivation.jar.home=$(build-classpath jakarta-activation/jakarta.activation) \ -Drelease.debug=true -Dbc.javac.source=1.8 -Dbc.javac.target=1.8 \ clean build-provider build #test cat > bnd.bnd <<EOF -classpath=bcprov.jar,bcpkix.jar,bcpg.jar,bcmail.jar,bctls.jar Export-Package: *;version=%{version} EOF for bc in bcprov bcpkix bcpg bcmail bctls ; do # Make into OSGi bundle bnd wrap -b $bc -v %{version} -p bnd.bnd -o $bc.jar build/artifacts/jdk1.5/jars/$bc-jdk15on-*.jar # Request Maven installation %mvn_file ":$bc-jdk15on" $bc %mvn_package ":$bc-jdk15on" $bc %mvn_alias ":$bc-jdk15on" "org.bouncycastle:$bc-jdk16" "org.bouncycastle:$bc-jdk15" %mvn_artifact $bc.pom $bc.jar done # Not shipping the "lcrypto" jar, so don't ship the javadoc for it rm -rf build/artifacts/jdk1.5/javadoc/lcrypto %mvn_compat_version : %{version} %install install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/java/security/security.d touch $RPM_BUILD_ROOT%{_sysconfdir}/java/security/security.d/2000-%{classname} %mvn_install -J build/artifacts/jdk1.5/javadoc %post { # Rebuild the list of security providers in classpath.security suffix=security/classpath.security secfiles="/usr/lib/$suffix /usr/lib64/$suffix" for secfile in $secfiles do # check if this classpath.security file exists [ -f "$secfile" ] || continue sed -i '/^security\.provider\./d' "$secfile" count=0 for provider in $(ls /etc/java/security/security.d) do count=$((count + 1)) echo "security.provider.${count}=${provider#*-}" >> "$secfile" done done } || : %postun if [ "$1" -eq 0 ] ; then { # Rebuild the list of security providers in classpath.security suffix=security/classpath.security secfiles="/usr/lib/$suffix /usr/lib64/$suffix" for secfile in $secfiles do # check if this classpath.security file exists [ -f "$secfile" ] || continue sed -i '/^security\.provider\./d' "$secfile" count=0 for provider in $(ls /etc/java/security/security.d) do count=$((count + 1)) echo "security.provider.${count}=${provider#*-}" >> "$secfile" done done } || : fi %files -f .mfiles-bcprov %doc --no-dereference build/artifacts/jdk1.5/bcprov-jdk15on-*/LICENSE.html %doc docs/ *.html %{_sysconfdir}/java/security/security.d/2000-%{classname} %files pkix -f .mfiles-bcpkix %doc --no-dereference build/artifacts/jdk1.5/bcpkix-jdk15on-*/LICENSE.html %files pg -f .mfiles-bcpg %doc --no-dereference build/artifacts/jdk1.5/bcpg-jdk15on-*/LICENSE.html %files mail -f .mfiles-bcmail %doc --no-dereference build/artifacts/jdk1.5/bcmail-jdk15on-*/LICENSE.html %files tls -f .mfiles-bctls %doc --no-dereference build/artifacts/jdk1.5/bctls-jdk15on-*/LICENSE.html %files javadoc -f .mfiles-javadoc %doc --no-dereference LICENSE.html %changelog * Mon Jul 11 2022 Igor Vlasenko <viy@altlinux.org> 0:1.65-alt3_4jpp11 - rebuild with jakarta-mail * Sat Jun 12 2021 Igor Vlasenko <viy@altlinux.org> 0:1.65-alt2_4jpp11 - compat build * Tue Jun 01 2021 Igor Vlasenko <viy@altlinux.org> 0:1.65-alt1_4jpp11 - new version * Wed May 12 2021 Igor Vlasenko <viy@altlinux.org> 0:1.63-alt1_2jpp8 - new version * Wed Jun 12 2019 Igor Vlasenko <viy@altlinux.ru> 0:1.61-alt1_1jpp8 - new version * Tue Sep 18 2018 Igor Vlasenko <viy@altlinux.ru> 0:1.58-alt2_3jpp8 - e2k build w/o javadoc & tests * Sun Apr 15 2018 Igor Vlasenko <viy@altlinux.ru> 0:1.58-alt1_3jpp8 - java update * Fri Nov 10 2017 Igor Vlasenko <viy@altlinux.ru> 0:1.58-alt1_1jpp8 - new version * Thu Nov 02 2017 Igor Vlasenko <viy@altlinux.ru> 0:1.54-alt1_3jpp8 - new jpp release * Tue Dec 20 2016 Igor Vlasenko <viy@altlinux.ru> 0:1.54-alt1_2jpp8 - new version * Tue Nov 22 2016 Igor Vlasenko <viy@altlinux.ru> 0:1.52-alt1_8jpp8 - new fc release * Thu Feb 04 2016 Igor Vlasenko <viy@altlinux.ru> 0:1.52-alt1_7jpp8 - new version * Mon Sep 08 2014 Igor Vlasenko <viy@altlinux.ru> 0:1.46-alt3_11jpp7 - new release * Mon Jul 28 2014 Igor Vlasenko <viy@altlinux.ru> 0:1.46-alt3_7jpp7 - new release * Mon Jul 14 2014 Igor Vlasenko <viy@altlinux.ru> 0:1.46-alt3_6jpp7 - NMU rebuild to move poms and fragments * Fri Aug 24 2012 Igor Vlasenko <viy@altlinux.ru> 0:1.46-alt2_6jpp7 - fc release * Tue Sep 06 2011 Igor Vlasenko <viy@altlinux.ru> 0:1.46-alt2_3jpp6 - fixed provides * Tue Sep 06 2011 Igor Vlasenko <viy@altlinux.ru> 0:1.46-alt1_3jpp6 - new jpp release * Sat May 23 2009 Igor Vlasenko <viy@altlinux.ru> 0:1.43-alt1_1jpp6 - new version * Wed Nov 28 2007 Igor Vlasenko <viy@altlinux.ru> 0:1.37-alt1_5jpp1.7 - converted from JPackage by jppimport script |