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
|
done
|
||||||
set -x
|
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
|
# string is saved in JAR_CLASSPATH
|
||||||
function mkTargetClasspath() {
|
function mkTargetClasspath() {
|
||||||
set +x
|
set +x
|
||||||
@ -89,7 +89,7 @@ function compileFiles() {
|
|||||||
done
|
done
|
||||||
set -x
|
set -x
|
||||||
}
|
}
|
||||||
#>>> make jar archive
|
#>>> make %{?_smp_mflags} jar archive
|
||||||
# PARAM#1: name of jar archive (without .jar suffix)
|
# PARAM#1: name of jar archive (without .jar suffix)
|
||||||
# uses $TARGET_DIR to move created jar to
|
# uses $TARGET_DIR to move created jar to
|
||||||
function mkJar() {
|
function mkJar() {
|
||||||
|
@ -106,6 +106,7 @@ Haefelinger and Marq Kole.
|
|||||||
%setup -q
|
%setup -q
|
||||||
# remove all binary libs
|
# remove all binary libs
|
||||||
find . -name "*.jar" -exec rm -f {} \;
|
find . -name "*.jar" -exec rm -f {} \;
|
||||||
|
find . -name Makefile.in | xargs chmod 0644
|
||||||
%patch0
|
%patch0
|
||||||
cp -p %{SOURCE1} build.xml
|
cp -p %{SOURCE1} build.xml
|
||||||
#Fix the source so that it compiles with GCC 4.5
|
#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 duplicates ###
|
||||||
find examples -type f | xargs chmod 0644
|
find examples -type f | xargs chmod 0644
|
||||||
%fdupes -s examples
|
%fdupes -s examples
|
||||||
|
find doc -type f | xargs chmod 0644
|
||||||
|
%fdupes -s doc
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%doc LICENSE.txt README.txt CHANGES.txt
|
%doc LICENSE.txt README.txt CHANGES.txt
|
||||||
%dir %{_datadir}/%{name}-%{version}
|
%dir %{_datadir}/%{name}-%{version}
|
||||||
%defattr(0755,root,root,0755)
|
%defattr(0755,root,root,0755)
|
||||||
@ -163,22 +165,18 @@ find examples -type f | xargs chmod 0644
|
|||||||
%{_bindir}/antlr-config
|
%{_bindir}/antlr-config
|
||||||
|
|
||||||
%files java
|
%files java
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%dir %{_datadir}/%{name}-%{version}
|
%dir %{_datadir}/%{name}-%{version}
|
||||||
%{_datadir}/%{name}-%{version}/*jar
|
%{_datadir}/%{name}-%{version}/*jar
|
||||||
%{_javadir}/%{name}*.jar
|
%{_javadir}/%{name}*.jar
|
||||||
|
|
||||||
%files manual
|
%files manual
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%doc doc examples
|
%doc doc examples
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%attr(755,root,root) %{_libdir}/libantlr.a
|
%attr(755,root,root) %{_libdir}/libantlr.a
|
||||||
%{_includedir}/%{name}
|
%{_includedir}/%{name}
|
||||||
|
|
||||||
%files -n python-%{name}
|
%files -n python-%{name}
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%dir %{_datadir}/%{name}-%{version}
|
%dir %{_datadir}/%{name}-%{version}
|
||||||
%{_datadir}/%{name}-%{version}/*py
|
%{_datadir}/%{name}-%{version}/*py
|
||||||
%{_datadir}/%{name}-%{version}/*pyc
|
%{_datadir}/%{name}-%{version}/*pyc
|
||||||
|
Loading…
Reference in New Issue
Block a user