Bug 1648650

Summary: Make javascript files %noreplace in spec file
Product: [Fedora] Fedora Reporter: Laurent Jacquot <jk>
Component: gerberaAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: gwync
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gerbera-1.2.0-3.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-22 03:20:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to the spec file none

Description Laurent Jacquot 2018-11-11 11:39:05 UTC
Created attachment 1504370 [details]
patch to the spec file

Description of problem:
User modified import.js, playlist.js and common.js get replaced when upgraded

Version-Release number of selected component (if applicable):
gerbera-1.2.0-2

Tentative patch to the spec file (also attached):

--- gerbera.spec	2018-11-11 11:19:07.795384135 +0100
+++ gerbera.spec.orig	2018-11-11 11:18:58.493515646 +0100
@@ -113,6 +113,9 @@
 
 %files data
 %{_datadir}/%{name}/
+%config(noreplace) %{_datadir}/%{name}/js/import.js
+%config(noreplace) %{_datadir}/%{name}/js/playlists.js
+%config(noreplace) %{_datadir}/%{name}/js/common.js
 
 %changelog
 * Tue Oct 23 2018 Gwyn Ciesla <limburgher> - 1.2.0-2

regards
Laurent

Comment 1 Fedora Update System 2018-11-12 22:40:08 UTC
gerbera-1.2.0-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-2d7ec77ec0

Comment 2 Fedora Update System 2018-11-13 04:50:19 UTC
gerbera-1.2.0-3.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-2d7ec77ec0

Comment 3 Fedora Update System 2018-11-22 03:20:37 UTC
gerbera-1.2.0-3.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.