Author: pawelz Date: Mon Apr 6 08:49:35 2009 GMT Module: SPECS Tag: HEAD ---- Log message: - renamed from puretls.spec - G: Libraries/Java - bcond for javadoc - bconds for jdk - install examples in %%{_exampledir}
---- Files affected: SPECS: java-puretls.spec (1.12 -> 1.13) ---- Diffs: ================================================================ Index: SPECS/java-puretls.spec diff -u SPECS/java-puretls.spec:1.12 SPECS/java-puretls.spec:1.13 --- SPECS/java-puretls.spec:1.12 Fri Apr 3 15:43:01 2009 +++ SPECS/java-puretls.spec Mon Apr 6 10:49:28 2009 @@ -1,4 +1,15 @@ # $Revision$, $Date$ +%bcond_without javadoc # don't build javadoc + +%if "%{pld_release}" == "ti" +%bcond_without java_sun # build with gcj +%else +%bcond_with java_sun # build with java-sun +%endif +# +%include /usr/lib/rpm/macros.java + +%define srcname puretls %define beta b4 Summary: Java implementation of SSLv3 and TLSv1 Summary(pl.UTF-8): Implementacja SSLv3 i TLSv1 w Javie @@ -6,13 +17,13 @@ Version: 0.9 Release: 0.%{beta}.1 License: BSD-like -Group: Development/Languages/Java -Source0: http://www.mirrors.wiretapped.net/security/cryptography/libraries/tls/puretls/%{name}-%{version}%{beta}.tar.gz +Group: Libraries/Java +Source0: http://www.mirrors.wiretapped.net/security/cryptography/libraries/tls/puretls/%{srcname}-%{version}%{beta}.tar.gz # Source0-md5: b2e4e947af30387b86dbf3473fdbd103 URL: http://www.rtfm.com/puretls/ BuildRequires: ant -BuildRequires: cryptix -BuildRequires: cryptix-asn1 = 0.20011119 +BuildRequires: java-cryptix +BuildRequires: java-cryptix-asn1 = 0.20011119 BuildRequires: java-gnu-getopt BuildRequires: jpackage-utils BuildRequires: rpmbuild(macros) >= 1.300 @@ -41,19 +52,19 @@ uznali, że podstawowe bezpieczeństwo sieci jest dobrem publicznym. %package javadoc -Summary: Online manual for %{name} -Summary(pl.UTF-8): Dokumentacja online do %{name} +Summary: Online manual for %{srcname} +Summary(pl.UTF-8): Dokumentacja online do %{srcname} Group: Documentation Requires: jpackage-utils %description javadoc -Documentation for %{name}. +Documentation for %{srcname}. %description javadoc -l pl.UTF-8 -Dokumentacja do %{name}a. +Dokumentacja do %{srcname}. %prep -%setup -q -n %{name}-%{version}%{beta} +%setup -q -n %{srcname}-%{version}%{beta} find -type f | \ xargs grep -l "/usr/local/bin/perl5" | \ xargs sed -i -e "s|/usr/local/bin/perl5|/usr/bin/perl|g;" @@ -71,36 +82,45 @@ -Djdk.version=%{jdkversion} \ clean compile -%ant \ - javadoc +%{?with_javadoc:%ant javadoc} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_javadir},%{_datadir}/%{name}} +install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_javadir},%{_datadir}/%{name}} -cp build/%{name}.jar $RPM_BUILD_ROOT%{_javadir} -ln -sf %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +cp build/%{srcname}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}.jar +ln -sf %{srcname}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-%{version}.jar -cp build/%{name}demo.jar $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-demo.jar -cp *.pem $RPM_BUILD_ROOT%{_datadir}/%{name} -cp test.pl $RPM_BUILD_ROOT%{_datadir}/%{name} +cp build/%{srcname}demo.jar $RPM_BUILD_ROOT%{_examplesdir}/%{name}/%{srcname}-demo.jar +cp *.pem $RPM_BUILD_ROOT%{_datadir}/%{srcname} +cp test.pl $RPM_BUILD_ROOT%{_datadir}/%{srcname} +%if %{with javadoc} # javadoc -install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} -cp -pr build/doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +install -d $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version} +cp -pr build/doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version} +ln -s %{srcname}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{srcname} # ghost symlink +%endif %clean rm -rf $RPM_BUILD_ROOT +%post javadoc +ln -nfs %{srcname}-%{version} %{_javadocdir}/%{srcname} + %files %defattr(644,root,root,755) %doc ChangeLog COPYRIGHT INSTALL LICENSE README %{_javadir}/*.jar %{_datadir}/%{name} +%{_examplesdir}/%{name}-%{version} +%if %{with javadoc} %files javadoc %defattr(644,root,root,755) -%{_javadocdir}/%{name}-%{version} +%{_javadocdir}/%{srcname}-%{version} +%ghost %{_javadocdir}/%{srcname} +%endif %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -108,6 +128,13 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.13 2009/04/06 08:49:28 pawelz +- renamed from puretls.spec +- G: Libraries/Java +- bcond for javadoc +- bconds for jdk +- install examples in %%{_exampledir} + Revision 1.12 2009/04/03 13:43:01 glen - cosmetics, allow build-classpath to fail ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/java-puretls.spec?r1=1.12&r2=1.13&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit