]>
Commit | Line | Data |
---|---|---|
cc996c1d MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | # | |
48bf6496 | 5 | Summary: A Telepathy account manager |
fe3f0a53 | 6 | Summary(pl.UTF-8): Zarządca kont Telepathy |
48bf6496 | 7 | Name: telepathy-mission-control |
541a6207 | 8 | Version: 5.9.2 |
25dc9848 | 9 | Release: 1 |
2b0fd2f2 | 10 | License: LGPL v2.1+ |
48bf6496 | 11 | Group: Libraries |
dc11c478 | 12 | Source0: http://telepathy.freedesktop.org/releases/telepathy-mission-control/%{name}-%{version}.tar.gz |
541a6207 | 13 | # Source0-md5: 312fb289f644a90d4514064586445d58 |
48bf6496 | 14 | URL: http://mission-control.sourceforge.net/ |
15 | BuildRequires: autoconf >= 2.59 | |
0d1c1967 | 16 | BuildRequires: automake >= 1:1.9 |
541a6207 | 17 | BuildRequires: dbus-devel >= 0.95 |
25dc9848 | 18 | BuildRequires: dbus-glib-devel >= 0.82 |
66e3c897 | 19 | BuildRequires: docbook-dtd412-xml |
541a6207 AF |
20 | BuildRequires: glib2-devel >= 1:2.28.0 |
21 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.17} | |
48bf6496 | 22 | BuildRequires: libtool |
23 | BuildRequires: libxslt-progs | |
24 | BuildRequires: pkgconfig | |
541a6207 AF |
25 | BuildRequires: python >= 2.5 |
26 | BuildRequires: python-modules >= 2.5 | |
27 | BuildRequires: rpmbuild(macros) >= 1.527 | |
28 | BuildRequires: telepathy-glib-devel >= 0.15.0 | |
829c2304 | 29 | Conflicts: libtelepathy < 0.3.3-4 |
48bf6496 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | An account manager for Telepathy. | |
34 | ||
fe3f0a53 JB |
35 | %description -l pl.UTF-8 |
36 | Zarządca kont dla Telepathy. | |
37 | ||
48bf6496 | 38 | %package devel |
39 | Summary: Header files for mission control library | |
fe3f0a53 | 40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki mission control |
48bf6496 | 41 | Group: Development/Libraries |
42 | Requires: %{name} = %{version}-%{release} | |
541a6207 AF |
43 | Requires: dbus-glib-devel >= 0.82 |
44 | Requires: telepathy-glib-devel >= 0.15.0 | |
48bf6496 | 45 | |
46 | %description devel | |
47 | Header files for mission control library. | |
48 | ||
fe3f0a53 JB |
49 | %description devel -l pl.UTF-8 |
50 | Pliki nagłówkowe biblioteki mission control. | |
51 | ||
cc996c1d MB |
52 | %package apidocs |
53 | Summary: mission control library API documentation | |
54 | Summary(pl.UTF-8): Dokumentacja API biblioteki mission control | |
55 | Group: Documentation | |
56 | Requires: gtk-doc-common | |
57 | ||
58 | %description apidocs | |
59 | mission control library API documentation. | |
60 | ||
61 | %description apidocs -l pl.UTF-8 | |
62 | Dokumentacja API biblioteki mission control. | |
63 | ||
48bf6496 | 64 | %prep |
65 | %setup -q | |
66 | ||
67 | %build | |
68 | %{__libtoolize} | |
dc11c478 | 69 | %{__aclocal} -I m4 |
48bf6496 | 70 | %{__autoconf} |
71 | %{__autoheader} | |
72 | %{__automake} | |
cc996c1d | 73 | %configure \ |
25dc9848 | 74 | --disable-static \ |
541a6207 AF |
75 | --disable-aegis \ |
76 | --disable-gnome-keyring \ | |
77 | --disable-libaccounts-sso \ | |
78 | %{__enable_disable apidocs gtk-doc} \ | |
cc996c1d | 79 | --with-html-dir=%{_gtkdocdir} |
48bf6496 | 80 | %{__make} |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
0d1c1967 | 84 | install -d $RPM_BUILD_ROOT%{_datadir}/mission-control/profiles |
48bf6496 | 85 | |
86 | %{__make} install \ | |
cc996c1d | 87 | DESTDIR=$RPM_BUILD_ROOT |
48bf6496 | 88 | |
541a6207 AF |
89 | install -d $RPM_BUILD_ROOT%{_datadir}/telepathy/{clients,managers} \ |
90 | $RPM_BUILD_ROOT%{_libdir}/mission-control-plugins.0 | |
829c2304 | 91 | |
cc996c1d | 92 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
25dc9848 | 93 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
cc996c1d | 94 | |
48bf6496 | 95 | %clean |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
c15092cd PZ |
98 | %pretrans |
99 | # this needs to be a file | |
100 | if [ -d %{_libexecdir}/mission-control ]; then | |
9e334631 | 101 | rm -rf %{_libexecdir}/mission-control |
c15092cd PZ |
102 | fi |
103 | ||
48bf6496 | 104 | %post -p /sbin/ldconfig |
105 | %postun -p /sbin/ldconfig | |
106 | ||
107 | %files | |
108 | %defattr(644,root,root,755) | |
109 | %doc AUTHORS ChangeLog README | |
dc11c478 PZ |
110 | %attr(755,root,root) %{_bindir}/mc-tool |
111 | %attr(755,root,root) %{_bindir}/mc-wait-for-name | |
112 | %attr(755,root,root) %{_libexecdir}/mission-control-5 | |
dc11c478 PZ |
113 | %{_mandir}/man1/mc-tool.1* |
114 | %{_mandir}/man1/mc-wait-for-name.1* | |
115 | %{_mandir}/man8/mission-control-5.8* | |
25dc9848 PZ |
116 | %attr(755,root,root) %{_libdir}/libmission-control-plugins.so.*.*.* |
117 | %attr(755,root,root) %ghost %{_libdir}/libmission-control-plugins.so.0 | |
541a6207 | 118 | %dir %{_libdir}/mission-control-plugins.0 |
dc11c478 PZ |
119 | %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.AccountManager.service |
120 | %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.MissionControl5.service | |
e5f48593 | 121 | %dir %{_datadir}/mission-control |
122 | %dir %{_datadir}/mission-control/profiles | |
829c2304 PZ |
123 | %dir %{_datadir}/telepathy |
124 | %dir %{_datadir}/telepathy/clients | |
125 | %dir %{_datadir}/telepathy/managers | |
48bf6496 | 126 | |
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
25dc9848 PZ |
129 | %attr(755,root,root) %{_libdir}/libmission-control-plugins.so |
130 | %{_includedir}/mission-control-5.5 | |
48bf6496 | 131 | %{_pkgconfigdir}/*.pc |
48bf6496 | 132 | |
cc996c1d MB |
133 | %if %{with apidocs} |
134 | %files apidocs | |
135 | %defattr(644,root,root,755) | |
25dc9848 | 136 | %{_gtkdocdir}/mission-control-plugins |
cc996c1d | 137 | %endif |