Accepting request 810165 from Java:packages
OBS-URL: https://build.opensuse.org/request/show/810165 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/antlr?expand=0&rev=50
This commit is contained in:
commit
1f099a939c
@ -24,7 +24,7 @@ Release: 0
|
||||
Summary: Antlr for bootstrapping purposes
|
||||
License: BSD-3-Clause AND SUSE-Public-Domain
|
||||
Group: Development/Libraries/Java
|
||||
URL: http://www.antlr.org
|
||||
URL: https://www.antlr.org
|
||||
Source0: antlr-%{version}.tar.bz2
|
||||
Source1: manifest.antlr
|
||||
BuildRequires: java-devel >= 1.8
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 7 19:43:34 UTC 2020 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>
|
||||
|
||||
- Build antlr-manual package without examples files [bsc#1120360]
|
||||
- Remove not needed files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 6 09:32:44 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
18
antlr.spec
18
antlr.spec
@ -23,7 +23,7 @@ Release: 0
|
||||
Summary: Another Tool for Language Recognition
|
||||
License: GPL-2.0-or-later AND SUSE-Public-Domain AND MIT
|
||||
Group: Development/Tools/Other
|
||||
URL: http://www.antlr.org/
|
||||
URL: https://www.antlr.org/
|
||||
Source0: antlr-%{version}.tar.bz2
|
||||
Source1: %{name}-build.xml
|
||||
Source2: %{name}-script
|
||||
@ -33,7 +33,6 @@ Patch0: %{name}-jedit.patch
|
||||
Patch1: gcc45fix.diff
|
||||
Patch2: fix-docpath.diff
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-local
|
||||
@ -77,7 +76,7 @@ language tool that provides a framework for constructing recognizers,
|
||||
compilers, and translators from grammatical descriptions containing C++
|
||||
or Java actions (you can use PCCTS 1.xx to generate C-based parsers).
|
||||
|
||||
This package provides the manual and examples for antlr.
|
||||
This package provides the manual for antlr.
|
||||
|
||||
%package devel
|
||||
Summary: ANother Tool for Language Recognition (c++ runtime)
|
||||
@ -112,6 +111,8 @@ Haefelinger and Marq Kole.
|
||||
%setup -q
|
||||
# remove all binary libs
|
||||
find . -name "*.jar" -exec rm -f {} \;
|
||||
find . -name "*.exe" -exec rm -f {} \;
|
||||
find . -name "*.dll" -exec rm -f {} \;
|
||||
find . -name Makefile.in | xargs chmod 0644
|
||||
%patch0
|
||||
cp -p %{SOURCE1} build.xml
|
||||
@ -128,8 +129,9 @@ ant \
|
||||
-Dj2se.apidoc=%{_javadocdir}/java \
|
||||
-Dant.build.javac.source=8 -Dant.build.javac.target=8 \
|
||||
jar
|
||||
%configure
|
||||
%configure --without-examples
|
||||
make -j1
|
||||
|
||||
%if %{with python2}
|
||||
%py_compile lib/python/antlr
|
||||
%endif
|
||||
@ -165,11 +167,9 @@ install -m 0755 lib/cpp/src/lib%{name}.a %{buildroot}%{_libdir}
|
||||
install -d -m 0755 %{buildroot}%{_includedir}/%{name}
|
||||
install -m 0644 lib/cpp/%{name}/*hpp %{buildroot}%{_includedir}/%{name}
|
||||
|
||||
### find duplicates ###
|
||||
find examples -type f | xargs chmod 0644
|
||||
%fdupes -s examples
|
||||
### doc permissions ###
|
||||
rm doc/{Makefile,Makefile.in}
|
||||
find doc -type f | xargs chmod 0644
|
||||
%fdupes -s doc
|
||||
|
||||
%files
|
||||
%license LICENSE.txt
|
||||
@ -190,7 +190,7 @@ find doc -type f | xargs chmod 0644
|
||||
%endif
|
||||
|
||||
%files manual
|
||||
%doc doc examples
|
||||
%doc doc
|
||||
|
||||
%files devel
|
||||
%{_libdir}/libantlr.a
|
||||
|
Loading…
Reference in New Issue
Block a user