SUNWlibnotify.spec
author jedy
Thu, 21 Jan 2010 11:38:22 +0000
changeset 17413 886ebbc29ceb
parent 17266 b3cda03a61df
permissions -rw-r--r--
2010-01-21 Jedy Wang <[email protected]> * SUNWlibnotify.spec: Updates cflags to fix 64-bit build problem.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17097
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     1
#
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     2
# spec file for package SUNWlibnotify
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     3
#
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     4
# includes module(s): libnotify
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     5
#
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     6
# Copyright 2009 Sun Microsystems, Inc.
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     8
# package are under the same license as the package itself.
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     9
#
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    10
%define owner jedy
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    11
#
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    12
%include Solaris.inc
17252
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    13
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    14
%ifarch amd64 sparcv9
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    15
%include arch64.inc
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    16
%use libnotify64 = libnotify.spec
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    17
%endif
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    18
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    19
%include base.inc
17097
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    20
%use libnotify = libnotify.spec
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    21
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    22
Name:                    SUNWlibnotify
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    23
Summary:                 Library for desktop notifications
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    24
Version:                 %{default_pkg_version}
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    25
SUNW_BaseDir:            %{_basedir}
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    26
SUNW_Copyright:          %{name}.copyright
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    27
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    28
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    29
%include default-depend.inc
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    30
17266
b3cda03a61df 2010-01-03 Christian Kelly <[email protected]>
chrisk
parents: 17252
diff changeset
    31
BuildRequires:           SUNWgtk2
b3cda03a61df 2010-01-03 Christian Kelly <[email protected]>
chrisk
parents: 17252
diff changeset
    32
17097
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    33
%prep
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    34
rm -rf %name-%version
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    35
mkdir %name-%version
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    36
17252
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    37
%ifarch amd64 sparcv9
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    38
mkdir %name-%version/%{_arch64}
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    39
%libnotify64.prep -d %name-%version/%{_arch64}
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    40
%endif
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    41
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    42
mkdir %name-%version/%{base_arch}
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    43
%libnotify.prep -d %name-%version/%{base_arch}
17097
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    44
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    45
%build
17252
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    46
%ifarch amd64 sparcv9
17413
886ebbc29ceb 2010-01-21 Jedy Wang <[email protected]>
jedy
parents: 17266
diff changeset
    47
export PKG_CONFIG_PATH=%{_libdir}/%{_arch64}/pkgconfig
886ebbc29ceb 2010-01-21 Jedy Wang <[email protected]>
jedy
parents: 17266
diff changeset
    48
export CFLAGS="%optflags64"
17097
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    49
export LDFLAGS="%_ldflags"
17252
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    50
%libnotify64.build -d %name-%version/%{_arch64}
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    51
%endif
17097
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    52
17252
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    53
export CFLAGS="%optflags"
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    54
export LDFLAGS="%_ldflags"
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    55
%libnotify.build -d %name-%version/%{base_arch}
17097
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    56
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    57
%install
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    58
rm -rf $RPM_BUILD_ROOT
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    59
17252
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    60
%ifarch amd64 sparcv9
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    61
%libnotify64.install -d %name-%version/%{_arch64}
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    62
%endif
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    63
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    64
%libnotify.install -d %name-%version/%{base_arch}
17097
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    65
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    66
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';'
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    67
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    68
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    69
%clean
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    70
rm -rf $RPM_BUILD_ROOT
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    71
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    72
%post
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    73
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    74
%files
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    75
%defattr (-, root, bin)
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    76
%dir %attr (0755, root, bin) %{_bindir}
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    77
%{_bindir}/notify-send
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    78
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    79
%{_libdir}/libnotify.so*
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    80
%{_libdir}/pkgconfig/libnotify.pc
17252
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    81
%ifarch amd64 sparcv9
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    82
%dir %attr (0755, root, bin) %{_bindir}/%{_arch64}
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    83
%{_bindir}/%{_arch64}/notify-send
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    84
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    85
%{_libdir}/%{_arch64}/libnotify.so*
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    86
%{_libdir}/%{_arch64}/pkgconfig/libnotify.pc
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    87
%endif
17097
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    88
%dir %attr (0755, root, sys) %{_datadir}
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    89
%{_datadir}/gtk-doc/html/libnotify/*
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    90
%{_includedir}/libnotify/*.h
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    91
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    92
%changelog
17413
886ebbc29ceb 2010-01-21 Jedy Wang <[email protected]>
jedy
parents: 17266
diff changeset
    93
* Thu Jan 21 2010 - [email protected]
886ebbc29ceb 2010-01-21 Jedy Wang <[email protected]>
jedy
parents: 17266
diff changeset
    94
- Updates cflags to fix 64-bit build problem.
17266
b3cda03a61df 2010-01-03 Christian Kelly <[email protected]>
chrisk
parents: 17252
diff changeset
    95
* Sun Jan  3 2009 - [email protected]
b3cda03a61df 2010-01-03 Christian Kelly <[email protected]>
chrisk
parents: 17252
diff changeset
    96
- Add dep on SUNWgtk2.
17252
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    97
* Tue Dec 29 2009 - [email protected]
af4e2100afc3 2009-12-29 Jedy Wang <[email protected]>
jedy
parents: 17097
diff changeset
    98
- Add 64-bit support.
17097
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    99
* Thu Dec  3 2009 - [email protected]
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
   100
- Separate into own spec (from gnome-panel).
2d876008dff0 2009-12-03 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
   101