SUNWdia.spec
author chrisk
Mon, 31 Aug 2009 16:23:04 +0000
changeset 16434 f21f22550fe9
parent 15726 f3aac22e943d
child 16907 c6ddec838f33
permissions -rw-r--r--
2009-08-31 Christian Kelly <[email protected]> * base-specs/*.spec, *.spec: Change owner field to be parsable with spectool.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14566
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
     1
#
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
     2
# spec file for package SUNWdia
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
     3
#
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
     4
# includes module(s): dia
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
     5
#
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
     6
# Copyright 2008 Sun Microsystems, Inc.
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
     8
# package are under the same license as the package itself.
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
     9
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 15726
diff changeset
    10
%define owner mattman
14566
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    11
#
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    12
%include Solaris.inc
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    13
%use dia = dia.spec
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    14
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    15
Name:             SUNWdia
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    16
Summary:          Dia Diagram Editor
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    17
Source:           %{name}-manpages-0.1.tar.gz
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    18
Version:          %{dia.version}
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    19
SUNW_BaseDir:     %{_basedir}
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    20
SUNW_Copyright:   %{name}.copyright
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    21
BuildRoot:        %{_tmppath}/%{name}-%{version}-build
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    22
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    23
%include default-depend.inc
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 14627
diff changeset
    24
Requires: SUNWlibart
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 14627
diff changeset
    25
Requires: SUNWgtk2
14566
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    26
Requires: SUNWgnome-libs
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    27
Requires: SUNWgccruntime
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 14627
diff changeset
    28
BuildRequires: SUNWgtk2-devel
14566
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    29
BuildRequires: SUNWgccruntime
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    30
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    31
%if %build_l10n
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    32
%package l10n
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    33
Summary:                 %{summary} - l10n files
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    34
SUNW_BaseDir:            %{_basedir}
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    35
%include default-depend.inc
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    36
Requires:                %{name}
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    37
%endif
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    38
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    39
%prep
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    40
rm -rf %name-%version
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    41
mkdir -p %name-%version
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    42
%dia.prep -d %name-%version
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    43
cd %{_builddir}/%name-%version
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    44
gzcat %SOURCE0 | tar xf -
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    45
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    46
%build
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    47
%dia.build -d %name-%version
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    48
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    49
%install
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    50
%dia.install -d %name-%version
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    51
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    52
rm -r $RPM_BUILD_ROOT%{_mandir}
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    53
cd %{_builddir}/%name-%version/sun-manpages
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    54
make install DESTDIR=$RPM_BUILD_ROOT
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    55
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    56
%if %build_l10n
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    57
%else
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    58
# REMOVE l10n FILES
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    59
#FIXME: really need to fix this stuff up
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    60
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    61
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/eu
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    62
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/[a-d]*
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    63
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/dia/[f-z]*
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    64
%endif
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    65
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    66
%clean
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    67
rm -rf $RPM_BUILD_ROOT
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    68
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    69
%files
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    70
%defattr (-, root, bin)
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    71
%dir %attr (0755, root, bin) %{_bindir}
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    72
%{_bindir}/*
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    73
%dir %attr (0755, root, bin) %{_libdir}
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    74
%{_libdir}/*
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    75
%dir %attr (0755, root, sys) %{_datadir}
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    76
%dir %attr (0755, root, other) %{_datadir}/applications
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    77
%{_datadir}/applications/*
15726
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    78
%dir %attr (-, root, other) %{_datadir}/icons
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    79
%dir %attr (-, root, other) %{_datadir}/icons/hicolor
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    80
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    81
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    82
%{_datadir}/icons/hicolor/16x16/apps/dia.png
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    83
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    84
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    85
%{_datadir}/icons/hicolor/22x22/apps/dia.png
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    86
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    87
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    88
%{_datadir}/icons/hicolor/24x24/apps/dia.png
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    89
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    90
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    91
%{_datadir}/icons/hicolor/32x32/apps/dia.png
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    92
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    93
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    94
%{_datadir}/icons/hicolor/48x48/apps/dia.png
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    95
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    96
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
    97
%{_datadir}/icons/hicolor/scalable/apps/dia.svg
14566
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    98
%dir %attr (0755, root, other) %{_datadir}/gnome
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
    99
%{_datadir}/gnome/help/dia/C
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   100
%{_datadir}/gnome/help/dia/en
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   101
%{_datadir}/man/*
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   102
%dir %attr (0755, root, other) %{_datadir}/mime-info
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   103
%{_datadir}/mime-info/*
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   104
%{_datadir}/omf/*
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   105
%dir %attr (0755, root, other) %{_datadir}/dia
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   106
%{_datadir}/dia/*
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   107
%doc -d dia-%{dia.version} AUTHORS README
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   108
%doc(bzip2) -d dia-%{dia.version} COPYING ChangeLog NEWS po/ChangeLog
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   109
%dir %attr (0755, root, other) %{_datadir}/doc
15726
f3aac22e943d * SUNWdia.spec : Bump to 0.97
mattman
parents: 15650
diff changeset
   110
%{_datadir}/doc/dia/*
14566
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   111
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   112
%if %build_l10n
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   113
%files l10n
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   114
%defattr (-, root, bin)
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   115
%dir %attr (0755, root, sys) %{_datadir}
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   116
%attr (-, root, other) %{_datadir}/locale
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   117
%dir %attr (0755, root, other) %{_datadir}/gnome
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   118
%{_datadir}/gnome/help/dia/eu
14627
0f6022f0d5c7 2008-11-20 Dave Lin <[email protected]>
davelam
parents: 14566
diff changeset
   119
# Comment this line out since no [a-d]* locale at this point
0f6022f0d5c7 2008-11-20 Dave Lin <[email protected]>
davelam
parents: 14566
diff changeset
   120
#%{_datadir}/gnome/help/dia/[a-d]*
14566
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   121
%{_datadir}/gnome/help/dia/[f-z]*
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   122
%endif
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   123
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   124
%changelog
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   125
* Wed Oct 22 2008 - [email protected]
9fde3d7bd543 * SUNWdia.spec : New SUNW spec for Dia - Diagram Editor package
mattman
parents:
diff changeset
   126
- Created
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 14627
diff changeset
   127