author | davelam |
Thu, 07 Aug 2008 02:31:31 +0000 | |
branch | gnome-2-22 |
changeset 12491 | b2fc226f1836 |
parent 12167 | 04331385b57c |
child 12616 | c6e1e47aae28 |
permissions | -rw-r--r-- |
10116 | 1 |
# |
2 |
# spec file for package SUNWavahi-bridge-dsd |
|
3 |
# |
|
4 |
# includes module(s): avahi |
|
5 |
# |
|
6 |
# Copyright (c) 2006 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 |
# |
|
11975 | 10 |
# Owner: padraig |
11 |
# |
|
10116 | 12 |
|
13 |
%include Solaris.inc |
|
14 |
||
15 |
%use avahi = avahi.spec |
|
16 |
||
17 |
Name: SUNWavahi-bridge-dsd |
|
18 |
Summary: Avahi client and bridge to SUNWdsd. |
|
19 |
Version: %{avahi.version} |
|
20 |
SUNW_BaseDir: %{_basedir} |
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
11975 | 22 |
SUNW_copyright: %{name}.copyright |
10116 | 23 |
Source1: avahi-bridge-dsd.xml |
10671 | 24 |
Source2: svc-avahi-bridge-dsd |
10116 | 25 |
|
26 |
%include default-depend.inc |
|
10469 | 27 |
BuildRequires: SUNWgnome-base-libs-devel |
10471 | 28 |
BuildRequires: SUNWgnome-python-libs-devel |
12167
04331385b57c
Fix typo in Build/Requires: SUNWdus to SUNWdbus.
dcarbery
parents:
12157
diff
changeset
|
29 |
BuildRequires: SUNWdbus-bindings-devel |
10469 | 30 |
Requires: SUNWgnome-base-libs |
10471 | 31 |
Requires: SUNWgnome-python-libs |
12167
04331385b57c
Fix typo in Build/Requires: SUNWdus to SUNWdbus.
dcarbery
parents:
12157
diff
changeset
|
32 |
Requires: SUNWdbus-bindings |
10116 | 33 |
Requires: SUNWavahi-bridge-dsd-root |
34 |
Requires: SUNWlibdaemon |
|
35 |
Requires: SUNWlexpt |
|
10446 | 36 |
Requires: SUNWdsdr |
10116 | 37 |
|
38 |
%package root |
|
39 |
Summary: %{summary} - / filesystem |
|
40 |
SUNW_BaseDir: / |
|
41 |
%include default-depend.inc |
|
42 |
||
43 |
%package devel |
|
44 |
Summary: %{summary} - development files |
|
45 |
SUNW_BaseDir: %{_prefix} |
|
46 |
%include default-depend.inc |
|
47 |
||
48 |
%prep |
|
49 |
rm -rf %name-%version |
|
50 |
mkdir %name-%version |
|
51 |
%avahi.prep -d %name-%version |
|
52 |
||
53 |
%build |
|
54 |
PKG_CONFIG_DISABLE_UNISTALLED= |
|
55 |
unset PKG_CONFIG_DISABLE_UNISTALLED |
|
56 |
export PKG_CONFIG_PATH=../avahi-%{avahi.version}:%{_pkg_config_path} |
|
57 |
export CFLAGS="%optflags -I/usr/sfw/include" |
|
58 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
11093 | 59 |
export LDFLAGS="%_ldflags -ldns_sd -lsocket -lnsl -L/usr/sfw/lib -R/usr/sfw/lib -lexpat" |
10116 | 60 |
|
61 |
%avahi.build -d %name-%version |
|
62 |
||
63 |
%install |
|
64 |
%avahi.install -d %name-%version |
|
65 |
mkdir -p $RPM_BUILD_ROOT/var/svc/manifest/system |
|
66 |
chmod -R 755 $RPM_BUILD_ROOT/var/svc |
|
67 |
cp %SOURCE1 $RPM_BUILD_ROOT/var/svc/manifest/system/ |
|
10671 | 68 |
mkdir -p $RPM_BUILD_ROOT/lib/svc/method |
69 |
chmod -R 755 $RPM_BUILD_ROOT/lib |
|
70 |
cp %SOURCE2 $RPM_BUILD_ROOT/lib/svc/method/ |
|
10116 | 71 |
|
72 |
mv $RPM_BUILD_ROOT%{_sbindir}/avahi-daemon $RPM_BUILD_ROOT%{_sbindir}/avahi-daemon-bridge-dsd |
|
10708 | 73 |
%if %option_with_indiana_branding |
10703 | 74 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/applications |
75 |
%endif |
|
10116 | 76 |
|
77 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
78 |
||
79 |
%clean |
|
10684 | 80 |
rm -rf $RPM_BUILD_ROOT |
10116 | 81 |
|
82 |
%if %(test -f /usr/sadm/install/scripts/i.manifest && echo 0 || echo 1) |
|
83 |
%iclass manifest -f i.manifest |
|
84 |
%endif |
|
85 |
||
86 |
%files |
|
87 |
%defattr (-, root, bin) |
|
88 |
%dir %attr (0755, root, bin) %{_bindir} |
|
89 |
%{_bindir}/* |
|
90 |
%dir %attr (0755, root, bin) %{_sbindir} |
|
91 |
%{_sbindir}/avahi-daemon-bridge-dsd |
|
92 |
%dir %attr (0755, root, bin) %{_libdir} |
|
93 |
%{_libdir}/libavahi*.so* |
|
94 |
%dir %attr (0755, root, sys) %{_datadir} |
|
95 |
%{_datadir}/avahi/service-types* |
|
10709 | 96 |
%if %option_with_sun_branding |
10116 | 97 |
%dir %attr (0755, root, other) %{_datadir}/applications |
98 |
%{_datadir}/applications/avahi-discover.desktop |
|
99 |
%{_datadir}/applications/bssh.desktop |
|
100 |
%{_datadir}/applications/bvnc.desktop |
|
10703 | 101 |
%endif |
10116 | 102 |
%{_datadir}/avahi/interfaces/avahi-discover.glade |
103 |
%{_datadir}/avahi/introspection/Server.introspect |
|
104 |
%{_datadir}/avahi/introspection/EntryGroup.introspect |
|
105 |
%{_datadir}/avahi/introspection/DomainBrowser.introspect |
|
106 |
%{_datadir}/avahi/introspection/ServiceBrowser.introspect |
|
107 |
%{_datadir}/avahi/introspection/ServiceTypeBrowser.introspect |
|
108 |
%{_datadir}/avahi/introspection/ServiceResolver.introspect |
|
109 |
%{_datadir}/avahi/introspection/AddressResolver.introspect |
|
110 |
%{_datadir}/avahi/introspection/HostNameResolver.introspect |
|
111 |
%{_datadir}/avahi/introspection/RecordBrowser.introspect |
|
112 |
%{_datadir}/avahi/avahi-service.dtd |
|
113 |
%dir %attr (0755, root, bin) %{_mandir} |
|
114 |
%{_mandir}/man1/* |
|
115 |
%attr (-, root, bin) %{_libdir}/python* |
|
116 |
||
117 |
%files root |
|
118 |
%defattr (-, root, bin) |
|
119 |
%dir %attr (0755, root, sys) %{_sysconfdir} |
|
120 |
%config %{_sysconfdir}/* |
|
121 |
%dir %attr (0755, root, sys) /var |
|
122 |
%dir %attr (0755, root, sys) /var/svc |
|
123 |
%dir %attr (0755, root, sys) /var/svc/manifest |
|
124 |
%dir %attr (0755, root, sys) /var/svc/manifest/system |
|
125 |
%class(manifest) %attr (0444, root, sys) /var/svc/manifest/system/avahi-bridge-dsd.xml |
|
10671 | 126 |
%attr (0555, root, bin) /lib/svc/method/svc-avahi-bridge-dsd |
10116 | 127 |
|
128 |
||
129 |
%files devel |
|
130 |
%defattr (-, root, bin) |
|
131 |
%dir %attr (0755, root, bin) %{_libdir} |
|
132 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
133 |
%{_libdir}/pkgconfig/* |
|
134 |
%dir %attr (0755, root, bin) %{_includedir} |
|
135 |
%{_includedir}/* |
|
136 |
||
137 |
||
138 |
%changelog |
|
11093 | 139 |
* Wed Oct 31 2007 - [email protected] |
12157 | 140 |
- Add Build/Requires SUNWdbus-bindings/-devel as the dbus python module is used. |
141 |
||
142 |
* Wed Oct 31 2007 - [email protected] |
|
11093 | 143 |
- Remove references to /usr/lib/mdns from LDFLAGS as the dir doesn't exist. |
144 |
||
10469 | 145 |
* Fri Sep 07 2007 - [email protected] |
146 |
- Add Build/Requires SUNWgnome-base-libs/-devel for glib. |
|
10471 | 147 |
- Add Build/Requires SUNWgnome-python-libs/-devel for gtk Python module. |
10469 | 148 |
|
149 |
* Wed Jun 28 2007 - [email protected] |
|
10116 | 150 |
- Initial spec file created. |