pixman/pixman.spec

93 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package pixman (Version 0.17.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: pixman
Version: 0.17.2
Release: 1
License: MIT License (or similar)
Summary: Pixel manipulation library
Url: http://xorg.freedesktop.org/
Group: System/Libraries
Source: http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Pixman is a pixel manipulation library for X and cairo.
%package -n libpixman-1-0
License: MIT License (or similar)
Summary: Pixel manipulation library
Group: System/Libraries
%description -n libpixman-1-0
Pixman is a pixel manipulation library for X and cairo.
%package -n libpixman-1-0-devel
License: MIT License (or similar)
Summary: Pixel manipulation library - development files
Group: Development/Libraries/X11
Requires: libpixman-1-0 = %{version}
%description -n libpixman-1-0-devel
Pixman is a pixel manipulation library for X and cairo.
%prep
%setup -q
%build
#autoreconf -fi
#
#Note about the ifarchs for arm: armv5 has no neon (like mmx on x86), but on armv7 neon is available on most boards.
# Thus make it possible to switch it on for v7 on its own.
# For now: disable neon on both
%configure \
%ifarch armv5el armv5tel
--disable-arm-neon \
%endif
%ifarch armv7el armv7l
--disable-arm-neon \
%endif
--disable-static
make %{?jobs:-j%jobs}
%install
%makeinstall
rm %{buildroot}%{_libdir}/libpixman-1.la
%clean
rm -rf %{buildroot}
%post -n libpixman-1-0 -p /sbin/ldconfig
%postun -n libpixman-1-0 -p /sbin/ldconfig
%files -n libpixman-1-0
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libpixman-1.so.*
%files -n libpixman-1-0-devel
%defattr(-,root,root)
%{_includedir}/pixman-1
%{_libdir}/libpixman-1.so
%{_libdir}/pkgconfig/pixman-1.pc
%changelog