14876
|
1 |
#
|
|
2 |
# spec file for package SUNWlibunique
|
|
3 |
#
|
15516
|
4 |
# includes module(s): libunique
|
14972
|
5 |
#
|
|
6 |
# Copyright 2009 Sun Microsystems, Inc.
|
|
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}
|
14972
|
26 |
SUNW_Copyright: %{name}.copyright
|
|
27 |
SUNW_BaseDir: %{_basedir}
|
|
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
14876
|
29 |
|
14972
|
30 |
%include default-depend.inc
|
15650
|
31 |
Requires: SUNWgtk2
|
15324
|
32 |
Requires: SUNWdbus-glib
|
14973
|
33 |
Requires: SUNWxwplt
|
15650
|
34 |
BuildRequires: SUNWgtk2-devel
|
15324
|
35 |
BuildRequires: SUNWdbus-glib-devel
|
14972
|
36 |
|
|
37 |
%package devel
|
|
38 |
Summary: %{summary} - development files
|
|
39 |
SUNW_BaseDir: %{_basedir}
|
|
40 |
%include default-depend.inc
|
14973
|
41 |
Requires: %name
|
14876
|
42 |
|
|
43 |
%prep
|
|
44 |
rm -rf %name-%version
|
14972
|
45 |
mkdir -p %name-%version
|
15091
|
46 |
|
|
47 |
%ifarch amd64 sparcv9
|
|
48 |
mkdir %name-%version/%{_arch64}
|
15516
|
49 |
%libunique_64.prep -d %name-%version/%{_arch64}
|
15091
|
50 |
%endif
|
|
51 |
|
|
52 |
mkdir %name-%version/%{base_arch}
|
15516
|
53 |
%libunique.prep -d %name-%version/%{base_arch}
|
14876
|
54 |
|
|
55 |
%build
|
15091
|
56 |
|
|
57 |
%ifarch amd64 sparcv9
|
|
58 |
export LDFLAGS="$FLAG64"
|
|
59 |
export CFLAGS="%optflags64"
|
|
60 |
export RPM_OPT_FLAGS="$CFLAGS"
|
15516
|
61 |
%libunique_64.build -d %name-%version/%{_arch64}
|
15091
|
62 |
%endif
|
|
63 |
|
14972
|
64 |
export CFLAGS="%optflags"
|
|
65 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
66 |
export LDFLAGS="%_ldflags"
|
14876
|
67 |
|
15516
|
68 |
%libunique.build -d %name-%version/%{base_arch}
|
14876
|
69 |
|
|
70 |
%install
|
|
71 |
rm -rf $RPM_BUILD_ROOT
|
15091
|
72 |
|
|
73 |
%ifarch amd64 sparcv9
|
15516
|
74 |
%libunique_64.install -d %name-%version/%{_arch64}
|
15091
|
75 |
%endif
|
|
76 |
|
15516
|
77 |
%libunique.install -d %name-%version/%{base_arch}
|
14876
|
78 |
|
|
79 |
%clean
|
|
80 |
rm -rf $RPM_BUILD_ROOT
|
|
81 |
|
|
82 |
%files
|
15516
|
83 |
%doc -d %{base_arch}/libunique-%{libunique.version} README AUTHORS NEWS
|
|
84 |
%doc(bzip2) -d %{base_arch}/libunique-%{libunique.version} COPYING ChangeLog po/ChangeLog
|
14972
|
85 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
86 |
%defattr(-, root, bin)
|
|
87 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
88 |
%{_libdir}/libunique*.so*
|
15091
|
89 |
%ifarch amd64 sparcv9
|
|
90 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
|
|
91 |
%{_libdir}/%{_arch64}/libunique*.so*
|
|
92 |
%endif
|
14876
|
93 |
%dir %attr (0755, root, sys) %{_datadir}
|
14972
|
94 |
|
|
95 |
%files devel
|
|
96 |
%defattr (-, root, bin)
|
|
97 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
98 |
%{_includedir}/*
|
|
99 |
%dir %attr (0755, root, bin) %{_libdir}
|
14876
|
100 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
14972
|
101 |
%{_libdir}/pkgconfig/*
|
15091
|
102 |
%ifarch amd64 sparcv9
|
|
103 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
|
|
104 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
|
|
105 |
%{_libdir}/%{_arch64}/pkgconfig/*
|
|
106 |
%endif
|
14972
|
107 |
%dir %attr (0755, root, sys) %dir %{_datadir}
|
|
108 |
%{_datadir}/gtk-doc
|
14877
|
109 |
|
|
110 |
%changelog
|
15324
|
111 |
* Thu Mar 05 2009 - [email protected]
|
|
112 |
- Change SUNWdbus-bindings to SUNWdbus-glib.
|
15091
|
113 |
* Mon Feb 16 2009 - [email protected]
|
|
114 |
- Add 64-bit support
|
14972
|
115 |
* Sat Jan 24 2009 - [email protected]
|
|
116 |
- Spilit unique.spec for possible 64-bit build
|
|
117 |
- Move .h and pkgconfig and gtk-doc into -devel package
|
|
118 |
Thu Jan 08 2009 - [email protected]
|
|
119 |
- Initial spec
|
15650
|
120 |
|