Bug 861770

Summary: Fix major_version in epiphany spec file
Product: [Fedora] Fedora Reporter: Mohamed El Morabity <pikachu.2014>
Component: epiphanyAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 18CC: debarshir, gecko-bugs-nobody, rob.townley
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-09 20:28:28 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 make %{major_version} macro defined from %{version} none

Description Mohamed El Morabity 2012-09-30 16:06:35 UTC
Created attachment 619449 [details]
Patch to make %{major_version} macro defined from %{version}

Description of problem:
The epiphany spec file defines a %{major_version} macro to create and own the
extensions folders in /usr/lib*/epiphany/:
 mkdir -p
$RPM_BUILD_ROOT%{_libdir}/epiphany/%{major_version}/{plugins,extensions}
 ln -sf %{major_version}/plugins $RPM_BUILD_ROOT%{_libdir}/epiphany/plugins
 ln -sf %{major_version}/extensions
$RPM_BUILD_ROOT%{_libdir}/epiphany/extensions

In F18/rawhide spec, %{major_version} is set to 3.5 whereas it should be 3.6 (as for
the current Epiphany major version in the repos).

This issue prevents the (future releases of) epiphany-extensions package to
work with epiphany 3.6 without dirty tricks (extensions would be installed in
%{_libdir}/epiphany/3.6/extensions/, with %{_libdir}/epiphany/3.6/ supposed to
be owned by epiphany). Moreover, the epiphany-extensions depends on the virtual Provides "epiphany(abi)", whose version is set too to %{major_version}.

To avoid such a problem occuring at each new major release of Epiphany (see RHBZ 808401 and 743433), here is provided a patch to make %{major_version} defined from %{version}. This would make automatic updates of Epiphany package easier.

Comment 1 Fedora Update System 2012-10-05 01:51:23 UTC
epiphany-3.6.0-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/epiphany-3.6.0-2.fc18

Comment 2 Fedora Update System 2012-10-05 05:39:00 UTC
Package epiphany-3.6.0-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing epiphany-3.6.0-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-15459/epiphany-3.6.0-2.fc18
then log in and leave karma (feedback).