13084
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-commander
|
|
3 |
#
|
|
4 |
# includes module(s): gnome-commander
|
|
5 |
#
|
|
6 |
# Copyright (c) 2008 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: padraig
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
|
14 |
Name: SUNWgnome-commander
|
|
15 |
License: GPL
|
|
16 |
Summary: gnome commander file manager
|
|
17 |
Version: 1.2.7
|
|
18 |
Source: http://ftp.gnome.org/pub/GNOME/sources/gnome-commander/1.2/gnome-commander-%{version}.tar.bz2
|
13788
|
19 |
# date:2008-06-25 owner:padraig type:feature
|
13084
|
20 |
Patch1: gnome-commander-01-desktop-menu.diff
|
13788
|
21 |
# date:2008-08-22 owner:fujiwara type:bug bugster:6739065 bugzilla:548948 state:upstream
|
13263
|
22 |
Patch2: gnome-commander-02-g11n-collation-str.diff
|
13788
|
23 |
# date:2008-08-22 owner:fujiwara type:feature bugster:6740270 bugzilla:548961 state:upstream
|
13263
|
24 |
Patch3: gnome-commander-03-g11n-search-wz-im.diff
|
13084
|
25 |
SUNW_BaseDir: %{_basedir}
|
|
26 |
SUNW_Copyright: %{name}.copyright
|
|
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
28 |
%include default-depend.inc
|
|
29 |
BuildRequires: SUNWlibgsf-devel
|
|
30 |
BuildRequires: SUNWgnome-libs-devel
|
|
31 |
BuildRequires: SUNWgnome-vfs-devel
|
|
32 |
BuildRequires: SUNWPython
|
|
33 |
BuildRequires: SUNWgnome-python-libs-devel
|
|
34 |
Requires: SUNWgnome-vfs
|
|
35 |
Requires: SUNWlibgsf
|
|
36 |
Requires: SUNWgnome-libs
|
|
37 |
Requires: SUNWgnome-python-libs
|
|
38 |
|
|
39 |
%if %build_l10n
|
|
40 |
%package l10n
|
|
41 |
Summary: %{summary} - l10n files
|
|
42 |
SUNW_BaseDir: %{_basedir}
|
|
43 |
%include default-depend.inc
|
|
44 |
Requires: %{name}
|
|
45 |
%endif
|
|
46 |
|
|
47 |
%prep
|
|
48 |
%setup -q -n gnome-commander-%version
|
|
49 |
%patch1 -p1
|
13263
|
50 |
%patch2 -p1
|
|
51 |
%patch3 -p1
|
13084
|
52 |
|
|
53 |
%build
|
|
54 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
55 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
56 |
CPUS=1
|
|
57 |
fi
|
|
58 |
export PYTHON="/usr/bin/python2.4"
|
|
59 |
export CFLAGS="%optflags -I/usr/gnu/include"
|
|
60 |
export LDFLAGS="-L/usr/gnu/lib -R/usr/gnu/lib"
|
|
61 |
|
|
62 |
intltoolize --force --copy --automake
|
|
63 |
aclocal $ACLOCAL_FLAGS -I m4
|
|
64 |
automake -a -c -f
|
|
65 |
autoconf
|
|
66 |
./configure \
|
|
67 |
--prefix=%{_prefix} \
|
|
68 |
--disable-scrollkeeper
|
|
69 |
make prefix=%{_prefix} -j$CPUS
|
|
70 |
|
|
71 |
%install
|
|
72 |
rm -rf $RPM_BUILD_ROOT
|
|
73 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
74 |
rm $RPM_BUILD_ROOT%{_libdir}/gnome-commander/*.a
|
|
75 |
rm $RPM_BUILD_ROOT%{_libdir}/gnome-commander/*.la
|
|
76 |
rm $RPM_BUILD_ROOT%{_libdir}/gnome-commander/plugins/*.a
|
|
77 |
rm $RPM_BUILD_ROOT%{_libdir}/gnome-commander/plugins/*.la
|
|
78 |
|
|
79 |
%if %build_l10n
|
|
80 |
%else
|
|
81 |
# REMOVE l10n FILES
|
|
82 |
rm -r $RPM_BUILD_ROOT%{_datadir}/locale
|
|
83 |
#rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/gnome-commander/[a-z]*
|
|
84 |
#rm -r $RPM_BUILD_ROOT%{_datadir}/omf/gnome-commander/*-[a-z]*.omf
|
|
85 |
%endif
|
|
86 |
|
|
87 |
%clean
|
|
88 |
rm -rf $RPM_BUILD_ROOT
|
|
89 |
|
|
90 |
%post
|
|
91 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
92 |
echo '/usr/bin/update-desktop-database'
|
|
93 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
94 |
|
|
95 |
%postun
|
|
96 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
97 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
98 |
echo '/usr/bin/update-desktop-database'
|
|
99 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
100 |
|
|
101 |
|
|
102 |
%files
|
13488
|
103 |
%doc(bzip2) COPYING ChangeLog
|
|
104 |
%doc README NEWS
|
|
105 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
13084
|
106 |
%defattr (-, root, bin)
|
|
107 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
108 |
%{_bindir}/*
|
|
109 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
110 |
%{_libdir}/*
|
|
111 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
112 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
113 |
%{_datadir}/applications/*
|
|
114 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
115 |
%{_datadir}/gnome/help/*/C
|
|
116 |
%{_datadir}/omf/gnome-commander/gnome-commander-C.omf
|
|
117 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
118 |
%dir %attr(0755, root, bin) %{_mandir}/man1
|
|
119 |
%{_mandir}/man1/gnome-commander.1
|
|
120 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps
|
|
121 |
%{_datadir}/pixmaps/*
|
|
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
|
13488
|
131 |
* Wed Sep 10 2008 - [email protected]
|
|
132 |
- Add %doc to %files for copyright
|
13263
|
133 |
* Fri Aug 22 2008 - [email protected]
|
|
134 |
- Add gnome-commander-02-g11n-collation-str.diff to avoid crash on none UTF-8.
|
|
135 |
- Add gnome-commander-03-g11n-search-wz-im.diff to enable input method.
|
13084
|
136 |
* Wed Aug 06 2008 - [email protected]
|
|
137 |
- Update following review; bump to 1.2.7.
|
|
138 |
* Wed Jul 02 2008 - [email protected]
|
|
139 |
- Copy from SFEgnome-commander
|
|
140 |
* Mon Feb 11 2008 - [email protected]
|
|
141 |
- add --disable-scrollkeeper configure option
|
|
142 |
* Thu Nov 15 2007 - [email protected]
|
|
143 |
- Add support for Indiana builds.
|
|
144 |
* Wed Oct 17 2007 - [email protected]
|
|
145 |
- add /usr/gnu to search paths for the indiana build
|
|
146 |
* Mon Oct 08 2007 - [email protected]
|
|
147 |
- Add deletion of /var files back for building on pre-GNOME 2.20 systems where
|
|
148 |
scrollkeeper is used. The /var files are not installed when rarian is used.
|
|
149 |
* Mon Oct 08 2007 - [email protected]
|
|
150 |
- Add intltoolize call and remove some non-l10n rm calls.
|
|
151 |
* Tue Jun 12 2007 - [email protected]
|
|
152 |
- Add patches, 08-warnx and 09-other, to fix a few more build issues.
|
|
153 |
- Update %files and %install now that build is working.
|
|
154 |
* Mon Jun 11 2007 - [email protected]
|
|
155 |
- Initial version
|