dia.spec revision 18178
1129N/A#
1129N/A# spec file for package dia
1129N/A#
1129N/A# Copyright 2008 Sun Microsystems, Inc.
1129N/A# This file and all modifications and additions to the pristine
1129N/A# package are under the same license as the package itself.
1129N/A#
1129N/A%define owner jerrytan
1129N/A#
1129N/A
1129N/A%define OSR gnome.org:0
1129N/A
1129N/AName: dia
1129N/ALicense: GPL
1129N/AGroup: System/GUI/GNOME
1129N/AVendor: Sun Microsystems, Inc.
1129N/ASummary: Dia Diagram Editor
1129N/AVersion: 0.97.1
1129N/ASource: http://ftp.gnome.org/pub/GNOME/sources/dia/0.97/dia-%{version}.tar.bz2
1129N/ASource1: l10n-configure.sh
1129N/ASUNW_BaseDir: %{_basedir}
1129N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
1129N/A
1129N/A%prep
1129N/A%setup -q -n %name-%version
1129N/A
1129N/A%build
1129N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
1129N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
1129N/A CPUS=1
1129N/Afi
1129N/Aexport CFLAGS="%optflags"
1129N/Aexport LDFLAGS="%_ldflags"
1129N/A
1129N/Alibtoolize --copy --force
1129N/Aintltoolize --automake --force --copy
1129N/A
1129N/Abash -x %SOURCE1 --enable-copyright
1129N/A
1129N/Aaclocal $ACLOCAL_FLAGS
1129N/Aautoheader
1129N/Aautomake -a -c -f
1129N/Aautoconf
1129N/A
1129N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
1129N/A --libdir=%{_libdir} \
1129N/A --libexecdir=%{_libexecdir} \
1129N/A --sysconfdir=%{_sysconfdir} \
1129N/A --enable-gnome \
1129N/A --with-cairo \
1129N/A --disable-static
1129N/A
1129N/Amake -j$CPUS
1129N/A
1129N/A%install
1129N/Arm -rf $RPM_BUILD_ROOT
1129N/Amake install DESTDIR=$RPM_BUILD_ROOT
1129N/Arm $RPM_BUILD_ROOT%{_libdir}/dia/*.la
1129N/Armdir $RPM_BUILD_ROOT%{_datadir}/oaf
1129N/A
1129N/A%if %build_l10n
1129N/A%else
1129N/A# REMOVE l10n FILES
1129N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
1129N/A%endif
1129N/A
1129N/A%clean
1129N/Arm -rf $RPM_BUILD_ROOT
1129N/A
1129N/A%changelog
1129N/A* Wed Apr 15 2009 - Matt.Keenan@sun.com
1129N/A- Bump to 0.97, remove all 6 patches, All upstreamed
1129N/A* Tue Jan 06 2009 - takao.fujiwara@sun.com
1129N/A- Add l10n-configure.sh for copyright.
1129N/A- Add patch goption.diff from trunk.
1129N/A* Mon Dec 22 2008 - takao.fujiwara@sun.com
1129N/A- Add patch g11n-filename.diff to fix crash on none UTF-8.
1129N/A* Wed Dec 03 2008 - Matt.Keenan@sun.com
1129N/A- Fix GtkSpinButton warnings because of new gtk bugster:6779724, bugzilla:563106
1129N/A* Wed Oct 22 2008 - Matt.Keenan@sun.com
1129N/A- created
1129N/A