base-specs/pixman.spec
author convert-repo
Tue, 28 Sep 2010 11:41:29 +0000
changeset 20122 34a34bffcb68
parent 18249 228793080ad6
permissions -rw-r--r--
update tags

#
# spec file for package pixman
#
# Copyright (c) 2008 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner chrisk
#

#%define none:none

Name:         pixman
License:      Unknown
Group:        System/Libraries
Version:      0.18.2
Release:      1
Distribution: Java Desktop System
Vendor:	      Gnome Community
Summary:      Library
Source:       http://cairographics.org/releases/%{name}-%{version}.tar.gz
URL:          http://cairographics.org
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Docdir:       %{_defaultdocdir}/doc
Autoreqprov:  on
Prereq:       /sbin/ldconfig

%description
Pixman

%prep
%setup -q

%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
  CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
  CPUS=1
fi

export CFLAGS="%optflags"
./configure --prefix=%{_prefix} \
            --mandir=%{_mandir} \
            --sysconfdir=%{_sysconfdir} \
            --libdir=%{_libdir} \
            --bindir=%{_bindir} \
	    %{gtk_doc_option}

make

%install
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)

%changelog
* Thu Jul 15 2010 - [email protected]
- Create.  X team owns this component. We need a newer version, so create this
  in the meantime.