SUNWdia.spec revision 20307
12324N/A#
12324N/A# spec file for package SUNWdia
12324N/A#
12324N/A# includes module(s): dia
12324N/A#
16307N/A# Copyright 2008 Sun Microsystems, Inc.
12324N/A# This file and all modifications and additions to the pristine
12324N/A# package are under the same license as the package itself.
12324N/A#
17185N/A%define owner wangke
12324N/A#
13755N/A%include Solaris.inc
13755N/A%use dia = dia.spec
13755N/A
13755N/AName: SUNWdia
13755N/AIPS_package_name: editor/diagram/dia
16333N/AMeta(info.classification): %{classification_prefix}:Applications/Graphics and Imaging
13755N/ASummary: Dia Diagram Editor
12324N/ASource: %{name}-manpages-0.1.tar.gz
12324N/AVersion: %{dia.version}
12324N/ASUNW_BaseDir: %{_basedir}
12324N/ASUNW_Copyright: %{name}.copyright
12324N/ALicense: %{dia.license}
19108N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18688N/A
18688N/A%include default-depend.inc
12324N/A%include gnome-consolidation.inc
12324N/ARequires: SUNWlibart
15288N/ARequires: SUNWgtk2
12324N/ARequires: SUNWgnome-libs
12718N/ARequires: SUNWgccruntime
12324N/ABuildRequires: SUNWlibgnome-keyring
12324N/ABuildRequires: SUNWgtk2-devel
12324N/ABuildRequires: SUNWgccruntime
20857N/A
12324N/A%if %build_l10n
12324N/A%package l10n
12324N/AIPS_package_name: editor/diagram/dia/l10n
12324N/ASummary: %{summary} - l10n files
12324N/ASUNW_BaseDir(relocate_from:%{_prefix}): %{_gnome_il10n_basedir}
16075N/A%include default-depend.inc
12324N/A%include gnome-consolidation.inc
16307N/ARequires: %{name}
13386N/A%endif
12324N/A
19142N/A%prep
19142N/Arm -rf %name-%version
12324N/Amkdir -p %name-%version
12324N/A%dia.prep -d %name-%version
12324N/Acd %{_builddir}/%name-%version
16075N/Agzcat %SOURCE0 | tar xf -
12324N/A
19142N/A%build
19142N/A%dia.build -d %name-%version
12324N/A
12324N/A%install
12324N/A%dia.install -d %name-%version
12324N/A
12324N/Arm -r $RPM_BUILD_ROOT%{_mandir}
20857N/Acd %{_builddir}/%name-%version/sun-manpages
12324N/Amake install DESTDIR=$RPM_BUILD_ROOT
12324N/A
12324N/A%if %build_l10n
12324N/A%else
12324N/A# REMOVE l10n FILES
12324N/A#FIXME: really need to fix this stuff up
12324N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
12324N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/eu
12324N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/[a-d]*
12324N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/[f-z]*
15288N/A%endif
12324N/A
12324N/A%clean
12327N/Arm -rf $RPM_BUILD_ROOT
12324N/A
12324N/A%files
12324N/A%defattr (-, root, bin)
12324N/A%dir %attr (0755, root, bin) %{_bindir}
12324N/A%{_bindir}/*
12324N/A%dir %attr (0755, root, bin) %{_libdir}
12327N/A%{_libdir}/*
12324N/A%dir %attr (0755, root, sys) %{_datadir}
15288N/A%dir %attr (0755, root, other) %{_datadir}/applications
15288N/A%{_datadir}/applications/*
15288N/A%dir %attr (-, root, other) %{_datadir}/icons
12324N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor
12324N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
12324N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
12324N/A%{_datadir}/icons/hicolor/16x16/apps/dia.png
12324N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22
12324N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps
12324N/A%{_datadir}/icons/hicolor/22x22/apps/dia.png
12324N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24
16307N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps
12324N/A%{_datadir}/icons/hicolor/24x24/apps/dia.png
12324N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
16307N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
12324N/A%{_datadir}/icons/hicolor/32x32/apps/dia.png
12324N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48
12324N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps
12324N/A%{_datadir}/icons/hicolor/48x48/apps/dia.png
12324N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable
12324N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps
12324N/A%{_datadir}/icons/hicolor/scalable/apps/dia.svg
12324N/A%dir %attr (0755, root, other) %{_datadir}/gnome
12324N/A%{_datadir}/gnome/help/dia/C
15282N/A%{_datadir}/gnome/help/dia/en
15282N/A%{_datadir}/man/*
15282N/A%dir %attr (0755, root, other) %{_datadir}/mime-info
12324N/A%{_datadir}/mime-info/*
12324N/A%{_datadir}/omf/*
12324N/A%dir %attr (0755, root, other) %{_datadir}/dia
14167N/A%{_datadir}/dia/*
12324N/A%doc -d dia-%{dia.version} AUTHORS README
12324N/A%doc(bzip2) -d dia-%{dia.version} COPYING ChangeLog NEWS po/ChangeLog
12324N/A%dir %attr (0755, root, other) %{_datadir}/doc
12324N/A%{_datadir}/doc/dia/*
12324N/A
12324N/A%if %build_l10n
12324N/A%files l10n
12324N/A%defattr (-, root, bin)
12324N/A%dir %attr (0755, root, sys) %{_datadir}
20829N/A%attr (-, root, other) %{_datadir}/locale
12324N/A%dir %attr (0755, root, other) %{_datadir}/gnome
12324N/A%{_datadir}/gnome/help/dia/eu
12324N/A# Comment this line out since no [a-d]* locale at this point
12324N/A#%{_datadir}/gnome/help/dia/[a-d]*
12324N/A%{_datadir}/gnome/help/dia/[f-z]*
12324N/A%endif
12324N/A
12324N/A%changelog
16307N/A* Mon Jan 25 2010 - jerry.tan@sun.com
16307N/A- bump to 0.97.1
16075N/A* Wed Oct 22 2008 - matt.keenan@sun.com
16075N/A- Created
15288N/A
15288N/A
15282N/A
15282N/A