- From gbenson@redhat:
- Omit the jedit subpackage to fix dependencies.
This commit is contained in:
parent
95caa6b64f
commit
c963dae711
14
antlr.spec
14
antlr.spec
@ -31,6 +31,7 @@
|
|||||||
%define _with_gcj_support 1
|
%define _with_gcj_support 1
|
||||||
|
|
||||||
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
|
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
|
||||||
|
%define build_jedit %{?_with_jedit:1}%{!?_without_jedit:0}
|
||||||
|
|
||||||
%define section free
|
%define section free
|
||||||
%define native %{?_with_native:1}%{!?_without_native:0}
|
%define native %{?_with_native:1}%{!?_without_native:0}
|
||||||
@ -38,7 +39,7 @@
|
|||||||
Summary: ANother Tool for Language Recognition
|
Summary: ANother Tool for Language Recognition
|
||||||
Name: antlr
|
Name: antlr
|
||||||
Version: 2.7.6
|
Version: 2.7.6
|
||||||
Release: 3jpp_1fc
|
Release: 3jpp_2fc
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
URL: http://www.antlr.org/
|
URL: http://www.antlr.org/
|
||||||
@ -111,6 +112,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
|
||||||
@ -121,7 +123,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
|
||||||
%setup -q
|
%setup -q
|
||||||
@ -170,9 +172,11 @@ 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
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %{gcj_support}
|
%if %{gcj_support}
|
||||||
@ -266,13 +270,19 @@ 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
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 19 2006 Deepak Bhole <dbhole@redhat.om> = 0:2.7.6-3jpp_2fc
|
||||||
|
- From gbenson@redhat:
|
||||||
|
- Omit the jedit subpackage to fix dependencies.
|
||||||
|
|
||||||
* Wed Jul 19 2006 Deepak Bhole <dbhole@redhat.om> = 0:2.7.6-3jpp_1fc
|
* Wed Jul 19 2006 Deepak Bhole <dbhole@redhat.om> = 0:2.7.6-3jpp_1fc
|
||||||
- Added conditional native compilation.
|
- Added conditional native compilation.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user