SPECS: cglib.spec - try building

glen glen at pld-linux.org
Wed Apr 18 01:49:48 CEST 2007


Author: glen                         Date: Tue Apr 17 23:49:48 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- try building

---- Files affected:
SPECS:
   cglib.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/cglib.spec
diff -u SPECS/cglib.spec:1.6 SPECS/cglib.spec:1.7
--- SPECS/cglib.spec:1.6	Mon Feb 12 23:09:09 2007
+++ SPECS/cglib.spec	Wed Apr 18 01:49:43 2007
@@ -1,4 +1,5 @@
 # $Revision$, $Date$
+%include	/usr/lib/rpm/macros.java
 %define uscver 2.1_3
 Summary:	Code Generation Library
 Summary(pl.UTF-8):	Biblioteka do generowania kodu
@@ -11,15 +12,18 @@
 Source0:	http://dl.sourceforge.net/cglib/%{name}-src-%{uscver}.jar
 # Source0-md5:	17747df2f9e6ad660962c629282c0fca
 Source1:	%{name}-missing-words.txt
-Patch0:		%{name}-2.1.3-build_xml.patch
+Patch0:		%{name}-build_xml.patch
 Patch1:		%{name}-ExamplePreProcessor.patch
 URL:		http://cglib.sourceforge.net/
+BuildRequires:	ant >= 1.6
 BuildRequires:	asm >= 1.5.3
 BuildRequires:	asm2
-BuildRequires:	aspectwerkz >= 1.0
-BuildRequires:	ant >= 1.6
-BuildRequires:	jarjar
+#BuildRequires:	aspectwerkz >= 1.0
+#BuildRequires:	jarjar
+BuildRequires:	jpackage-utils
 BuildRequires:	junit
+BuildRequires:	rpm-javaprov
+BuildRequires:	rpmbuild(macros) >= 1.300
 Requires:	asm >= 1.5.3
 Requires:	aspectwerkz >= 1.0
 BuildArch:	noarch
@@ -27,8 +31,8 @@
 
 %description
 cglib is a powerful, high performance and quality Code Generation
-Library. It is used to extend Java classes and implement interfaces
-at runtime.
+Library. It is used to extend Java classes and implement interfaces at
+runtime.
 
 %description -l pl.UTF-8
 cglib to potężna, o wysokiej wydajności i jakości biblioteka
@@ -39,6 +43,7 @@
 Summary:	Javadoc for %{name}
 Summary(pl.UTF-8):	Dokumentacja javadoc dla pakietu %{name}
 Group:		Documentation
+Requires:	jpackage-utils
 
 %description javadoc
 Javadoc for %{name}.
@@ -47,10 +52,9 @@
 Dokumentacja javadoc dla pakietu %{name}.
 
 %prep
-%setup -q -T -c -n %{name}
-unzip -q %{SOURCE0}
-# remove all binary libs
-for f in $(find . -name "*.jar"); do mv $f $f.no; done
+%setup -qc
+find -name '*.jar' | xargs rm -vf
+
 ( cat << EO_JP
 grant codeBase "file:/-"{
   permission java.security.AllPermission;
@@ -64,17 +68,12 @@
 %patch1
 
 %build
-build-jar-repository -s -p lib \
-ant \
-asm/asm-attrs \
-asm/asm \
-asm2/asm2 \
-asm/asm-util \
-aspectwerkz-core \
-jarjar \
-junit \
+build-jar-repository -s -p lib ant asm-attrs asm asm2 asm-util junit
 
-ant test javadoc jar
+#aspectwerkz-core \
+#jarjar \
+
+%ant test javadoc jar
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -117,7 +116,8 @@
 
 %files javadoc
 %defattr(644,root,root,755)
-%{_javadocdir}/*
+%{_javadocdir}/%{name}-%{version}
+%ghost %{_javadocdir}/%{name}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -125,6 +125,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2007/04/17 23:49:43  glen
+- try building
+
 Revision 1.6  2007/02/12 22:09:09  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/cglib.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list