author | Jon Tibble <meths@btinternet.com> |
Sat, 06 Oct 2012 16:11:50 +0100 | |
branch | s11express-2010-11 |
changeset 22109 | db10202d5f6d |
parent 17937 | 664c0536875a |
child 19974 | b5d8e70005c8 |
child 20422 | 820cf4ffe0b8 |
permissions | -rw-r--r-- |
14876 | 1 |
# |
2 |
# spec file for package SUNWlibunique |
|
3 |
# |
|
15516 | 4 |
# includes module(s): libunique |
14972 | 5 |
# |
17789 | 6 |
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
14972 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
16434 | 10 |
%define owner halton |
14972 | 11 |
# |
14876 | 12 |
|
13 |
%include Solaris.inc |
|
14972 | 14 |
|
15091 | 15 |
%ifarch amd64 sparcv9 |
16 |
%include arch64.inc |
|
15516 | 17 |
%use libunique_64 = libunique.spec |
15091 | 18 |
%endif |
19 |
||
20 |
%include base.inc |
|
15516 | 21 |
%use libunique = libunique.spec |
14876 | 22 |
|
14972 | 23 |
Name: SUNWlibunique |
15516 | 24 |
Summary: libunique - library for writing single instance applications |
25 |
Version: %{libunique.version} |
|
17789 | 26 |
SUNW_Pkg: SUNWlibunique |
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 | 29 |
SUNW_Copyright: %{name}.copyright |
30 |
SUNW_BaseDir: %{_basedir} |
|
31 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
16674 | 32 |
Source1: %{name}-manpages-0.1.tar.gz |
14876 | 33 |
|
14972 | 34 |
%include default-depend.inc |
15650 | 35 |
Requires: SUNWgtk2 |
15324 | 36 |
Requires: SUNWdbus-glib |
14973 | 37 |
Requires: SUNWxwplt |
15650 | 38 |
BuildRequires: SUNWgtk2-devel |
15324 | 39 |
BuildRequires: SUNWdbus-glib-devel |
14972 | 40 |
|
41 |
%package devel |
|
42 |
Summary: %{summary} - development files |
|
43 |
SUNW_BaseDir: %{_basedir} |
|
44 |
%include default-depend.inc |
|
14973 | 45 |
Requires: %name |
16863 | 46 |
Requires: SUNWgtk2-devel |
14876 | 47 |
|
48 |
%prep |
|
49 |
rm -rf %name-%version |
|
14972 | 50 |
mkdir -p %name-%version |
15091 | 51 |
|
52 |
%ifarch amd64 sparcv9 |
|
53 |
mkdir %name-%version/%{_arch64} |
|
15516 | 54 |
%libunique_64.prep -d %name-%version/%{_arch64} |
15091 | 55 |
%endif |
56 |
||
57 |
mkdir %name-%version/%{base_arch} |
|
15516 | 58 |
%libunique.prep -d %name-%version/%{base_arch} |
14876 | 59 |
|
16674 | 60 |
cd %{_builddir}/%name-%version |
61 |
gzcat %SOURCE1 | tar xf - |
|
62 |
||
14876 | 63 |
%build |
15091 | 64 |
|
65 |
%ifarch amd64 sparcv9 |
|
66 |
export CFLAGS="%optflags64" |
|
17789 | 67 |
export LDFLAGS="%_ldflags" |
68 |
export PKG_CONFIG_PATH="%_pkg_config_path64" |
|
15091 | 69 |
export RPM_OPT_FLAGS="$CFLAGS" |
15516 | 70 |
%libunique_64.build -d %name-%version/%{_arch64} |
15091 | 71 |
%endif |
72 |
||
14972 | 73 |
export CFLAGS="%optflags" |
17789 | 74 |
export LDFLAGS="%_ldflags" |
75 |
export PKG_CONFIG_PATH="%_pkg_config_path" |
|
14972 | 76 |
export RPM_OPT_FLAGS="$CFLAGS" |
14876 | 77 |
|
15516 | 78 |
%libunique.build -d %name-%version/%{base_arch} |
14876 | 79 |
|
80 |
%install |
|
81 |
rm -rf $RPM_BUILD_ROOT |
|
15091 | 82 |
|
83 |
%ifarch amd64 sparcv9 |
|
15516 | 84 |
%libunique_64.install -d %name-%version/%{_arch64} |
15091 | 85 |
%endif |
86 |
||
15516 | 87 |
%libunique.install -d %name-%version/%{base_arch} |
14876 | 88 |
|
16674 | 89 |
# install man page |
90 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
91 |
cd %{_builddir}/%name-%version/sun-manpages |
|
92 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
93 |
||
14876 | 94 |
%clean |
95 |
rm -rf $RPM_BUILD_ROOT |
|
96 |
||
97 |
%files |
|
15516 | 98 |
%doc -d %{base_arch}/libunique-%{libunique.version} README AUTHORS NEWS |
99 |
%doc(bzip2) -d %{base_arch}/libunique-%{libunique.version} COPYING ChangeLog po/ChangeLog |
|
14972 | 100 |
%dir %attr (0755, root, other) %{_datadir}/doc |
101 |
%defattr(-, root, bin) |
|
102 |
%dir %attr (0755, root, bin) %{_libdir} |
|
103 |
%{_libdir}/libunique*.so* |
|
15091 | 104 |
%ifarch amd64 sparcv9 |
105 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
106 |
%{_libdir}/%{_arch64}/libunique*.so* |
|
107 |
%endif |
|
14876 | 108 |
%dir %attr (0755, root, sys) %{_datadir} |
16674 | 109 |
%dir %attr(0755, root, bin) %{_mandir} |
110 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
111 |
%{_mandir}/*/* |
|
14972 | 112 |
|
113 |
%files devel |
|
114 |
%defattr (-, root, bin) |
|
115 |
%dir %attr (0755, root, bin) %{_includedir} |
|
116 |
%{_includedir}/* |
|
117 |
%dir %attr (0755, root, bin) %{_libdir} |
|
14876 | 118 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
14972 | 119 |
%{_libdir}/pkgconfig/* |
15091 | 120 |
%ifarch amd64 sparcv9 |
121 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
122 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig |
|
123 |
%{_libdir}/%{_arch64}/pkgconfig/* |
|
124 |
%endif |
|
14972 | 125 |
%dir %attr (0755, root, sys) %dir %{_datadir} |
126 |
%{_datadir}/gtk-doc |
|
14877 | 127 |
|
128 |
%changelog |
|
17789 | 129 |
* Thu Apr 01 2010 - [email protected] |
130 |
- Add PKG_CONFIG_PATH to fix build issue for 64bit |
|
16674 | 131 |
* Mon Sep 28 2009 - [email protected] |
132 |
- Add manpage for libunique-1.0 |
|
15324 | 133 |
* Thu Mar 05 2009 - [email protected] |
134 |
- Change SUNWdbus-bindings to SUNWdbus-glib. |
|
15091 | 135 |
* Mon Feb 16 2009 - [email protected] |
136 |
- Add 64-bit support |
|
14972 | 137 |
* Sat Jan 24 2009 - [email protected] |
138 |
- Spilit unique.spec for possible 64-bit build |
|
139 |
- Move .h and pkgconfig and gtk-doc into -devel package |
|
140 |
Thu Jan 08 2009 - [email protected] |
|
141 |
- Initial spec |
|
15650 | 142 |