12866
|
1 |
#
|
|
2 |
# spec file for package SUNWgtkspell
|
|
3 |
#
|
|
4 |
# Copyright 2008 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
# Owner: jim
|
|
9 |
#
|
|
10 |
|
|
11 |
%include Solaris.inc
|
|
12 |
Name: SUNWgtkspell
|
|
13 |
Summary: Gtkspell provides word-processor-style highlighting and replacement of misspelled words in a GtkTextView widget.
|
|
14 |
Version: 2.0.13
|
|
15 |
Source: http://gtkspell.sourceforge.net/download/gtkspell-%{version}.tar.gz
|
12904
|
16 |
%if %build_l10n
|
|
17 |
Source1: l10n-configure.sh
|
|
18 |
%endif
|
13045
|
19 |
Source2: %{name}-manpages-0.1.tar.gz
|
12866
|
20 |
SUNW_BaseDir: %{_basedir}
|
|
21 |
SUNW_Copyright: %{name}.copyright
|
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
%include default-depend.inc
|
|
24 |
Requires: SUNWgnome-base-libs
|
|
25 |
Requires: SUNWgnome-spell
|
|
26 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
27 |
BuildRequires: SUNWgnome-spell-devel
|
|
28 |
|
|
29 |
%package devel
|
|
30 |
Summary: Gtkspell - developer files
|
|
31 |
SUNW_BaseDir: %{_basedir}
|
|
32 |
%include default-depend.inc
|
|
33 |
Requires: %name
|
|
34 |
Requires: SUNWgnome-base-libs-devel
|
|
35 |
Requires: SUNWgnome-spell-devel
|
|
36 |
|
|
37 |
%if %build_l10n
|
|
38 |
%package l10n
|
|
39 |
Summary: %{summary} - l10n files
|
|
40 |
SUNW_BaseDir: %{_basedir}
|
|
41 |
%include default-depend.inc
|
|
42 |
Requires: %{name}
|
|
43 |
%endif
|
|
44 |
|
|
45 |
%prep
|
|
46 |
%setup -q -n gtkspell-%version
|
13045
|
47 |
cd %{_builddir}/gtkspell-%version
|
|
48 |
gzcat %SOURCE2 | tar xf -
|
12866
|
49 |
|
|
50 |
%build
|
|
51 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
52 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
53 |
CPUS=1
|
|
54 |
fi
|
|
55 |
|
|
56 |
export CFLAGS="%optflags"
|
|
57 |
export CPPFLAGS="%optflags"
|
|
58 |
export LDFLAGS="%_ldflags"
|
|
59 |
|
|
60 |
intltoolize --force --copy
|
|
61 |
|
12904
|
62 |
%if %build_l10n
|
|
63 |
sh %SOURCE1 --enable-copyright
|
|
64 |
%endif
|
|
65 |
|
12866
|
66 |
aclocal $ACLOCAL_FLAGS
|
|
67 |
libtoolize --force
|
|
68 |
autoheader
|
|
69 |
automake -a -c -f
|
|
70 |
autoconf
|
|
71 |
|
|
72 |
./configure --prefix=%{_prefix} --mandir=%{_mandir} \
|
|
73 |
--libdir=%{_libdir} \
|
|
74 |
--libexecdir=%{_libexecdir} \
|
|
75 |
--sysconfdir=%{_sysconfdir}
|
|
76 |
make -j$CPUS
|
|
77 |
|
|
78 |
|
|
79 |
%install
|
|
80 |
rm -rf $RPM_BUILD_ROOT
|
|
81 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
82 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
83 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
13045
|
84 |
cd %{_builddir}/gtkspell-%version/sun-manpages
|
|
85 |
make install DESTDIR=$RPM_BUILD_ROOT
|
12866
|
86 |
|
|
87 |
%if %build_l10n
|
|
88 |
%else
|
|
89 |
# REMOVE l10n FILES
|
|
90 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
91 |
%endif
|
|
92 |
|
|
93 |
|
|
94 |
%clean
|
|
95 |
rm -rf $RPM_BUILD_ROOT
|
|
96 |
|
|
97 |
%files
|
|
98 |
%defattr (-, root, bin)
|
|
99 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
100 |
%{_libdir}/lib*
|
13045
|
101 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
102 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
103 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
104 |
%{_mandir}/*/*
|
13615
|
105 |
%doc README AUTHORS
|
13644
|
106 |
%doc(bzip2) COPYING ChangeLog
|
13615
|
107 |
%doc(bzip2) po/ChangeLog
|
13680
|
108 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
13045
|
109 |
|
12866
|
110 |
|
|
111 |
%files devel
|
|
112 |
%defattr (-, root, bin)
|
|
113 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
114 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
115 |
%{_libdir}/pkgconfig/*
|
|
116 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
117 |
%dir %attr (0755, root, bin) %{_datadir}/gtk-doc
|
|
118 |
%dir %attr (0755, root, bin) %{_datadir}/gtk-doc/html
|
|
119 |
%{_datadir}/gtk-doc/html/*
|
|
120 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
121 |
%{_includedir}/*
|
|
122 |
|
|
123 |
%if %build_l10n
|
|
124 |
%files l10n
|
|
125 |
%defattr (-, root, bin)
|
|
126 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
127 |
%attr (-, root, other) %{_datadir}/locale
|
|
128 |
%endif
|
|
129 |
|
|
130 |
%changelog
|
13680
|
131 |
* Fri Sep 19 2008 - [email protected]
|
|
132 |
- Set the attribute of the dir %{_datadir}/doc in base pkg.
|
13615
|
133 |
* Wed Sep 17 2008 - [email protected]
|
|
134 |
- Revised new format copyright file
|
12866
|
135 |
* Thu Jul 03 2008 - Jim Li
|
|
136 |
- Copied from SFEgtkspell and rename to SUNWgtkspell
|
|
137 |
* Sun Mar 02 2008 - Petr Sobotka
|
|
138 |
- Source tar file was moved
|
|
139 |
* Wed July 26 2006 - [email protected]
|
|
140 |
- Initial spec file
|