dia.spec revision 15599
15317N/A#
15317N/A# spec file for package dia
15317N/A#
15317N/A# Copyright 2008 Sun Microsystems, Inc.
15317N/A# This file and all modifications and additions to the pristine
15317N/A# package are under the same license as the package itself.
15317N/A#
15317N/A# Owner: mattman
15317N/A#
15317N/A
15317N/AName: dia
15317N/ASummary: Dia Diagram Editor
15317N/AVersion: 0.96.1
15317N/ASource: http://ftp.gnome.org/pub/GNOME/sources/dia/0.96/dia-%{version}.tar.bz2
15599N/ASource1: l10n-configure.sh
15317N/A# date:2008-10-23 type:bug owner:mattman bugzilla:558263
15317N/APatch1: dia-01-remove-stdc++.diff
15317N/A# date:2008-10-24 type:bug owner:mattman bugzilla:558264
15317N/APatch2: dia-02-use-so-plugins.diff
15317N/A# date:2008-10-31 type:bug owner:mattman bugzilla:558690
15317N/APatch3: dia-03-help-docs.diff
15452N/A# date:2008-12-03 type:bug owner:mattman bugzilla:563106 bugster:6779724
15452N/APatch4: dia-04-gtk-spin-button.diff
15599N/A# date:2008-12-22 type:bug owner:fujiwara bugzilla:564850 bugster:6786116 state:upstream
15551N/APatch5: dia-05-g11n-filename.diff
15599N/A## http://svn.gnome.org/viewvc/dia/trunk/app/app_procs.c?r1=3838&r2=3897&view=patch
15599N/A# date:2009-01-06 type:feature owner:fujiwara state:upstream
15599N/APatch6: dia-06-goption.diff
15317N/ASUNW_BaseDir: %{_basedir}
15317N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
15317N/A
15317N/A%prep
15317N/A%setup -q -n %name-%version
15317N/A%patch1 -p1
15317N/A%patch2 -p1
15317N/A%patch3 -p1
15452N/A%patch4 -p1
15551N/A%patch5 -p1
15599N/A%patch6 -p1
15317N/A
15317N/A%build
15317N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
15317N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
15317N/A CPUS=1
15317N/Afi
15317N/Aexport CFLAGS="%optflags"
15317N/Aexport LDFLAGS="%_ldflags"
15317N/A
15317N/Alibtoolize --copy --force
15599N/Aintltoolize --automake --force --copy
15599N/A
15599N/Abash -x %SOURCE1 --enable-copyright
15599N/A
15317N/Aaclocal $ACLOCAL_FLAGS
15317N/Aautoheader
15317N/Aautomake -a -c -f
15317N/Aautoconf
15317N/A
15317N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
15317N/A --libdir=%{_libdir} \
15317N/A --libexecdir=%{_libexecdir} \
15317N/A --sysconfdir=%{_sysconfdir} \
15317N/A --enable-gnome \
15317N/A --with-cairo \
15317N/A --disable-static
15317N/A
15317N/Amake -j$CPUS
15317N/A
15317N/A%install
15317N/Arm -rf $RPM_BUILD_ROOT
15317N/Amake install DESTDIR=$RPM_BUILD_ROOT
15317N/Arm $RPM_BUILD_ROOT%{_libdir}/dia/*.la
15317N/Armdir $RPM_BUILD_ROOT%{_datadir}/oaf
15317N/A
15317N/A%if %build_l10n
15317N/A%else
15317N/A# REMOVE l10n FILES
15317N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
15317N/A%endif
15317N/A
15317N/A%clean
15317N/Arm -rf $RPM_BUILD_ROOT
15317N/A
15317N/A%changelog
15599N/A* Tue Jan 06 2009 - takao.fujiwara@sun.com
15599N/A- Add l10n-configure.sh for copyright.
15599N/A- Add patch goption.diff from trunk.
15551N/A* Mon Dec 22 2008 - takao.fujiwara@sun.com
15551N/A- Add patch g11n-filename.diff to fix crash on none UTF-8.
15452N/A* Wed Dec 03 2008 - Matt.Keenan@sun.com
15452N/A- Fix GtkSpinButton warnings because of new gtk bugster:6779724, bugzilla:563106
15317N/A* Wed Oct 22 2008 - Matt.Keenan@sun.com
15317N/A- created