specs/SUNWlibunique.spec
author Jon Tibble <meths@btinternet.com>
Sat, 06 Oct 2012 16:11:50 +0100
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 17937 664c0536875a
child 19974 b5d8e70005c8
child 20422 820cf4ffe0b8
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca
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
#
17789
79e576c49542 2010-04-01 Halton Huo <[email protected]>
halton
parents: 16863
diff changeset
     6
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
14972
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}
17789
79e576c49542 2010-04-01 Halton Huo <[email protected]>
halton
parents: 16863
diff changeset
    26
SUNW_Pkg:       SUNWlibunique
79e576c49542 2010-04-01 Halton Huo <[email protected]>
halton
parents: 16863
diff changeset
    27
IPS_package_name: library/libunique
17937
664c0536875a Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents: 17902
diff changeset
    28
Meta(info.classification): %{classification_prefix}:System/Libraries
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    29
SUNW_Copyright: %{name}.copyright
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    30
SUNW_BaseDir:   %{_basedir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    31
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
16674
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    32
Source1:        %{name}-manpages-0.1.tar.gz
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    33
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    34
%include default-depend.inc
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15516
diff changeset
    35
Requires:       SUNWgtk2
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 15091
diff changeset
    36
Requires:       SUNWdbus-glib
14973
69a6109162db 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14972
diff changeset
    37
Requires:       SUNWxwplt
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15516
diff changeset
    38
BuildRequires:  SUNWgtk2-devel
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 15091
diff changeset
    39
BuildRequires:  SUNWdbus-glib-devel
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    40
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    41
%package devel
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    42
Summary:        %{summary} - development files
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    43
SUNW_BaseDir:   %{_basedir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    44
%include default-depend.inc
14973
69a6109162db 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14972
diff changeset
    45
Requires:       %name
16863
b03c1ec2f56f 2009-10-27 Halton Huo <[email protected]>
halton
parents: 16674
diff changeset
    46
Requires:       SUNWgtk2-devel
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    47
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    48
%prep
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    49
rm -rf %name-%version
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    50
mkdir -p %name-%version
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    51
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    52
%ifarch amd64 sparcv9
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    53
mkdir %name-%version/%{_arch64}
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    54
%libunique_64.prep -d %name-%version/%{_arch64}
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    55
%endif
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    56
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    57
mkdir %name-%version/%{base_arch}
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    58
%libunique.prep -d %name-%version/%{base_arch}
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    59
16674
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    60
cd %{_builddir}/%name-%version
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    61
gzcat %SOURCE1 | tar xf -
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    62
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    63
%build
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    64
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    65
%ifarch amd64 sparcv9
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    66
export CFLAGS="%optflags64"
17789
79e576c49542 2010-04-01 Halton Huo <[email protected]>
halton
parents: 16863
diff changeset
    67
export LDFLAGS="%_ldflags"
79e576c49542 2010-04-01 Halton Huo <[email protected]>
halton
parents: 16863
diff changeset
    68
export PKG_CONFIG_PATH="%_pkg_config_path64"
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    69
export RPM_OPT_FLAGS="$CFLAGS"
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    70
%libunique_64.build -d %name-%version/%{_arch64}
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    71
%endif
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    72
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    73
export CFLAGS="%optflags"
17789
79e576c49542 2010-04-01 Halton Huo <[email protected]>
halton
parents: 16863
diff changeset
    74
export LDFLAGS="%_ldflags"
79e576c49542 2010-04-01 Halton Huo <[email protected]>
halton
parents: 16863
diff changeset
    75
export PKG_CONFIG_PATH="%_pkg_config_path"
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    76
export RPM_OPT_FLAGS="$CFLAGS"
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    77
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    78
%libunique.build -d %name-%version/%{base_arch}
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    79
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    80
%install
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    81
rm -rf $RPM_BUILD_ROOT
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    82
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    83
%ifarch amd64 sparcv9
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    84
%libunique_64.install -d %name-%version/%{_arch64}
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    85
%endif
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    86
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    87
%libunique.install -d %name-%version/%{base_arch}
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    88
16674
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    89
# install man page
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    90
rm -rf $RPM_BUILD_ROOT%{_mandir}
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    91
cd %{_builddir}/%name-%version/sun-manpages
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    92
make install DESTDIR=$RPM_BUILD_ROOT
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
    93
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    94
%clean
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    95
rm -rf $RPM_BUILD_ROOT
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    96
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    97
%files
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    98
%doc -d %{base_arch}/libunique-%{libunique.version} README AUTHORS NEWS
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    99
%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
   100
%dir %attr (0755, root, other) %{_datadir}/doc
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   101
%defattr(-, root, bin)
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   102
%dir %attr (0755, root, bin) %{_libdir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   103
%{_libdir}/libunique*.so*
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   104
%ifarch amd64 sparcv9
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   105
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   106
%{_libdir}/%{_arch64}/libunique*.so*
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   107
%endif
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
   108
%dir %attr (0755, root, sys) %{_datadir}
16674
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   109
%dir %attr(0755, root, bin) %{_mandir}
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   110
%dir %attr(0755, root, bin) %{_mandir}/*
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   111
%{_mandir}/*/*
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   112
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   113
%files devel
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   114
%defattr (-, root, bin)
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   115
%dir %attr (0755, root, bin) %{_includedir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   116
%{_includedir}/*
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   117
%dir %attr (0755, root, bin) %{_libdir}
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
   118
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   119
%{_libdir}/pkgconfig/*
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   120
%ifarch amd64 sparcv9
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   121
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   122
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   123
%{_libdir}/%{_arch64}/pkgconfig/*
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   124
%endif
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   125
%dir %attr (0755, root, sys) %dir %{_datadir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   126
%{_datadir}/gtk-doc
14877
47b5b4df790d 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents: 14876
diff changeset
   127
47b5b4df790d 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents: 14876
diff changeset
   128
%changelog
17789
79e576c49542 2010-04-01 Halton Huo <[email protected]>
halton
parents: 16863
diff changeset
   129
* Thu Apr 01 2010 - [email protected]
79e576c49542 2010-04-01 Halton Huo <[email protected]>
halton
parents: 16863
diff changeset
   130
- Add PKG_CONFIG_PATH to fix build issue for 64bit
16674
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   131
* Mon Sep 28 2009 - [email protected]
aa3985660173 2009-09-28 Halton Huo <[email protected]>
halton
parents: 16434
diff changeset
   132
- Add manpage for libunique-1.0
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 15091
diff changeset
   133
* Thu Mar 05 2009 - [email protected]
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 15091
diff changeset
   134
- Change SUNWdbus-bindings to SUNWdbus-glib.
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   135
* Mon Feb 16 2009 - [email protected]
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   136
- Add 64-bit support
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   137
* Sat Jan 24 2009 - [email protected]
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   138
- Spilit unique.spec for possible 64-bit build
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   139
- Move .h and pkgconfig and gtk-doc into -devel package
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   140
 Thu Jan 08 2009 - [email protected]
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   141
- Initial spec
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15516
diff changeset
   142