From 229f2f7a0b455ff87f10fded8d4e5f3d8d486fafa9ab03f6b39070294e779a7f Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 21 Sep 2017 10:59:26 +0000 Subject: [PATCH] Fix some rpmlint errors OBS-URL: https://build.opensuse.org/package/show/Java:packages/antlr?expand=0&rev=37 --- antlr-bootstrap.spec | 4 ++-- antlr.spec | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/antlr-bootstrap.spec b/antlr-bootstrap.spec index 816637d..3e97895 100644 --- a/antlr-bootstrap.spec +++ b/antlr-bootstrap.spec @@ -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() { diff --git a/antlr.spec b/antlr.spec index 905fc72..f462327 100644 --- a/antlr.spec +++ b/antlr.spec @@ -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