15108
|
1 |
#
|
|
2 |
# spec file for package SUNWdrivel
|
|
3 |
#
|
|
4 |
# includes module(s): drivel
|
|
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 |
#
|
|
10 |
# Owner: ydzhang
|
|
11 |
#
|
|
12 |
|
|
13 |
%include Solaris.inc
|
|
14 |
|
|
15 |
%use drivel = drivel.spec
|
|
16 |
|
|
17 |
Name: SUNWdrivel
|
|
18 |
Summary: Drivel - Blog Editor
|
|
19 |
Version: %{drivel.version}
|
|
20 |
SUNW_Copyright: %{name}.copyright
|
|
21 |
SUNW_BaseDir: %{_basedir}
|
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
Source1: %{name}-manpages-0.1.tar.gz
|
|
24 |
|
15349
|
25 |
# these packages are only available on i386/x64
|
|
26 |
%ifnarch sparc
|
|
27 |
|
15108
|
28 |
%include default-depend.inc
|
15650
|
29 |
Requires: SUNWlibgnomecanvas
|
15108
|
30 |
Requires: SUNWgnome-libs
|
|
31 |
Requires: SUNWgnome-gtksourceview
|
|
32 |
Requires: SUNWgnome-print
|
|
33 |
Requires: SUNWgtkspell
|
|
34 |
Requires: SUNWgnu-idn
|
|
35 |
Requires: SUNWcurl
|
15556
|
36 |
Requires: %{name}-root
|
|
37 |
Requires: SUNWdesktop-cache
|
15650
|
38 |
BuildRequires: SUNWlibgnomecanvas-devel
|
15108
|
39 |
BuildRequires: SUNWgnome-libs-devel
|
|
40 |
BuildRequires: SUNWgnome-gtksourceview-devel
|
|
41 |
BuildRequires: SUNWgnome-print-devel
|
|
42 |
BuildRequires: SUNWgtkspell-devel
|
|
43 |
|
|
44 |
%if %build_l10n
|
|
45 |
%package l10n
|
|
46 |
Summary: %{summary} - l10n files
|
|
47 |
SUNW_BaseDir: %{_basedir}
|
|
48 |
%include default-depend.inc
|
|
49 |
Requires: %{name}
|
|
50 |
%endif
|
|
51 |
|
|
52 |
%package root
|
|
53 |
Summary: %{summary} - / filesystem
|
|
54 |
SUNW_BaseDir: /
|
|
55 |
%include default-depend.inc
|
|
56 |
|
|
57 |
%prep
|
|
58 |
rm -rf %name-%version
|
|
59 |
mkdir -p %name-%version
|
|
60 |
%drivel.prep -d %name-%version
|
|
61 |
cd %{_builddir}/%name-%version
|
|
62 |
gzcat %SOURCE1 | tar xf -
|
|
63 |
|
|
64 |
%build
|
|
65 |
export CC=/usr/sfw/bin/gcc
|
|
66 |
export CXX=/usr/sfw/bin/g++
|
|
67 |
export CFLAGS="%gcc_optflags"
|
|
68 |
export CXXFLAGS="%gcc_cxx_optflags"
|
|
69 |
%drivel.build -d %name-%version
|
|
70 |
|
|
71 |
%install
|
|
72 |
rm -rf $RPM_BUILD_ROOT
|
|
73 |
%drivel.install -d %name-%version
|
|
74 |
|
|
75 |
# install man page
|
|
76 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
77 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
78 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
79 |
|
|
80 |
%if %build_l10n
|
|
81 |
%else
|
|
82 |
# REMOVE l10n FILES
|
|
83 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
84 |
%endif
|
|
85 |
|
|
86 |
%clean
|
|
87 |
rm -rf $RPM_BUILD_ROOT
|
|
88 |
|
|
89 |
%post
|
15556
|
90 |
%restart_fmri desktop-mime-cache icon-cache gconf-cache
|
15108
|
91 |
|
|
92 |
%postun
|
15556
|
93 |
%restart_fmri desktop-mime-cache
|
15108
|
94 |
|
|
95 |
%files
|
|
96 |
%doc -d drivel-%{drivel.version} README AUTHORS
|
|
97 |
%doc(bzip2) -d drivel-%{drivel.version} COPYING ChangeLog po/ChangeLog NEWS
|
|
98 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
99 |
%defattr (-, root, bin)
|
|
100 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
101 |
%{_bindir}/drivel
|
|
102 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
103 |
%{_datadir}/drivel
|
|
104 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
105 |
%{_datadir}/applications/*
|
|
106 |
%dir %attr (0755, root, bin) %{_datadir}/omf
|
|
107 |
%{_datadir}/omf/drivel
|
|
108 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps
|
|
109 |
%{_datadir}/pixmaps/drivel
|
|
110 |
%{_datadir}/pixmaps/*.png
|
|
111 |
%dir %attr (0755, root, other) %{_datadir}/mime-info
|
|
112 |
%{_datadir}/mime-info/*
|
|
113 |
%dir %attr (0755, root, root) %{_datadir}/mime
|
|
114 |
%dir %attr (0755, root, root) %{_datadir}/mime/packages
|
|
115 |
%{_datadir}/mime/packages/*
|
|
116 |
%dir %attr (0755, root, other) %{_datadir}/application-registry
|
|
117 |
%{_datadir}/application-registry/*
|
|
118 |
%dir %attr (0755, root, other) %{_datadir}/icons
|
|
119 |
%dir %attr (0755, root, other) %{_datadir}/icons/gnome
|
|
120 |
%dir %attr (0755, root, other) %{_datadir}/icons/gnome/*
|
|
121 |
%dir %attr (0755, root, other) %{_datadir}/icons/gnome/*/mimetypes
|
|
122 |
%{_datadir}/icons/gnome/*/mimetypes/*
|
|
123 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
124 |
%dir %attr (0755, root, bin) %{_datadir}/gnome/help
|
|
125 |
%dir %attr (0755, root, bin) %{_datadir}/gnome/help/drivel
|
|
126 |
%{_datadir}/gnome/help/drivel/C
|
|
127 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
128 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
129 |
%{_mandir}/*/*
|
|
130 |
|
|
131 |
%if %build_l10n
|
|
132 |
%files l10n
|
|
133 |
%defattr (-, root, bin)
|
|
134 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
135 |
%attr (-, root, other) %{_datadir}/locale
|
|
136 |
%endif
|
|
137 |
|
|
138 |
%files root
|
|
139 |
%defattr (-, root, sys)
|
|
140 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
141 |
%{_sysconfdir}/gconf/schemas/drivel.schemas
|
|
142 |
|
15349
|
143 |
#endif for "ifnarch sparc"
|
|
144 |
%endif
|
|
145 |
|
15108
|
146 |
%changelog
|
15556
|
147 |
* Fri Apr 3 2009 - [email protected]
|
|
148 |
- use desktop-cache instead of postrun
|
15349
|
149 |
* Mon Mar 9 2009 - [email protected]
|
|
150 |
- Add ifnarch sparc so that it only build at i386/x64 platform
|
15108
|
151 |
* Wed Feb 11 2009 - [email protected]
|
|
152 |
- Initial spec
|
15650
|
153 |
|