spec: normalizza i permessi dei file installati (Harbour rifiuta i 654)
rpmvalidation sul pacchetto 0.3.1 segnalava 'File must not be executable (current permissions: 654)' sui .qml: qmake copia i permessi del sorgente e questa cartella di lavoro li ha con il gruppo eseguibile. Il RPM non era pubblicabile anche se l'app funzionava. Ora %install forza 644 sui dati e 755 sul binario: il pacchetto non dipende piu' dall'umask di chi compila.
This commit is contained in:
1 parent
82d85ab30b
commit
b12ad4257f
1 file changed
+9
@@ -43,6 +43,15 @@ lrelease "$TS" -qm %{_builddir}/%{name}_it.qm
|
||||
rm -rf %{buildroot}
|
||||
%qmake5_install
|
||||
|
||||
# Permessi dei file installati. Il validatore Harbour rifiuta i file eseguibili
|
||||
# fuori da /usr/bin ("File must not be executable (current permissions: 654)"):
|
||||
# qmake copia i permessi del sorgente, quindi un checkout con umask o ACL
|
||||
# permissive (o una cartella condivisa) produce un RPM non pubblicabile.
|
||||
# Qui si normalizza SEMPRE, senza fidarsi dell'albero dei sorgenti.
|
||||
find %{buildroot}%{_datadir}/%{name} -type f -exec chmod 644 {} \;
|
||||
find %{buildroot}/usr/share/icons/hicolor -name '%{name}.png' -exec chmod 644 {} \;
|
||||
chmod 755 %{buildroot}%{_bindir}/%{name}
|
||||
|
||||
# Italian translation: installed in the app data dir (the RPM validator
|
||||
# rejects /usr/share/translations); main.cpp loads it from there.
|
||||
mkdir -p %{buildroot}%{_datadir}/%{name}/translations
|
||||
|
||||
Reference in new issue
Block a user