Omit the jedit subpackage
This commit is contained in:
parent
05983d1baf
commit
5f54d4c61b
16
antlr.spec
16
antlr.spec
@ -1,9 +1,12 @@
|
|||||||
%define section free
|
%define section free
|
||||||
|
|
||||||
|
# This flag specifies whether or not to build the jedit subpackage.
|
||||||
|
%define build_jedit 0
|
||||||
|
|
||||||
Summary: ANother Tool for Language Recognition
|
Summary: ANother Tool for Language Recognition
|
||||||
Name: antlr
|
Name: antlr
|
||||||
Version: 2.7.2
|
Version: 2.7.2
|
||||||
Release: 3jpp_2fc
|
Release: 3jpp_3fc
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
URL: http://www.antlr.org/
|
URL: http://www.antlr.org/
|
||||||
@ -41,6 +44,7 @@ Summary: Javadoc for %{name}
|
|||||||
%description javadoc
|
%description javadoc
|
||||||
Javadoc for %{name}.
|
Javadoc for %{name}.
|
||||||
|
|
||||||
|
%if %{build_jedit}
|
||||||
%package jedit
|
%package jedit
|
||||||
Group: Text Editors
|
Group: Text Editors
|
||||||
Summary: ANTLR mode for jEdit
|
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:
|
%{_datadir}/jedit/modes/catalog:
|
||||||
|
|
||||||
<MODE NAME="antlr" FILE="antlr.xml" FILE_NAME_GLOB="*.g"/>
|
<MODE NAME="antlr" FILE="antlr.xml" FILE_NAME_GLOB="*.g"/>
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -86,8 +91,10 @@ cp -pr work/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|||||||
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
|
|
||||||
# jedit mode
|
# jedit mode
|
||||||
|
%if %{build_jedit}
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/jedit/modes
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/jedit/modes
|
||||||
cp -p extras/antlr-jedit.xml $RPM_BUILD_ROOT%{_datadir}/jedit/modes/antlr.xml
|
cp -p extras/antlr-jedit.xml $RPM_BUILD_ROOT%{_datadir}/jedit/modes/antlr.xml
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -114,13 +121,18 @@ ln -s %{name}-%{version} %{_javadocdir}/%{name}
|
|||||||
%doc %{_javadocdir}/%{name}-%{version}
|
%doc %{_javadocdir}/%{name}-%{version}
|
||||||
%ghost %doc %{_javadocdir}/%{name}
|
%ghost %doc %{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%if %{build_jedit}
|
||||||
%files jedit
|
%files jedit
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
%{_datadir}/jedit/modes/*
|
%{_datadir}/jedit/modes/*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%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.
|
- Build into Fedora.
|
||||||
|
|
||||||
* Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> - 0:2.7.2-3jpp_1rh
|
* Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> - 0:2.7.2-3jpp_1rh
|
||||||
|
Loading…
Reference in New Issue
Block a user