dia.spec revision 15317
16913N/A#
16913N/A# spec file for package dia
16913N/A#
16913N/A# Copyright 2008 Sun Microsystems, Inc.
16913N/A# This file and all modifications and additions to the pristine
20885N/A# package are under the same license as the package itself.
16913N/A#
16913N/A# Owner: mattman
16913N/A#
17185N/A
16913N/AName: dia
16913N/ASummary: Dia Diagram Editor
16913N/AVersion: 0.96.1
17183N/ASource: http://ftp.gnome.org/pub/GNOME/sources/dia/0.96/dia-%{version}.tar.bz2
17183N/A# date:2008-10-23 type:bug owner:mattman bugzilla:558263
16913N/APatch1: dia-01-remove-stdc++.diff
17033N/A# date:2008-10-24 type:bug owner:mattman bugzilla:558264
17033N/APatch2: dia-02-use-so-plugins.diff
20780N/A# date:2008-10-31 type:bug owner:mattman bugzilla:558690
17033N/APatch3: dia-03-help-docs.diff
18615N/ASUNW_BaseDir: %{_basedir}
17033N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
16913N/A
16913N/A%prep
16913N/A%setup -q -n %name-%version
16913N/A%patch1 -p1
19025N/A%patch2 -p1
19025N/A%patch3 -p1
17033N/A
16913N/A%build
16913N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
16913N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
19025N/A CPUS=1
19025N/Afi
19025N/Aexport CFLAGS="%optflags"
16913N/Aexport LDFLAGS="%_ldflags"
16913N/A
16913N/Aglib-gettextize -f
16913N/Alibtoolize --copy --force
16913N/Aintltoolize --force --copy
16913N/Aaclocal $ACLOCAL_FLAGS
16913N/Aautoheader
16913N/Aautomake -a -c -f
16913N/Aautoconf
16913N/A
16913N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
16913N/A --libdir=%{_libdir} \
19025N/A --libexecdir=%{_libexecdir} \
16913N/A --sysconfdir=%{_sysconfdir} \
16913N/A --enable-gnome \
16913N/A --with-cairo \
16913N/A --disable-static
16913N/A
16913N/Amake -j$CPUS
16913N/A
18630N/A%install
18630N/Arm -rf $RPM_BUILD_ROOT
16913N/Amake install DESTDIR=$RPM_BUILD_ROOT
16961N/Arm $RPM_BUILD_ROOT%{_libdir}/dia/*.la
20860N/Armdir $RPM_BUILD_ROOT%{_datadir}/oaf
16913N/A
16913N/A%if %build_l10n
16913N/A%else
16913N/A# REMOVE l10n FILES
16913N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
16913N/A%endif
16913N/A
16913N/A%clean
18080N/Arm -rf $RPM_BUILD_ROOT
16913N/A
16913N/A%changelog
16913N/A* Wed Oct 22 2008 - Matt.Keenan@sun.com
16913N/A- created
16913N/A