SUNWdia.spec
changeset 14566 9fde3d7bd543
child 13988 7fd00c7128f6
child 14627 0f6022f0d5c7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SUNWdia.spec	Thu Nov 06 15:27:34 2008 +0000
@@ -0,0 +1,107 @@
+#
+# spec file for package SUNWdia
+#
+# includes module(s): dia
+#
+# Copyright 2008 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Owner: mattman
+#
+%include Solaris.inc
+%use dia = dia.spec
+
+Name:             SUNWdia
+Summary:          Dia Diagram Editor
+Source:           %{name}-manpages-0.1.tar.gz
+Version:          %{dia.version}
+SUNW_BaseDir:     %{_basedir}
+SUNW_Copyright:   %{name}.copyright
+BuildRoot:        %{_tmppath}/%{name}-%{version}-build
+
+%include default-depend.inc
+Requires: SUNWgnome-libs
+Requires: SUNWgnome-base-libs
+Requires: SUNWgccruntime
+BuildRequires: SUNWgnome-base-libs-devel
+BuildRequires: SUNWgccruntime
+
+%if %build_l10n
+%package l10n
+Summary:                 %{summary} - l10n files
+SUNW_BaseDir:            %{_basedir}
+%include default-depend.inc
+Requires:                %{name}
+%endif
+
+%prep
+rm -rf %name-%version
+mkdir -p %name-%version
+%dia.prep -d %name-%version
+cd %{_builddir}/%name-%version
+gzcat %SOURCE0 | tar xf -
+
+%build
+%dia.build -d %name-%version
+
+%install
+%dia.install -d %name-%version
+
+rm -r $RPM_BUILD_ROOT%{_mandir}
+cd %{_builddir}/%name-%version/sun-manpages
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%if %build_l10n
+%else
+# REMOVE l10n FILES
+#FIXME: really need to fix this stuff up
+rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
+rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/eu
+rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/[a-d]*
+rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/[f-z]*
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/applications
+%{_datadir}/applications/*
+%dir %attr (0755, root, other) %{_datadir}/pixmaps
+%{_datadir}/pixmaps/*
+%dir %attr (0755, root, other) %{_datadir}/gnome
+%{_datadir}/gnome/help/dia/C
+%{_datadir}/gnome/help/dia/en
+%dir %attr (0755, root, other) %{_datadir}/man
+%{_datadir}/man/*
+%dir %attr (0755, root, other) %{_datadir}/mime-info
+%{_datadir}/mime-info/*
+%dir %attr (0755, root, other) %{_datadir}/omf
+%{_datadir}/omf/*
+%dir %attr (0755, root, other) %{_datadir}/dia
+%{_datadir}/dia/*
+%doc -d dia-%{dia.version} AUTHORS README
+%doc(bzip2) -d dia-%{dia.version} COPYING ChangeLog NEWS po/ChangeLog
+%dir %attr (0755, root, other) %{_datadir}/doc
+
+%if %build_l10n
+%files l10n
+%defattr (-, root, bin)
+%dir %attr (0755, root, sys) %{_datadir}
+%attr (-, root, other) %{_datadir}/locale
+%dir %attr (0755, root, other) %{_datadir}/gnome
+%{_datadir}/gnome/help/dia/eu
+%{_datadir}/gnome/help/dia/[a-d]*
+%{_datadir}/gnome/help/dia/[f-z]*
+%endif
+
+%changelog
+* Wed Oct 22 2008 - [email protected]
+- Created