SPECS: jakarta-commons-httpclient.spec - copied from jakarta-commo...

glen glen at pld-linux.org
Tue Dec 11 15:58:57 CET 2007


Author: glen                         Date: Tue Dec 11 14:58:57 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- copied from jakarta-commons-httpclient3.spec

---- Files affected:
SPECS:
   jakarta-commons-httpclient.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/jakarta-commons-httpclient.spec
diff -u SPECS/jakarta-commons-httpclient.spec:1.8 SPECS/jakarta-commons-httpclient.spec:1.9
--- SPECS/jakarta-commons-httpclient.spec:1.8	Tue Dec 11 15:58:03 2007
+++ SPECS/jakarta-commons-httpclient.spec	Tue Dec 11 15:58:52 2007
@@ -1,26 +1,26 @@
 # $Revision$, $Date$
+%define		_rc	rc4
+%define		_rel	2.1
 %include	/usr/lib/rpm/macros.java
 Summary:	Jakarta Commons HTTPClient Package
 Summary(pl.UTF-8):	Pakiet Jakarta Commons HTTPClient
-Name:		jakarta-commons-httpclient
-Version:	2.0.2
-Release:	0.2
+Name:		jakarta-commons-httpclient3
+Version:	3.0
+Release:	0.%{_rc}.%{_rel}
 License:	Apache Software License
-Source0:	http://archive.apache.org/dist/jakarta/commons/httpclient/source/commons-httpclient-%{version}-src.tar.gz
-# Source0-md5:	f3ae7736fbfb559cb228291427f22c2d
+Source0:	http://archive.apache.org/dist/jakarta/commons/httpclient/source/commons-httpclient-%{version}-%{_rc}-src.tar.gz
+# Source0-md5:	961edab7cdf9950f2a6d2243301407e3
 Group:		Development/Languages/Java
 URL:		http://jakarta.apache.org/commons/httpclient/
 BuildRequires:	ant
+BuildRequires:	jakarta-commons-codec
 BuildRequires:	jakarta-commons-logging >= 1.0.3
 BuildRequires:	jce >= 1.2.2
 BuildRequires:	jpackage-utils
 BuildRequires:	jsse >= 1.0.3.01
-BuildRequires:	junit
 BuildRequires:	rpm-javaprov
 BuildRequires:	rpmbuild(macros) >= 1.300
 Requires:	jakarta-commons-logging >= 1.0.3
-Provides:	commons-httpclient
-Obsoletes:	commons-httpclient
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -97,28 +97,26 @@
 Podręcznik dla pakietu %{name}.
 
 %prep
-%setup -q -n commons-httpclient-%{version}
+%setup -q -n commons-httpclient-%{version}-%{_rc}
 mkdir lib # duh
-rm -rf docs/apidocs
-rm -v docs/*.patch docs/*.orig docs/*.rej
+rm -rf docs/apidocs docs/*.patch docs/*.orig docs/*.rej
 
 %build
-export CLASSPATH=%(build-classpath jre/jsse jre/jce junit commons-logging)
-export LC_ALL=en_US # sources are not US-ASCII
+export LC_ALL=en_US # source not in ASCII
+export CLASSPATH=$(build-classpath jsse jce junit commons-codec commons-logging)
 %ant \
 	-Dbuild.sysclasspath=first \
 	-Djavadoc.j2sdk.link=%{_javadocdir}/java \
 	-Djavadoc.logging.link=%{_javadocdir}/jakarta-commons-logging \
-	dist test-nohost
+	dist test
 
-mv dist/docs/api apidoc
-
-# manual and docs
-mv dist/docs/USING_HTTPS.txt .
+rm -rf apidoc
 rm -f dist/docs/{BUILDING,TESTING}.txt
+mv dist/docs/api apidoc
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 # jars
 install -d $RPM_BUILD_ROOT%{_javadir}
 cp -a dist/commons-httpclient.jar $RPM_BUILD_ROOT%{_javadir}/commons-httpclient-%{version}.jar
@@ -131,17 +129,18 @@
 
 # demo
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -pr dist/src/examples/* dist/src/contrib $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -pr src/examples/* src/contrib $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post javadoc
-ln -sf %{name}-%{version} %{_javadocdir}/%{name}
+rm -f %{_javadocdir}/%{name}
+ln -s %{name}-%{version} %{_javadocdir}/%{name}
 
 %files
 %defattr(644,root,root,755)
-%doc LICENSE.txt README.txt RELEASE_NOTES.txt USING_HTTPS.txt
+%doc LICENSE.txt README.txt RELEASE_NOTES.txt
 %{_javadir}/*.jar
 
 %files javadoc
@@ -163,14 +162,13 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.8  2007-12-11 14:58:03  glen
-- add md5
+Revision 1.9  2007-12-11 14:58:52  glen
+- copied from jakarta-commons-httpclient3.spec
 
-Revision 1.7  2007/04/11 22:10:51  glen
-- builds now
-- unify java package
+Revision 1.7  2007/04/17 22:14:06  glen
+- unify java package; builds now
 
-Revision 1.6  2007/02/12 22:09:10  glen
+Revision 1.6  2007/02/13 08:06:35  glen
 - tabs in preamble
 
 Revision 1.5  2007/02/12 01:06:41  baggins
@@ -179,11 +177,11 @@
 Revision 1.4  2006/05/19 11:28:19  jajcus
 - s/jakarta-ant/ant/ in BR
 
-Revision 1.3  2006/05/16 22:30:23  qboosh
+Revision 1.3  2006/05/16 22:34:10  qboosh
 - pl, killed subshells
 
 Revision 1.2  2006/05/15 10:54:16  ankry
 - cosmetics
 
-Revision 1.1  2006/05/10 22:30:56  glen
+Revision 1.1  2006/05/10 20:36:23  glen
 - new, based on jpackage
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/jakarta-commons-httpclient.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list