SUNWlibunique.spec
author chrisk
Mon, 31 Aug 2009 16:23:04 +0000
changeset 16434 f21f22550fe9
parent 15650 dbcf7e3715dd
child 16674 aa3985660173
permissions -rw-r--r--
2009-08-31 Christian Kelly <[email protected]> * base-specs/*.spec, *.spec: Change owner field to be parsable with spectool.
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
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    29
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    30
%include default-depend.inc
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15516
diff changeset
    31
Requires:       SUNWgtk2
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 15091
diff changeset
    32
Requires:       SUNWdbus-glib
14973
69a6109162db 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14972
diff changeset
    33
Requires:       SUNWxwplt
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15516
diff changeset
    34
BuildRequires:  SUNWgtk2-devel
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 15091
diff changeset
    35
BuildRequires:  SUNWdbus-glib-devel
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    36
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    37
%package devel
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    38
Summary:        %{summary} - development files
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    39
SUNW_BaseDir:   %{_basedir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    40
%include default-depend.inc
14973
69a6109162db 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14972
diff changeset
    41
Requires:       %name
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    42
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    43
%prep
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    44
rm -rf %name-%version
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    45
mkdir -p %name-%version
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    46
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    47
%ifarch amd64 sparcv9
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    48
mkdir %name-%version/%{_arch64}
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    49
%libunique_64.prep -d %name-%version/%{_arch64}
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    50
%endif
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
mkdir %name-%version/%{base_arch}
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    53
%libunique.prep -d %name-%version/%{base_arch}
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    54
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    55
%build
15091
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
%ifarch amd64 sparcv9
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    58
export LDFLAGS="$FLAG64"
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    59
export CFLAGS="%optflags64"
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    60
export RPM_OPT_FLAGS="$CFLAGS"
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    61
%libunique_64.build -d %name-%version/%{_arch64}
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    62
%endif
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    63
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    64
export CFLAGS="%optflags"
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    65
export RPM_OPT_FLAGS="$CFLAGS"
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    66
export LDFLAGS="%_ldflags"
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    67
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    68
%libunique.build -d %name-%version/%{base_arch}
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    69
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    70
%install
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    71
rm -rf $RPM_BUILD_ROOT
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    72
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    73
%ifarch amd64 sparcv9
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    74
%libunique_64.install -d %name-%version/%{_arch64}
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    75
%endif
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    76
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    77
%libunique.install -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
%clean
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    80
rm -rf $RPM_BUILD_ROOT
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    81
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    82
%files
15516
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    83
%doc -d %{base_arch}/libunique-%{libunique.version} README AUTHORS NEWS
e50914fb261b 2009-03-28 Halton Huo <[email protected]>
halton
parents: 15324
diff changeset
    84
%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
    85
%dir %attr (0755, root, other) %{_datadir}/doc
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    86
%defattr(-, root, bin)
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    87
%dir %attr (0755, root, bin) %{_libdir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    88
%{_libdir}/libunique*.so*
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    89
%ifarch amd64 sparcv9
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    90
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    91
%{_libdir}/%{_arch64}/libunique*.so*
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
    92
%endif
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    93
%dir %attr (0755, root, sys) %{_datadir}
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    94
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    95
%files devel
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) %{_includedir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    98
%{_includedir}/*
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
    99
%dir %attr (0755, root, bin) %{_libdir}
14876
fad0c7071376 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
   100
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   101
%{_libdir}/pkgconfig/*
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   102
%ifarch amd64 sparcv9
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   103
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   104
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   105
%{_libdir}/%{_arch64}/pkgconfig/*
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   106
%endif
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   107
%dir %attr (0755, root, sys) %dir %{_datadir}
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   108
%{_datadir}/gtk-doc
14877
47b5b4df790d 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents: 14876
diff changeset
   109
47b5b4df790d 2009-01-08 Christian Kelly <[email protected]>
chrisk
parents: 14876
diff changeset
   110
%changelog
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 15091
diff changeset
   111
* Thu Mar 05 2009 - [email protected]
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 15091
diff changeset
   112
- Change SUNWdbus-bindings to SUNWdbus-glib.
15091
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   113
* Mon Feb 16 2009 - [email protected]
a16f2f32502e 2009-02-16 Halton Huo <[email protected]>
halton
parents: 14973
diff changeset
   114
- Add 64-bit support
14972
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   115
* Sat Jan 24 2009 - [email protected]
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   116
- Spilit unique.spec for possible 64-bit build
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   117
- Move .h and pkgconfig and gtk-doc into -devel package
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   118
 Thu Jan 08 2009 - [email protected]
07f8d57d344a 2009-01-24 Halton Huo <[email protected]>
halton
parents: 14877
diff changeset
   119
- Initial spec
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15516
diff changeset
   120