[httpcomponents-client] Do not export * but only org.apache.http.* .

Alexander Kurtakov akurtakov at fedoraproject.org
Mon Mar 26 12:13:51 UTC 2012


commit 1ead4776ae7187ff7d31f2b4b6f1560d8c58ba8e
Author: Alexander Kurtakov <akurtako at redhat.com>
Date:   Mon Mar 26 15:13:26 2012 +0300

    Do not export * but only org.apache.http.* .
    
    - Do not generate uses clauses in the manifest.

 0003-Make-httpclient-into-bundle.patch |    5 +++--
 httpcomponents-client.spec             |    6 +++++-
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/0003-Make-httpclient-into-bundle.patch b/0003-Make-httpclient-into-bundle.patch
index 3ff0d68..3237de9 100644
--- a/0003-Make-httpclient-into-bundle.patch
+++ b/0003-Make-httpclient-into-bundle.patch
@@ -34,7 +34,7 @@ index 0e391f6..f0c6632 100644
    </dependencies>
  
    <properties>
-@@ -116,25 +110,19 @@
+@@ -116,25 +110,20 @@
            </execution>
          </executions>
        </plugin>
@@ -50,8 +50,9 @@ index 0e391f6..f0c6632 100644
 -          <flushInterval>100</flushInterval>
 -          <targetPercentage>50%</targetPercentage>
 +            <instructions>
-+                <Export-Package>*</Export-Package>
++                <Export-Package>org.apache.http.*</Export-Package>
 +                <Private-Package></Private-Package>
++                <_nouses>true</_nouses>
 +                <Import-Package>!org.apache.avalon.framework.logger,!org.apache.log,!org.apache.log4j,*</Import-Package>
 +            </instructions>
          </configuration>
diff --git a/httpcomponents-client.spec b/httpcomponents-client.spec
index 93a6e72..2498615 100644
--- a/httpcomponents-client.spec
+++ b/httpcomponents-client.spec
@@ -3,7 +3,7 @@
 Name:              httpcomponents-client
 Summary:           HTTP agent implementation based on httpcomponents HttpCore
 Version:           4.1.3
-Release:           1%{?dist}
+Release:           2%{?dist}
 Group:             Development/Libraries
 License:           ASL 2.0
 URL:               http://hc.apache.org/
@@ -92,6 +92,10 @@ cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
 
 
 %changelog
+* Mon Mar 26 2012 Alexander Kurtakov <akurtako at redhat.com> 4.1.3-2
+- Do not export * but only org.apache.http.* .
+- Do not generate uses clauses in the manifest.
+
 * Thu Mar  1 2012 Stanislav Ochotnicky <sochotnicky at redhat.com> 4.1.3-1
 - Update to latest upstream bugfix
 


More information about the scm-commits mailing list