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