SUNWgksu.spec
author adampaul
Tue, 22 Jul 2008 16:07:57 +0000
branchopensolaris-2008-05
changeset 11066 ed015069b8c6
parent 11059 0f237e224c59
child 13614 2dc626880351
permissions -rw-r--r--
Checkin fixes needed to build the OS2008.05 branch
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package SUNWgksu
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# includes module(s): gksu libgksu libgksuui
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
#
10600
1eb42082168c 2007-10-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9819
diff changeset
     6
# Copyright 2007 Sun Microsystems, Inc.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
# Owner: dkenny
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
%include Solaris.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
%use gksu = gksu.spec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
%use libgksu = libgksu.spec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
%use libgksuui = libgksuui.spec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Name:                    SUNWgksu
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Summary:                 Gksu CLI and libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
Version:                 1.3.0
11059
0f237e224c59 merge in changes from the gnome-2-20 branch
laca
parents: 10600
diff changeset
    20
SUNW_Copyright:          %{name}.copyright
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
SUNW_BaseDir:            %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
BuildRequires: SUNWgnome-panel-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
BuildRequires: SUNWgnome-print-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
BuildRequires: SUNWgnome-libs-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
BuildRequires: SUNWgnome-config-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
BuildRequires: SUNWgnome-base-libs-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
BuildRequires: SUNWgnome-component-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
Requires: SUNWgnome-panel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
Requires: SUNWgnome-libs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
Requires: SUNWgnome-print
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
Requires: SUNWgnome-base-libs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
Requires: SUNWgnome-config
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
Requires: SUNWgnome-component
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
%package root
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
Summary:                 %{summary} - / filesystem
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
SUNW_BaseDir:            /
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
Summary:                 %{summary} - development files 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
SUNW_BaseDir:            %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
Requires: %name
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
%if %build_l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
%package l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
Summary:                 %{summary} - l10n files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
SUNW_BaseDir:            %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
Requires:                %{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
rm -rf %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
mkdir %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
%libgksu.prep -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
%libgksuui.prep -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
%gksu.prep -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
export PKG_CONFIG_PATH=../libgksu1.2-%{libgksu.version}/libgksu:../libgksuui1.0-%{libgksuui.version}/libgksuui:%{_pkg_config_path}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
export CFLAGS="%optflags -I%{_includedir} -I%{_builddir}/%name-%version/libgksu1.2-%{libgksu.version}/libgksu -I%{_builddir}/%name-%version/libgksuui1.0-%{libgksuui.version}/libgksuui"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
export RPM_OPT_FLAGS="$CFLAGS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
export LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib -L/usr/X11/lib -R/usr/X11/lib -L%{_builddir}/%name-%version/libgksu1.2-%{libgksu.version}/libgksu -L%{_builddir}/%name-%version/libgksuui1.0-%{libgksuui.version}/libgksuui"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
%libgksu.build -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
%libgksuui.build -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
%gksu.build -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
%libgksu.install -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
%libgksuui.install -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
%gksu.install -d %name-%version
10600
1eb42082168c 2007-10-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9819
diff changeset
    77
1eb42082168c 2007-10-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9819
diff changeset
    78
# -f used because charset alias doesn't seem to be created when using
1eb42082168c 2007-10-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9819
diff changeset
    79
# gnu libiconv/libintl
1eb42082168c 2007-10-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9819
diff changeset
    80
rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias
1eb42082168c 2007-10-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9819
diff changeset
    81
rm -f $RPM_BUILD_ROOT%{_datadir}/locale/locale.alias
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
rm $RPM_BUILD_ROOT%{_bindir}/gksuexec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
rm $RPM_BUILD_ROOT%{_bindir}/gksudo
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
rm $RPM_BUILD_ROOT%{_mandir}/man1/gksuexec.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
rm $RPM_BUILD_ROOT%{_mandir}/man1/gksudo.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
rm $RPM_BUILD_ROOT%{_libdir}/libgksu1.2.a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
rm $RPM_BUILD_ROOT%{_libdir}/libgksu1.2.la
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
rm $RPM_BUILD_ROOT%{_libdir}/libgksuui1.0.a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
rm $RPM_BUILD_ROOT%{_libdir}/libgksuui1.0.la
10600
1eb42082168c 2007-10-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9819
diff changeset
    90
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%if %build_l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
# REMOVE l10n FILES
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
%{_libdir}/libgksu1.2.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
%{_libdir}/libgksu1.2/gksu-run-helper
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
%{_libdir}/libgksuui1.0.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
%dir %attr(0755, root, bin) %{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
%dir %attr(0755, root, bin) %{_mandir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
%{_mandir}/man1/gksu*.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
%dir %attr (0755, root, bin) %{_bindir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
%{_bindir}/gksu*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
%dir %attr (0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
%{_datadir}/libgksuui1.0/gksu-auth.png
9780
21510eb397b1 2007-04-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   116
%attr (0755, root, other) %dir %{_datadir}/pixmaps
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
%{_datadir}/pixmaps/gksu*.png
9780
21510eb397b1 2007-04-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   118
%attr (0755, root, other) %dir %{_datadir}/applications
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
%{_datadir}/applications/gksu*.desktop
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
%files root
9780
21510eb397b1 2007-04-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   122
%defattr (-, root, bin)
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
%attr (0755, root, sys) %dir %{_sysconfdir}
9819
58c19754e618 2007-05-02 Darren Kenny <[email protected]>
dkenny
parents: 9780
diff changeset
   124
%attr (0644, root, root) %{_sysconfdir}/gksu.conf
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
%dir %attr (0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
%attr (-, root, bin) %{_datadir}/gtk-doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
%{_libdir}/pkgconfig/libgksu1.2.pc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
%{_libdir}/pkgconfig/libgksuui1.0.pc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
%dir %attr (0755, root, bin) %dir %{_includedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
%{_includedir}/libgksu1.2/gksu*.h
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
%{_includedir}/libgksuui1.0/gksuui*.h
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
%if %build_l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
%files l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   140
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
%dir %attr (0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
%attr (-, root, other) %{_datadir}/locale
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   144
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
%changelog
10600
1eb42082168c 2007-10-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9819
diff changeset
   146
* Wed Oct  3 2007 - [email protected]
1eb42082168c 2007-10-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9819
diff changeset
   147
- use rm -f to delete charset.alias/locale.alias because they do not get
1eb42082168c 2007-10-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9819
diff changeset
   148
  created in the indiana build
9819
58c19754e618 2007-05-02 Darren Kenny <[email protected]>
dkenny
parents: 9780
diff changeset
   149
* Wed May 03 2007 - [email protected]
58c19754e618 2007-05-02 Darren Kenny <[email protected]>
dkenny
parents: 9780
diff changeset
   150
- Restore correct permissons on /etc/gksu.conf to be root:root
9780
21510eb397b1 2007-04-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   151
* Tue Apr 24 2007 - [email protected]
21510eb397b1 2007-04-24 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   152
- fix default attributes
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   153
* Thu Sep 18 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   154
- Change the group for /etc/gksu.conf to be as the app expects (i.e. root:root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   155
* Fri Aug 30 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   156
- Delete %{_datadir}/locale/locale.alias as it caused a packaging conflict.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   157
* Thu Aug 10 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   158
- initial Sun release.