Omit the jedit subpackage

This commit is contained in:
gbenson 2004-11-12 11:06:49 +00:00
parent 05983d1baf
commit 5f54d4c61b

View File

@ -1,9 +1,12 @@
%define section free
# This flag specifies whether or not to build the jedit subpackage.
%define build_jedit 0
Summary: ANother Tool for Language Recognition
Name: antlr
Version: 2.7.2
Release: 3jpp_2fc
Release: 3jpp_3fc
Epoch: 0
License: Public Domain
URL: http://www.antlr.org/
@ -41,6 +44,7 @@ Summary: Javadoc for %{name}
%description javadoc
Javadoc for %{name}.
%if %{build_jedit}
%package jedit
Group: Text Editors
Summary: ANTLR mode for jEdit
@ -51,6 +55,7 @@ ANTLR mode for jEdit. To enable this mode, insert the following into your
%{_datadir}/jedit/modes/catalog:
<MODE NAME="antlr" FILE="antlr.xml" FILE_NAME_GLOB="*.g"/>
%endif
%prep
@ -86,8 +91,10 @@ cp -pr work/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
# jedit mode
%if %{build_jedit}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/jedit/modes
cp -p extras/antlr-jedit.xml $RPM_BUILD_ROOT%{_datadir}/jedit/modes/antlr.xml
%endif
%clean
@ -114,13 +121,18 @@ ln -s %{name}-%{version} %{_javadocdir}/%{name}
%doc %{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}
%if %{build_jedit}
%files jedit
%defattr(0644,root,root,0755)
%{_datadir}/jedit/modes/*
%endif
%changelog
* Thu Nov 4 2004 Gary Benson <gbenson@redhat.com> 0:2.7.2-3jpp_2fc
* Fri Nov 12 2004 Gary Benson <gbenson@redhat.com> - 0:2.7.2-3jpp_3fc
- Omit the jedit subpackage (jedit is not included in Fedora).
* Thu Nov 4 2004 Gary Benson <gbenson@redhat.com> - 0:2.7.2-3jpp_2fc
- Build into Fedora.
* Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> - 0:2.7.2-3jpp_1rh