Fix some rpmlint errors
OBS-URL: https://build.opensuse.org/package/show/Java:packages/antlr?expand=0&rev=37
This commit is contained in:
parent
8b67854078
commit
229f2f7a0b
@ -56,7 +56,7 @@ function delBinaryFiles() {
|
||||
done
|
||||
set -x
|
||||
}
|
||||
#>>> make a string with all jar files found in target folder that can be used for a classpath string
|
||||
#>>> make %{?_smp_mflags} a string with all jar files found in target folder that can be used for a classpath string
|
||||
# string is saved in JAR_CLASSPATH
|
||||
function mkTargetClasspath() {
|
||||
set +x
|
||||
@ -89,7 +89,7 @@ function compileFiles() {
|
||||
done
|
||||
set -x
|
||||
}
|
||||
#>>> make jar archive
|
||||
#>>> make %{?_smp_mflags} jar archive
|
||||
# PARAM#1: name of jar archive (without .jar suffix)
|
||||
# uses $TARGET_DIR to move created jar to
|
||||
function mkJar() {
|
||||
|
@ -106,6 +106,7 @@ Haefelinger and Marq Kole.
|
||||
%setup -q
|
||||
# remove all binary libs
|
||||
find . -name "*.jar" -exec rm -f {} \;
|
||||
find . -name Makefile.in | xargs chmod 0644
|
||||
%patch0
|
||||
cp -p %{SOURCE1} build.xml
|
||||
#Fix the source so that it compiles with GCC 4.5
|
||||
@ -153,9 +154,10 @@ install -m 0644 lib/cpp/%{name}/*hpp %{buildroot}%{_includedir}/%{name}
|
||||
### find duplicates ###
|
||||
find examples -type f | xargs chmod 0644
|
||||
%fdupes -s examples
|
||||
find doc -type f | xargs chmod 0644
|
||||
%fdupes -s doc
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc LICENSE.txt README.txt CHANGES.txt
|
||||
%dir %{_datadir}/%{name}-%{version}
|
||||
%defattr(0755,root,root,0755)
|
||||
@ -163,22 +165,18 @@ find examples -type f | xargs chmod 0644
|
||||
%{_bindir}/antlr-config
|
||||
|
||||
%files java
|
||||
%defattr(0644,root,root,0755)
|
||||
%dir %{_datadir}/%{name}-%{version}
|
||||
%{_datadir}/%{name}-%{version}/*jar
|
||||
%{_javadir}/%{name}*.jar
|
||||
|
||||
%files manual
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc doc examples
|
||||
|
||||
%files devel
|
||||
%defattr(0644,root,root,0755)
|
||||
%attr(755,root,root) %{_libdir}/libantlr.a
|
||||
%{_includedir}/%{name}
|
||||
|
||||
%files -n python-%{name}
|
||||
%defattr(0644,root,root,0755)
|
||||
%dir %{_datadir}/%{name}-%{version}
|
||||
%{_datadir}/%{name}-%{version}/*py
|
||||
%{_datadir}/%{name}-%{version}/*pyc
|
||||
|
Loading…
Reference in New Issue
Block a user