Package apache-commons-httpclient: 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 | Group: Development/Java # BEGIN SourceDeps(oneline): BuildRequires: rpm-build-java # END SourceDeps(oneline) %define oldname jakarta-commons-httpclient BuildRequires: /proc BuildRequires: jpackage-generic-compat # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %global short_name httpclient Name: apache-commons-httpclient Version: 3.1 Release: alt6_31jpp8 Summary: Jakarta Commons HTTPClient implements the client side of HTTP standards License: ASL 2.0 and (ASL 2.0 or LGPLv2+) URL: http://jakarta.apache.org/commons/httpclient/ Epoch: 1 Source0: http://archive.apache.org/dist/httpcomponents/commons-httpclient/source/commons-httpclient-3.1-src.tar.gz Source1: http://repo.maven.apache.org/maven2/commons-httpclient/commons-httpclient/%{version}/commons-httpclient-%{version}.pom Patch0: %{oldname}-disablecryptotests.patch # Add OSGi MANIFEST.MF bits Patch1: %{oldname}-addosgimanifest.patch Patch2: %{oldname}-encoding.patch # CVE-2012-5783: missing connection hostname check against X.509 certificate name # https://fisheye6.atlassian.com/changelog/httpcomponents?cs=1422573 Patch3: %{oldname}-CVE-2012-5783.patch Patch4: %{oldname}-CVE-2014-3577.patch Patch5: %{oldname}-CVE-2015-5262.patch BuildArch: noarch # FIXME: we need BR maven-local, because we're using macros like mvn_install # this should be changed to "javapackages-local" when javapackages-tools 4.0.0 is out BuildRequires: maven-local BuildRequires: ant BuildRequires: apache-commons-codec BuildRequires: apache-commons-logging >= 0:1.0.3 BuildRequires: apache-commons-logging-javadoc BuildRequires: java-javadoc BuildRequires: junit Requires: apache-commons-logging >= 0:1.0.3 Requires: apache-commons-codec Provides: deprecated() Source44: import.info Provides: jakarta-commons-httpclient = 1:%version %description The Hyper-Text Transfer Protocol (HTTP) is perhaps the most significant protocol used on the Internet today. Web services, network-enabled appliances and the growth of network computing continue to expand the role of the HTTP protocol beyond user-driven web browsers, and increase the number of applications that may require HTTP support. Although the java.net package provides basic support for accessing resources via HTTP, it doesn't provide the full flexibility or functionality needed by many applications. The Jakarta Commons HTTP Client component seeks to fill this void by providing an efficient, up-to-date, and feature-rich package implementing the client side of the most recent HTTP standards and recommendations. Designed for extension while providing robust support for the base HTTP protocol, the HTTP Client component may be of interest to anyone building HTTP-aware client applications such as web browsers, web service clients, or systems that leverage or extend the HTTP protocol for distributed communication. %package javadoc Group: Development/Java Summary: Javadoc for %{oldname} Provides: deprecated() BuildArch: noarch %description javadoc %{summary}. %package demo Group: Development/Java Summary: Demos for %{oldname} Requires: %{name} = %{epoch}:%{version}-%{release} Provides: deprecated() %description demo %{summary}. %package manual Group: Development/Java Summary: Manual for %{oldname} Requires: %{name}-javadoc = %{epoch}:%{version}-%{release} Provides: deprecated() BuildArch: noarch %description manual %{summary}. %prep %setup -q -n commons-httpclient-%{version} mkdir lib # duh build-jar-repository -p lib commons-codec commons-logging junit rm -rf docs/apidocs docs/*.patch docs/*.orig docs/*.rej %patch0 pushd src/conf sed -i 's/\r//' MANIFEST.MF %patch1 popd %patch2 %patch3 -p2 %patch4 -p1 %patch5 -p1 # Use javax classes, not com.sun ones # assume no filename contains spaces pushd src for j in $(find . -name "*.java" -exec grep -l 'com\.sun\.net\.ssl' {} \;); do sed -e 's|com\.sun\.net\.ssl|javax.net.ssl|' $j > tempf cp tempf $j done rm tempf popd %mvn_alias : apache:commons-httpclient %mvn_file ":{*}" jakarta-@1 "@1" commons-%{short_name}3 %build ant \ -Dbuild.sysclasspath=first \ -Djavadoc.j2sdk.link=%{_javadocdir}/java \ -Djavadoc.logging.link=%{_javadocdir}/jakarta-commons-logging \ -Dtest.failonerror=false \ -Djavac.encoding=UTF-8 \ dist test %install %mvn_artifact %{SOURCE1} dist/commons-httpclient.jar %mvn_install -J dist/docs/api # demo mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{oldname} cp -pr src/examples src/contrib $RPM_BUILD_ROOT%{_datadir}/%{oldname} # manual and docs rm -Rf dist/docs/{api,BUILDING.txt,TESTING.txt} ln -s %{_javadocdir}/%{oldname} dist/docs/apidocs %files -f .mfiles %doc LICENSE NOTICE %doc README RELEASE_NOTES %files javadoc -f .mfiles-javadoc %doc LICENSE NOTICE %files demo %{_datadir}/%{oldname} %files manual %doc --no-dereference dist/docs/* %changelog * Mon May 27 2019 Igor Vlasenko <viy@altlinux.ru> 1:3.1-alt6_31jpp8 - new version * Tue Nov 07 2017 Igor Vlasenko <viy@altlinux.ru> 1:3.1-alt6_27jpp8 - update * Wed Feb 03 2016 Igor Vlasenko <viy@altlinux.ru> 1:3.1-alt6_23jpp8 - new version * Mon Jul 21 2014 Igor Vlasenko <viy@altlinux.ru> 1:3.1-alt6_13jpp7 - updated provides * Thu Jul 10 2014 Igor Vlasenko <viy@altlinux.ru> 1:3.1-alt5_13jpp7 - update * Fri Mar 16 2012 Igor Vlasenko <viy@altlinux.ru> 1:3.1-alt5_6jpp6 - fixed build with java 7 * Fri Jul 22 2011 Igor Vlasenko <viy@altlinux.ru> 1:3.1-alt4_6jpp6 - disabled tests thank to new hasher * Fri Feb 25 2011 Igor Vlasenko <viy@altlinux.ru> 1:3.1-alt3_6jpp6 - renamed to apache-commons-httpclient * Sun Jan 09 2011 Igor Vlasenko <viy@altlinux.ru> 1:3.1-alt3_1jpp6 - added OSGi manifest * Tue Jan 04 2011 Igor Vlasenko <viy@altlinux.ru> 1:3.1-alt2_1jpp6 - jpackage 6.0 * Fri Sep 03 2010 Igor Vlasenko <viy@altlinux.ru> 1:3.1-alt2_1jpp6 - new version * Mon Jan 12 2009 Igor Vlasenko <viy@altlinux.ru> 1:3.1-alt2_0.3jpp5 - updated OSGi manifest * Fri Jul 04 2008 Igor Vlasenko <viy@altlinux.ru> 1:3.1-alt1.1_0jpp5 - rebuild with osgi provides * Thu Dec 06 2007 Igor Vlasenko <viy@altlinux.ru> 1:3.0.1-alt2.2_1jpp1.7 - added eclipse manifest * Thu Aug 02 2007 Igor Vlasenko <viy@altlinux.ru> 1:3.0.1-alt1_1jpp1.7 - converted from JPackage by jppimport script * Fri May 04 2007 Igor Vlasenko <viy@altlinux.ru> 3.0-alt2 - added jpackage compat symlinks * Tue Dec 20 2005 Vladimir Lettiev <crux@altlinux.ru> 3.0-alt1 - Final release 3.0 * Sat Jul 02 2005 Vladimir Lettiev <crux@altlinux.ru> 3.0-alt0.3 - 3.0-rc3 - manual package is back - changed rpmgroup for packages with documentation * Tue Mar 22 2005 Vladimir Lettiev <crux@altlinux.ru> 3.0-alt0.2 - rpm-build-java macroces - 3.0-beta1 (cvs 20050321) * Sun Oct 24 2004 Vladimir Lettiev <crux@altlinux.ru> 3.0-alt0.1 - 3.0-dev (cvs 20041024) * Wed Oct 13 2004 Vladimir Lettiev <crux@altlinux.ru> 2.0.1-alt2 - changes to suit ALT java-policy * Fri Sep 17 2004 Vladimir Lettiev <crux@altlinux.ru> 2.0.1-alt1 - 2.0.1 - Rebuild for ALT Linux Sisyphus - spec cleanup |