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
|
16674
|
29 |
Source1: %{name}-manpages-0.1.tar.gz
|
14876
|
30 |
|
14972
|
31 |
%include default-depend.inc
|
15650
|
32 |
Requires: SUNWgtk2
|
15324
|
33 |
Requires: SUNWdbus-glib
|
14973
|
34 |
Requires: SUNWxwplt
|
15650
|
35 |
BuildRequires: SUNWgtk2-devel
|
15324
|
36 |
BuildRequires: SUNWdbus-glib-devel
|
14972
|
37 |
|
|
38 |
%package devel
|
|
39 |
Summary: %{summary} - development files
|
|
40 |
SUNW_BaseDir: %{_basedir}
|
|
41 |
%include default-depend.inc
|
14973
|
42 |
Requires: %name
|
16863
|
43 |
Requires: SUNWgtk2-devel
|
14876
|
44 |
|
|
45 |
%prep
|
|
46 |
rm -rf %name-%version
|
14972
|
47 |
mkdir -p %name-%version
|
15091
|
48 |
|
|
49 |
%ifarch amd64 sparcv9
|
|
50 |
mkdir %name-%version/%{_arch64}
|
15516
|
51 |
%libunique_64.prep -d %name-%version/%{_arch64}
|
15091
|
52 |
%endif
|
|
53 |
|
|
54 |
mkdir %name-%version/%{base_arch}
|
15516
|
55 |
%libunique.prep -d %name-%version/%{base_arch}
|
14876
|
56 |
|
16674
|
57 |
cd %{_builddir}/%name-%version
|
|
58 |
gzcat %SOURCE1 | tar xf -
|
|
59 |
|
14876
|
60 |
%build
|
15091
|
61 |
|
|
62 |
%ifarch amd64 sparcv9
|
|
63 |
export LDFLAGS="$FLAG64"
|
|
64 |
export CFLAGS="%optflags64"
|
|
65 |
export RPM_OPT_FLAGS="$CFLAGS"
|
15516
|
66 |
%libunique_64.build -d %name-%version/%{_arch64}
|
15091
|
67 |
%endif
|
|
68 |
|
14972
|
69 |
export CFLAGS="%optflags"
|
|
70 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
71 |
export LDFLAGS="%_ldflags"
|
14876
|
72 |
|
15516
|
73 |
%libunique.build -d %name-%version/%{base_arch}
|
14876
|
74 |
|
|
75 |
%install
|
|
76 |
rm -rf $RPM_BUILD_ROOT
|
15091
|
77 |
|
|
78 |
%ifarch amd64 sparcv9
|
15516
|
79 |
%libunique_64.install -d %name-%version/%{_arch64}
|
15091
|
80 |
%endif
|
|
81 |
|
15516
|
82 |
%libunique.install -d %name-%version/%{base_arch}
|
14876
|
83 |
|
16674
|
84 |
# install man page
|
|
85 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
86 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
87 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
88 |
|
14876
|
89 |
%clean
|
|
90 |
rm -rf $RPM_BUILD_ROOT
|
|
91 |
|
|
92 |
%files
|
15516
|
93 |
%doc -d %{base_arch}/libunique-%{libunique.version} README AUTHORS NEWS
|
|
94 |
%doc(bzip2) -d %{base_arch}/libunique-%{libunique.version} COPYING ChangeLog po/ChangeLog
|
14972
|
95 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
96 |
%defattr(-, root, bin)
|
|
97 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
98 |
%{_libdir}/libunique*.so*
|
15091
|
99 |
%ifarch amd64 sparcv9
|
|
100 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
|
|
101 |
%{_libdir}/%{_arch64}/libunique*.so*
|
|
102 |
%endif
|
14876
|
103 |
%dir %attr (0755, root, sys) %{_datadir}
|
16674
|
104 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
105 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
106 |
%{_mandir}/*/*
|
14972
|
107 |
|
|
108 |
%files devel
|
|
109 |
%defattr (-, root, bin)
|
|
110 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
111 |
%{_includedir}/*
|
|
112 |
%dir %attr (0755, root, bin) %{_libdir}
|
14876
|
113 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
14972
|
114 |
%{_libdir}/pkgconfig/*
|
15091
|
115 |
%ifarch amd64 sparcv9
|
|
116 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
|
|
117 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
|
|
118 |
%{_libdir}/%{_arch64}/pkgconfig/*
|
|
119 |
%endif
|
14972
|
120 |
%dir %attr (0755, root, sys) %dir %{_datadir}
|
|
121 |
%{_datadir}/gtk-doc
|
14877
|
122 |
|
|
123 |
%changelog
|
16674
|
124 |
* Mon Sep 28 2009 - [email protected]
|
|
125 |
- Add manpage for libunique-1.0
|
15324
|
126 |
* Thu Mar 05 2009 - [email protected]
|
|
127 |
- Change SUNWdbus-bindings to SUNWdbus-glib.
|
15091
|
128 |
* Mon Feb 16 2009 - [email protected]
|
|
129 |
- Add 64-bit support
|
14972
|
130 |
* Sat Jan 24 2009 - [email protected]
|
|
131 |
- Spilit unique.spec for possible 64-bit build
|
|
132 |
- Move .h and pkgconfig and gtk-doc into -devel package
|
|
133 |
Thu Jan 08 2009 - [email protected]
|
|
134 |
- Initial spec
|
15650
|
135 |
|