Use wordsize=64 on mips64 (#1305943)

- Modernize spec
epel9
Yaakov Selkowitz 9 years ago
parent 16bb2a8a08
commit 9ebe7e55d5

@ -1,9 +1,9 @@
Summary: Library of graphics routines used by libgnomecanvas
Name: libart_lgpl Name: libart_lgpl
Version: 2.3.21 Version: 2.3.21
Release: 14%{?dist} Release: 15%{?dist}
Summary: Library of graphics routines used by libgnomecanvas
URL: http://www.gnome.org/ URL: http://www.gnome.org/
Source0: http://ftp.gnome.org/pub/gnome/sources/libart_lgpl/2.3/%{name}-%{version}.tar.bz2 Source0: http://download.gnome.org/sources/libart_lgpl/2.3/%{name}-%{version}.tar.bz2
#Fedora specific patch #Fedora specific patch
Patch0: libart-multilib.patch Patch0: libart-multilib.patch
License: LGPLv2+ License: LGPLv2+
@ -40,14 +40,8 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
# fix multilib issues # fix multilib issues
%ifarch x86_64 s390x ia64 %{power64} alpha sparc64 aarch64
%define wordsize 64
%else
%define wordsize 32
%endif
mv $RPM_BUILD_ROOT%{_includedir}/libart-2.0/libart_lgpl/art_config.h \ mv $RPM_BUILD_ROOT%{_includedir}/libart-2.0/libart_lgpl/art_config.h \
$RPM_BUILD_ROOT%{_includedir}/libart-2.0/libart_lgpl/art_config-%{wordsize}.h $RPM_BUILD_ROOT%{_includedir}/libart-2.0/libart_lgpl/art_config-%{__isa_bits}.h
cat >$RPM_BUILD_ROOT%{_includedir}/libart-2.0/libart_lgpl/art_config.h <<EOF cat >$RPM_BUILD_ROOT%{_includedir}/libart-2.0/libart_lgpl/art_config.h <<EOF
#ifndef LIBART_MULTILIB #ifndef LIBART_MULTILIB
@ -72,18 +66,21 @@ EOF
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-) %doc AUTHORS NEWS README
%doc AUTHORS COPYING NEWS README %license COPYING
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.*
%files devel %files devel
%defattr(-,root,root,-)
%{_libdir}/lib*.so %{_libdir}/lib*.so
%{_libdir}/pkgconfig/* %{_libdir}/pkgconfig/*
%{_bindir}/libart2-config %{_bindir}/libart2-config
%{_includedir}/* %{_includedir}/*
%changelog %changelog
* Thu Aug 04 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 2.3.21-15
- Use wordsize=64 on mips64 (#1305943)
- Modernize spec
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.21-14 * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.21-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

Loading…
Cancel
Save