11752
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-gvfs
|
|
3 |
#
|
|
4 |
# includes module(s): gvfs
|
|
5 |
#
|
|
6 |
# Copyright 2007 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: gheet
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
|
14 |
%use gvfs = gvfs.spec
|
|
15 |
|
|
16 |
Name: SUNWgnome-gvfs
|
|
17 |
Summary: GNOME virtual file system framework
|
|
18 |
Version: %{default_pkg_version}
|
12045
|
19 |
Source: %{name}-manpages-0.1.tar.gz
|
11752
|
20 |
SUNW_BaseDir: %{_basedir}
|
11996
|
21 |
SUNW_Copyright: %{name}.copyright
|
11752
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
|
|
24 |
%include default-depend.inc
|
|
25 |
Requires: SUNWgnome-base-libs
|
|
26 |
Requires: SUNWdbus
|
|
27 |
Requires: SUNWlibmsr
|
11778
|
28 |
Requires: SUNWsmbau
|
11789
|
29 |
Requires: SUNWlibsoup
|
12700
|
30 |
Requires: SUNWgnome-config
|
|
31 |
Requires: SUNWgnome-libs
|
|
32 |
Requires: SUNWhal
|
12794
|
33 |
Requires: SUNWavahi-bridge-dsd
|
11752
|
34 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
35 |
BuildRequires: SUNWdbus-devel
|
11789
|
36 |
BuildRequires: SUNWlibsoup-devel
|
12700
|
37 |
BuildRequires: SUNWgnome-config-devel
|
|
38 |
BuildRequires: SUNWgnome-libs-devel
|
|
39 |
BuildRequires: SUNWhal
|
12794
|
40 |
BuildRequires: SUNWavahi-bridge-dsd-devel
|
11752
|
41 |
%if %option_with_gnu_iconv
|
|
42 |
Requires: SUNWgnu-libiconv
|
|
43 |
Requires: SUNWgnu-gettext
|
|
44 |
%else
|
|
45 |
Requires: SUNWuiu8
|
|
46 |
%endif
|
|
47 |
|
11753
|
48 |
%if %build_l10n
|
|
49 |
%package l10n
|
|
50 |
Summary: %{summary} - l10n files
|
|
51 |
SUNW_BaseDir: %{_basedir}
|
|
52 |
%include default-depend.inc
|
|
53 |
Requires: %{name}
|
|
54 |
%endif
|
|
55 |
|
11752
|
56 |
%prep
|
|
57 |
rm -rf %name-%version
|
|
58 |
mkdir %name-%version
|
|
59 |
%gvfs.prep -d %name-%version
|
12345
|
60 |
cd %{_builddir}/%name-%version
|
|
61 |
gzcat %SOURCE0 | tar xf -
|
11752
|
62 |
|
|
63 |
%build
|
|
64 |
# -D_XPG4_2 is to get CMSG_SPACE declaration in <sys/socket.h>.
|
11778
|
65 |
# /usr/sfw/include needed for libsmbclient.h
|
|
66 |
export CFLAGS="%optflags -D_XPG4_2 -D__EXTENSIONS__ -I/usr/sfw/include"
|
11752
|
67 |
%if %option_with_gnu_iconv
|
|
68 |
export CFLAGS="$CFLAGS -I/usr/gnu/include -L/usr/gnu/lib -R/usr/gnu/lib -lintl"
|
|
69 |
%endif
|
|
70 |
export RPM_OPT_FLAGS="$CFLAGS"
|
11778
|
71 |
export LDFLAGS="%_ldflags -lxml2 -L/usr/sfw/lib -R/usr/sfw/lib"
|
11752
|
72 |
%gvfs.build -d %name-%version
|
|
73 |
|
|
74 |
%install
|
|
75 |
rm -rf $RPM_BUILD_ROOT
|
|
76 |
%gvfs.install -d %name-%version
|
11753
|
77 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
78 |
rm $RPM_BUILD_ROOT%{_libdir}/gio/modules/*.la
|
12142
|
79 |
# Remove gvfs-bash-completion.sh, a bash autocompletion script in the
|
|
80 |
# %{_sysconfdir}/profile.d dir. We don't ship such files. It is the only file
|
|
81 |
# under %{_sysconfdir} so remove the entire structure.
|
|
82 |
# rm/rmdir used instead of 'rm -r' so that files added under %{_sysconfdir} are
|
|
83 |
# found, via build failure.
|
|
84 |
rm $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/gvfs-bash-completion.sh
|
|
85 |
rmdir $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
86 |
rmdir $RPM_BUILD_ROOT%{_sysconfdir}
|
11753
|
87 |
|
12345
|
88 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
89 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
90 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
91 |
|
11753
|
92 |
%if %build_l10n
|
|
93 |
%else
|
|
94 |
# REMOVE l10n FILES
|
|
95 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
96 |
%endif
|
11752
|
97 |
|
|
98 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
99 |
|
|
100 |
%clean
|
|
101 |
rm -rf $RPM_BUILD_ROOT
|
|
102 |
|
|
103 |
%files
|
13559
|
104 |
%doc -d gvfs-%{gvfs.version} README AUTHORS
|
|
105 |
%doc(bzip2) -d gvfs-%{gvfs.version} COPYING NEWS ChangeLog
|
|
106 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
11752
|
107 |
%defattr (-, root, bin)
|
11753
|
108 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
109 |
%{_bindir}/*
|
11752
|
110 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
111 |
%{_libdir}/gvfsd*
|
12895
|
112 |
%{_libdir}/gvfs-hal-volume-monitor
|
11752
|
113 |
%{_libdir}/libgvfscommon.so*
|
|
114 |
%{_libdir}/gio/modules/*.so*
|
|
115 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
116 |
%{_datadir}/dbus-1/services/gvfs-daemon.service
|
12895
|
117 |
%{_datadir}/dbus-1/services/org.gtk.Private.HalVolumeMonitor.service
|
11753
|
118 |
%{_datadir}/gvfs
|
12345
|
119 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
120 |
%dir %attr(0755, root, bin) %{_mandir}/man1
|
|
121 |
%{_mandir}/man1/*
|
11752
|
122 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
123 |
%{_includedir}/*
|
|
124 |
|
11753
|
125 |
%if %build_l10n
|
|
126 |
%files l10n
|
|
127 |
%defattr (-, root, bin)
|
|
128 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
129 |
%attr (-, root, other) %{_datadir}/locale
|
|
130 |
%endif
|
11752
|
131 |
|
|
132 |
%changelog
|
12895
|
133 |
* Wed Jul 23 2008 - [email protected]
|
|
134 |
- Update %files for new tarball. Two new files delivered.
|
12794
|
135 |
* Thu Jul 10 2008 - [email protected]
|
|
136 |
- Add Build/Requires SUNWavahi-bridge-dsd/-devel to ensure avahi support built.
|
12700
|
137 |
* Wed Jun 18 2008 - [email protected]
|
|
138 |
- Add Build/Requires SUNWgnome-config/-devel, SUNWgnome-libs/-devel and SUNWhal
|
|
139 |
after check-deps.pl run.
|
12345
|
140 |
* Fri May 23 2008 - [email protected]
|
|
141 |
- Add code to incorporate manpages tarball.
|
12142
|
142 |
* Wed Apr 16 2008 - [email protected]
|
|
143 |
- Change how %{_sysconfdir}/profile.d is removed to be correct and future proof.
|
12120
|
144 |
* Tue Apr 15 2008 - [email protected]
|
|
145 |
- SUNWgnome-gvfs-root removed.
|
12045
|
146 |
* Tue Apr 07 2008 - [email protected]
|
|
147 |
- Add manpages.
|
11789
|
148 |
* Tue Mar 04 2008 - [email protected]
|
|
149 |
- Change SUNWevolution-libs to SUNWlibsoup as libsoup is the real dependency.
|
11779
|
150 |
* Mon Mar 03 2008 - [email protected]
|
|
151 |
- Added new dependencies: SUNWevolution-libs{,-devel}
|
11752
|
152 |
* Thu Feb 28 2008 - [email protected]
|
|
153 |
- Move from spec-files-extra, rename to SUNWgnome-gvfs and remove SFEgio
|
11753
|
154 |
dependency. Update %files and add l10n pkg for 0.1.8 tarball
|
11752
|
155 |
* Sun Nov 18 2007 - [email protected]
|
|
156 |
- Add support for building on Indiana systems. Add changes for gvfs 0.0.2.
|
|
157 |
* Fri Nov 09 2007 - [email protected]
|
|
158 |
- Add SFEgio to Requires, add SFEgio-devel to BuildRequires.
|
|
159 |
* Thu Nov 07 2007 - [email protected]
|
|
160 |
- Initial version.
|