SUNWlibunique.spec
author davelam
Wed, 24 Feb 2010 04:10:23 +0000
branchgnome-2-28
changeset 18642 478b5460cc36
parent 16863 b03c1ec2f56f
child 17789 79e576c49542
permissions -rw-r--r--
add new proto file for b133
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     1
#
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     2
# spec file for package SUNWlibunique
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     3
#
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
     4
# includes module(s): libunique
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
     5
#
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
     6
# Copyright 2009 Sun Microsystems, Inc.
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
     7
# This file and all modifications and additions to the pristine
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
     8
# package are under the same license as the package itself.
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
     9
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 15650
diff changeset
    10
%define owner halton
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    11
#
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    12
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    13
%include Solaris.inc
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    14
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    15
%ifarch amd64 sparcv9
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    16
%include arch64.inc
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    17
%use libunique_64 = libunique.spec
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    18
%endif
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    19
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    20
%include base.inc
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    21
%use libunique = libunique.spec
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    22
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    23
Name:           SUNWlibunique
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    24
Summary:        libunique - library for writing single instance applications
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    25
Version:        %{libunique.version}
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    26
SUNW_Copyright: %{name}.copyright
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    27
SUNW_BaseDir:   %{_basedir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    28
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
16674
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    29
Source1:        %{name}-manpages-0.1.tar.gz
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    30
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    31
%include default-depend.inc
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15516
diff changeset
    32
Requires:       SUNWgtk2
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 15091
diff changeset
    33
Requires:       SUNWdbus-glib
14973
69a6109162db 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14972
diff changeset
    34
Requires:       SUNWxwplt
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15516
diff changeset
    35
BuildRequires:  SUNWgtk2-devel
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 15091
diff changeset
    36
BuildRequires:  SUNWdbus-glib-devel
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    37
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    38
%package devel
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    39
Summary:        %{summary} - development files
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    40
SUNW_BaseDir:   %{_basedir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    41
%include default-depend.inc
14973
69a6109162db 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14972
diff changeset
    42
Requires:       %name
16863
b03c1ec2f56f 2009-10-27 Halton Huo <[email protected]>
halton
parents: 16674
diff changeset
    43
Requires:       SUNWgtk2-devel
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    44
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    45
%prep
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    46
rm -rf %name-%version
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    47
mkdir -p %name-%version
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    48
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    49
%ifarch amd64 sparcv9
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    50
mkdir %name-%version/%{_arch64}
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    51
%libunique_64.prep -d %name-%version/%{_arch64}
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    52
%endif
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    53
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    54
mkdir %name-%version/%{base_arch}
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    55
%libunique.prep -d %name-%version/%{base_arch}
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    56
16674
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    57
cd %{_builddir}/%name-%version
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    58
gzcat %SOURCE1 | tar xf -
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    59
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    60
%build
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    61
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    62
%ifarch amd64 sparcv9
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    63
export LDFLAGS="$FLAG64"
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    64
export CFLAGS="%optflags64"
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    65
export RPM_OPT_FLAGS="$CFLAGS"
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    66
%libunique_64.build -d %name-%version/%{_arch64}
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    67
%endif
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    68
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    69
export CFLAGS="%optflags"
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    70
export RPM_OPT_FLAGS="$CFLAGS"
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    71
export LDFLAGS="%_ldflags"
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    72
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    73
%libunique.build -d %name-%version/%{base_arch}
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    74
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    75
%install
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    76
rm -rf $RPM_BUILD_ROOT
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    77
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    78
%ifarch amd64 sparcv9
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    79
%libunique_64.install -d %name-%version/%{_arch64}
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    80
%endif
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    81
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    82
%libunique.install -d %name-%version/%{base_arch}
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    83
16674
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    84
# install man page
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    85
rm -rf $RPM_BUILD_ROOT%{_mandir}
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    86
cd %{_builddir}/%name-%version/sun-manpages
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    87
make install DESTDIR=$RPM_BUILD_ROOT
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    88
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    89
%clean
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    90
rm -rf $RPM_BUILD_ROOT
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    91
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    92
%files
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    93
%doc -d %{base_arch}/libunique-%{libunique.version} README AUTHORS NEWS
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    94
%doc(bzip2) -d %{base_arch}/libunique-%{libunique.version} COPYING ChangeLog po/ChangeLog
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    95
%dir %attr (0755, root, other) %{_datadir}/doc
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    96
%defattr(-, root, bin)
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    97
%dir %attr (0755, root, bin) %{_libdir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    98
%{_libdir}/libunique*.so*
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    99
%ifarch amd64 sparcv9
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   100
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   101
%{_libdir}/%{_arch64}/libunique*.so*
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   102
%endif
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
   103
%dir %attr (0755, root, sys) %{_datadir}
16674
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   104
%dir %attr(0755, root, bin) %{_mandir}
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   105
%dir %attr(0755, root, bin) %{_mandir}/*
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   106
%{_mandir}/*/*
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   107
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   108
%files devel
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   109
%defattr (-, root, bin)
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   110
%dir %attr (0755, root, bin) %{_includedir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   111
%{_includedir}/*
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   112
%dir %attr (0755, root, bin) %{_libdir}
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
   113
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   114
%{_libdir}/pkgconfig/*
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   115
%ifarch amd64 sparcv9
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   116
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   117
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   118
%{_libdir}/%{_arch64}/pkgconfig/*
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   119
%endif
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   120
%dir %attr (0755, root, sys) %dir %{_datadir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   121
%{_datadir}/gtk-doc
14877
47b5b4df790d 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents: 14876
diff changeset
   122
47b5b4df790d 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents: 14876
diff changeset
   123
%changelog
16674
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   124
* Mon Sep 28 2009 - [email protected]
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   125
- Add manpage for libunique-1.0
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 15091
diff changeset
   126
* Thu Mar 05 2009 - [email protected]
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 15091
diff changeset
   127
- Change SUNWdbus-bindings to SUNWdbus-glib.
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   128
* Mon Feb 16 2009 - [email protected]
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   129
- Add 64-bit support
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   130
* Sat Jan 24 2009 - [email protected]
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   131
- Spilit unique.spec for possible 64-bit build
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   132
- Move .h and pkgconfig and gtk-doc into -devel package
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   133
 Thu Jan 08 2009 - [email protected]
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   134
- Initial spec
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15516
diff changeset
   135