rpms/lucene/devel lucene.spec,1.34,1.35
Lubomir Rintel (lkundrak)
fedora-extras-commits at redhat.com
Mon May 19 20:58:13 UTC 2008
- Previous message (by thread): rpms/dejavu-fonts/devel .cvsignore, 1.48, 1.49 dejavu-fonts.spec, 1.80, 1.81 sources, 1.48, 1.49
- Next message (by thread): rpms/ucview/F-8 .cvsignore, 1.2, 1.3 sources, 1.2, 1.3 ucview.spec, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: lkundrak
Update of /cvs/pkgs/rpms/lucene/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv12183/devel
Modified Files:
lucene.spec
Log Message:
* Mon May 19 2008 Lubomir Rintel <lkundrak at v3.sk> - 0:2.3.1-3jpp.0
- Correct gcj-compat dependencies, so that this builds on RHEL
- Use --without gcj to disable gcj aot compilation
Index: lucene.spec
===================================================================
RCS file: /cvs/pkgs/rpms/lucene/devel/lucene.spec,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- lucene.spec 5 May 2008 10:12:30 -0000 1.34
+++ lucene.spec 19 May 2008 20:57:28 -0000 1.35
@@ -1,4 +1,4 @@
-# Copyright (c) 2000-2005, JPackate Project
+# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -29,12 +29,14 @@
#
%define section devel
-%define gcj_support 1
+
+# Use rpmbuild --without gcj to disable native bits
+%define with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}
Summary: High-performance, full-featured text search engine
Name: lucene
Version: 2.3.1
-Release: 2jpp.0%{?dist}
+Release: 3jpp.0%{?dist}
Epoch: 0
License: Apache Software License
URL: http://lucene.apache.org/
@@ -58,12 +60,10 @@
Provides: lucene-core = %{epoch}:%{version}-%{release}
# previously used by eclipse but no longer needed
Obsoletes: lucene-devel < %{version}
-%if %{gcj_support}
-BuildRequires: java-gcj-compat-devel >= 1.0.43
-Requires(post): java-1.5.0-gcj
-Requires(postun): java-1.5.0-gcj
-%endif
-%if %{gcj_support}
+%if %{with_gcj}
+BuildRequires: java-gcj-compat-devel >= 1.0.43
+Requires(post): java-gcj-compat >= 1.0.43
+Requires(postun): java-gcj-compat >= 1.0.43
%else
BuildArch: noarch
%endif
@@ -187,8 +187,8 @@
install -m 0644 build/%{name}web.war \
$RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
-%if %{gcj_support}
-aot-compile-rpm --exclude %{_datadir}/%{name}-%{version}/luceneweb.war
+%if %{with_gcj}
+%{_bindir}/aot-compile-rpm --exclude %{_datadir}/%{name}-%{version}/luceneweb.war
%endif
%post javadoc
@@ -203,12 +203,18 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{gcj_support}
+%if %{with_gcj}
%post
-/usr/bin/rebuild-gcj-db
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+ %{_bindir}/rebuild-gcj-db
+fi
%postun
-/usr/bin/rebuild-gcj-db
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+ %{_bindir}/rebuild-gcj-db
+fi
%endif
%files
@@ -217,7 +223,7 @@
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%{_datadir}/%{name}-%{version}
-%if %{gcj_support}
+%if %{with_gcj}
%dir %{_libdir}/gcj/%{name}
%{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
%endif
@@ -230,7 +236,7 @@
%files contrib
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-contrib
-%if %{gcj_support}
+%if %{with_gcj}
%{_libdir}/gcj/%{name}/lucene-analyzers-%{version}.jar.*
%{_libdir}/gcj/%{name}/lucene-ant-%{version}.jar.*
%{_libdir}/gcj/%{name}/lucene-highlighter-%{version}.jar.*
@@ -249,7 +255,7 @@
#%files contrib-db
#%defattr(0644,root,root,0755)
#%{_javadir}/%{name}-contrib-db
-#%if %{gcj_support}
+#%if %{with_gcj}
#%{_libdir}/gcj/%{name}/lucene-bdb-%{version}.jar.*
#%{_libdir}/gcj/%{name}/lucene-bdb-je-%{version}.jar.*
#%endif
@@ -258,12 +264,16 @@
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-demos-%{version}.jar
%{_javadir}/%{name}-demos.jar
-%if %{gcj_support}
+%if %{with_gcj}
%{_libdir}/gcj/%{name}/%{name}-demos-%{version}.jar.*
%endif
%changelog
+* Mon May 19 2008 Lubomir Rintel <lkundrak at v3.sk> - 0:2.3.1-3jpp.0
+- Correct gcj-compat dependencies, so that this builds on RHEL
+- Use --without gcj to disable gcj aot compilation
+
* Mon May 5 2008 Lubomir Rintel <lkundrak at v3.sk> - 0:2.3.1-2jpp.0
- Unbreak build by repacing the version patch with and -Dversion
- Previous message (by thread): rpms/dejavu-fonts/devel .cvsignore, 1.48, 1.49 dejavu-fonts.spec, 1.80, 1.81 sources, 1.48, 1.49
- Next message (by thread): rpms/ucview/F-8 .cvsignore, 1.2, 1.3 sources, 1.2, 1.3 ucview.spec, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list