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