disable generic_target conditional universally
This commit is contained in:
		
							parent
							
								
									2aa4fbec67
								
							
						
					
					
						commit
						92c6695577
					
				
							
								
								
									
										19
									
								
								libvpx.spec
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								libvpx.spec
									
									
									
									
									
								
							| @ -6,7 +6,7 @@ | |||||||
| Name:			libvpx | Name:			libvpx | ||||||
| Summary:		VP8 Video Codec SDK | Summary:		VP8 Video Codec SDK | ||||||
| Version:		1.5.0 | Version:		1.5.0 | ||||||
| Release:		3%{?dist} | Release:		4%{?dist} | ||||||
| License:		BSD | License:		BSD | ||||||
| Group:			System Environment/Libraries | Group:			System Environment/Libraries | ||||||
| Source0:		http://downloads.webmproject.org/releases/webm/%{name}-%{version}.tar.bz2 | Source0:		http://downloads.webmproject.org/releases/webm/%{name}-%{version}.tar.bz2 | ||||||
| @ -59,10 +59,14 @@ and decoder. | |||||||
| %endif | %endif | ||||||
| %endif | %endif | ||||||
| 
 | 
 | ||||||
| # The configure script will reject the shared flag on the generic target | # History: The configure script used to reject the shared flag on the generic target. | ||||||
| # This means we need to fall back to the manual creation we did before. :P | # This meant that we needed to fall back to manual shared lib creation. | ||||||
|  | # However, the modern configure script permits the shared flag and assumes ELF. | ||||||
|  | # Additionally, the libvpx.ver would need to be updated to work properly. | ||||||
|  | # As a result, we disable this universally, but keep it around in case we ever need to support | ||||||
|  | # something "special". | ||||||
| %if "%{vpxtarget}" == "generic-gnu" | %if "%{vpxtarget}" == "generic-gnu" | ||||||
| %global generic_target 1 | %global generic_target 0 | ||||||
| %else | %else | ||||||
| %global	generic_target 0 | %global	generic_target 0 | ||||||
| %endif | %endif | ||||||
| @ -106,8 +110,9 @@ sed -i "s|NM=armv7hl-redhat-linux-gnueabi-nm|NM=nm|g" docs-%{vpxtarget}.mk | |||||||
| 
 | 
 | ||||||
| make %{?_smp_mflags} verbose=true | make %{?_smp_mflags} verbose=true | ||||||
| 
 | 
 | ||||||
| %if %{generic_target} |  | ||||||
| # Manual shared library creation | # Manual shared library creation | ||||||
|  | # We should never need to do this anymore, and if we do, we need to fix the version-script. | ||||||
|  | %if %{generic_target} | ||||||
| mkdir tmp | mkdir tmp | ||||||
| cd tmp | cd tmp | ||||||
| ar x ../libvpx_g.a | ar x ../libvpx_g.a | ||||||
| @ -138,6 +143,7 @@ if [ -d %{buildroot}/usr/docs ]; then | |||||||
|    mv %{buildroot}/usr/docs doc/ |    mv %{buildroot}/usr/docs doc/ | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  | # Again, we should never need to do this anymore. | ||||||
| %if %{generic_target} | %if %{generic_target} | ||||||
| install -p libvpx.so.%{soversion} %{buildroot}%{_libdir} | install -p libvpx.so.%{soversion} %{buildroot}%{_libdir} | ||||||
| pushd %{buildroot}%{_libdir} | pushd %{buildroot}%{_libdir} | ||||||
| @ -182,6 +188,9 @@ popd | |||||||
| %{_bindir}/* | %{_bindir}/* | ||||||
| 
 | 
 | ||||||
| %changelog | %changelog | ||||||
|  | * Wed Mar 16 2016 Tom Callaway <spot@fedoraproject.org> - 1.5.0-4 | ||||||
|  | - disable generic_target conditional universally (bz1311125) | ||||||
|  | 
 | ||||||
| * Tue Mar  8 2016 Tom Callaway <spot@fedoraproject.org> - 1.5.0-3 | * Tue Mar  8 2016 Tom Callaway <spot@fedoraproject.org> - 1.5.0-3 | ||||||
| - enable-experimental and enable-spatial-svc | - enable-experimental and enable-spatial-svc | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user