]>
Commit | Line | Data |
---|---|---|
a0ad36c3 | 1 | # TODO: bmp plugin? |
aea59e30 JB |
2 | # |
3 | # Conditional build: | |
3b43b374 | 4 | %bcond_without static_libs # don't build static libraries |
5 | %bcond_without xmms # without XMMS plugin | |
aea59e30 | 6 | # |
59fc4501 | 7 | Summary: On Screen Display (like in TV) for X11 |
6e9b824e ER |
8 | Summary(es.UTF-8): Subtítulos (como en la tele) para X11 |
9 | Summary(pl.UTF-8): Wyświetlanie napisów na ekranie podobnie jak w telewizorach (OSD) | |
24ca79af | 10 | Name: xosd |
a0ad36c3 | 11 | Version: 2.2.14 |
1d64f483 | 12 | Release: 2 |
bc243f46 | 13 | License: GPL v2+ |
24ca79af | 14 | Group: X11/Applications |
a0ad36c3 JB |
15 | Source0: http://downloads.sourceforge.net/libxosd/%{name}-%{version}.tar.gz |
16 | # Source0-md5: 4b349fe930e4eee2f504d6c02673e24d | |
aea59e30 | 17 | Patch0: %{name}-am18.patch |
a0ad36c3 JB |
18 | Patch1: %{name}-ac.patch |
19 | Patch2: %{name}-install.patch | |
20 | URL: http://sourceforge.net/projects/libxosd/ | |
3cee6c1a | 21 | BuildRequires: autoconf >= 2.59-9 |
edc5a8c1 | 22 | BuildRequires: automake |
c883e8ec | 23 | BuildRequires: libtool |
3cee6c1a JB |
24 | %if %{with xmms} |
25 | BuildRequires: gdk-pixbuf-devel >= 0.22.0 | |
26 | BuildRequires: gtk+-devel >= 1.2.2 | |
27 | BuildRequires: rpmbuild(macros) >= 1.125 | |
28 | BuildRequires: xmms-devel >= 1.2.7 | |
29 | %endif | |
a0ad36c3 JB |
30 | BuildRequires: xorg-lib-libX11-devel |
31 | BuildRequires: xorg-lib-libXext-devel | |
32 | BuildRequires: xorg-lib-libXinerama-devel | |
b58977ed | 33 | Obsoletes: libxosd2 |
6320038a | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
59fc4501 | 35 | |
24ca79af | 36 | %description |
59fc4501 | 37 | XOSD allows On Screen Displaying on your monitor under X11. It could |
38 | show current volume while changing it, or information about new mail | |
39 | arrival. It has plugin for XMMS attached as an example what it can do. | |
24ca79af | 40 | |
5cefc062 JR |
41 | %description -l es.UTF-8 |
42 | XOSD permite mostrar subtítulos u otros mensajes en el monitor bajo | |
43 | X11. Podría ser usado para mostrar el volumen del sonido cuando éste | |
44 | sea cambiado, o bien una información sobre correo electrónico recién | |
de0c97c8 | 45 | llegado. Hay un plugin para XMMS que puede servir como ejemplo de lo |
46 | que se puede hacer. | |
47 | ||
5cefc062 JR |
48 | %description -l pl.UTF-8 |
49 | XOSD służy do wyświetlania na monitorze napisów w sposób podobny do | |
50 | tego jak to się dzieje we współczesnych telewizorach (OSD). Może on | |
51 | pokazywać aktualną głośność podczas jej zmieniania, albo informacje o | |
52 | nowej poczcie. Do programu została dołączona wtyczka dla XMMS-a | |
53 | pokazująca, co tak naprawdę potrafi XOSD. | |
24ca79af | 54 | |
42f72ecf | 55 | %package devel |
56 | Summary: Header files and documentation for developers of XOSD | |
6e9b824e ER |
57 | Summary(es.UTF-8): Ficheros de cabecera y documentación de programadores para XOSD |
58 | Summary(pl.UTF-8): Pliki nagłówkowe oraz dokumentcja dla programistów XOSD | |
42f72ecf | 59 | Group: X11/Development/Libraries |
58fcf971 | 60 | Requires: %{name} = %{version}-%{release} |
3cee6c1a | 61 | Requires: xorg-lib-libXext-devel |
cb7d1d81 | 62 | Requires: xorg-lib-libXinerama-devel |
b58977ed | 63 | Obsoletes: libxosd2-devel |
42f72ecf | 64 | |
65 | %description devel | |
66 | Files allowing development of xosd-based applications. | |
67 | ||
5cefc062 | 68 | %description devel -l es.UTF-8 |
de0c97c8 | 69 | Ficheros que permiten el desarrollo de aplicaciones basadas en xosd. |
70 | ||
5cefc062 JR |
71 | %description devel -l pl.UTF-8 |
72 | Pliki pozwalające tworzyć programy w oparciu o xosd. | |
42f72ecf | 73 | |
edc5a8c1 PG |
74 | %package static |
75 | Summary: Static libraries for XOSD | |
6e9b824e ER |
76 | Summary(es.UTF-8): Bibliotecas estáticas para XOSD |
77 | Summary(pl.UTF-8): Statyczne biblioteki dla XOSD | |
edc5a8c1 | 78 | Group: X11/Development/Libraries |
58fcf971 | 79 | Requires: %{name} = %{version}-%{release} |
edc5a8c1 PG |
80 | |
81 | %description static | |
82 | Static libraries for XOSD. | |
83 | ||
5cefc062 JR |
84 | %description static -l es.UTF-8 |
85 | Bibliotecas estáticas para XOSD. | |
de0c97c8 | 86 | |
5cefc062 | 87 | %description static -l pl.UTF-8 |
edc5a8c1 PG |
88 | Statyczne biblioteki dla XOSD. |
89 | ||
42f72ecf | 90 | %package -n xmms-general-xosd |
91 | Summary: Plugin for XMMS that allows On Screen Displaying (OSD) | |
6e9b824e ER |
92 | Summary(es.UTF-8): Plugin para XMMS que permite mostrar informaciones en la pantalla (OSD) |
93 | Summary(pl.UTF-8): Wtyczka dla XMMS-a, która umożliwa wyświetlanie informacji na ekranie (OSD) | |
c883e8ec | 94 | Group: X11/Applications/Sound |
58fcf971 | 95 | Requires: %{name} = %{version}-%{release} |
96 | Requires: xmms >= 1.2.7 | |
42f72ecf | 97 | |
98 | %description -n xmms-general-xosd | |
99 | Plugin for XMMS enabling On Screen Display (OSD) showing names of | |
100 | played files, volume, etc. | |
101 | ||
5cefc062 | 102 | %description -n xmms-general-xosd -l es.UTF-8 |
de0c97c8 | 103 | Plugin para XMMS que habilita mostrar sobre la pantalla los nombres de |
104 | los ficheros reproducidos, el volumen, etc. | |
105 | ||
5cefc062 JR |
106 | %description -n xmms-general-xosd -l pl.UTF-8 |
107 | Wtyczka dla XMMS-a pokazująca na ekranie (OSD) aktualne informacje o | |
108 | odgrywanej piosence, głośności, itd. | |
42f72ecf | 109 | |
24ca79af | 110 | %prep |
aea59e30 JB |
111 | %setup -q |
112 | %patch0 -p1 | |
a0ad36c3 JB |
113 | %patch1 -p0 |
114 | %patch2 -p1 | |
24ca79af | 115 | |
116 | %build | |
aea59e30 | 117 | %{!?with_xmms:echo 'AC_DEFUN([AM_PATH_XMMS],[])' >> acinclude.m4} |
15f91c9e | 118 | %{__libtoolize} |
d6d50997 | 119 | %{__aclocal} |
c883e8ec | 120 | %{__autoconf} |
edc5a8c1 | 121 | %{__automake} |
7063a794 | 122 | %configure \ |
de0c97c8 | 123 | %{?with_xmms:--with-plugindir=%{xmms_general_plugindir}} \ |
3b43b374 | 124 | %{!?with_xmms:--disable-new-plugin} \ |
125 | %{!?with_static_libs:--disable-static} | |
b362061a | 126 | |
59fc4501 | 127 | %{__make} |
24ca79af | 128 | |
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
6320038a | 131 | install -d $RPM_BUILD_ROOT{%{xmms_general_plugindir},%{_includedir}} \ |
132 | $RPM_BUILD_ROOT%{_mandir}/man3 | |
24ca79af | 133 | |
140376dd | 134 | %{__make} install \ |
135 | DESTDIR=$RPM_BUILD_ROOT \ | |
136 | m4datadir=%{_aclocaldir} | |
24ca79af | 137 | |
a0ad36c3 | 138 | %{__rm} $RPM_BUILD_ROOT%{xmms_general_plugindir}/*.la |
aea59e30 | 139 | |
24ca79af | 140 | %clean |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
c883e8ec JB |
143 | %post -p /sbin/ldconfig |
144 | %postun -p /sbin/ldconfig | |
145 | ||
24ca79af | 146 | %files |
147 | %defattr(644,root,root,755) | |
1055a10e | 148 | %doc ChangeLog AUTHORS README |
edc5a8c1 PG |
149 | %attr(755,root,root) %{_bindir}/osd_cat |
150 | %attr(755,root,root) %{_libdir}/libxosd.so.*.*.* | |
a0ad36c3 | 151 | %attr(755,root,root) %ghost %{_libdir}/libxosd.so.2 |
5ae46252 | 152 | %{_mandir}/man1/osd_cat.1* |
42f72ecf | 153 | |
42f72ecf | 154 | %files devel |
155 | %defattr(644,root,root,755) | |
fa06d3c6 | 156 | %attr(755,root,root) %{_bindir}/xosd-config |
a0ad36c3 JB |
157 | %attr(755,root,root) %{_libdir}/libxosd.so |
158 | %{_libdir}/libxosd.la | |
159 | %{_includedir}/xosd.h | |
140376dd | 160 | %{_aclocaldir}/libxosd.m4 |
a0ad36c3 | 161 | %{_mandir}/man3/xosd*.3* |
5ae46252 | 162 | %{_mandir}/man1/xosd-config.1* |
edc5a8c1 | 163 | |
3b43b374 | 164 | %if %{with static_libs} |
edc5a8c1 PG |
165 | %files static |
166 | %defattr(644,root,root,755) | |
140376dd | 167 | %{_libdir}/libxosd.a |
3b43b374 | 168 | %endif |
b362061a | 169 | |
de0c97c8 | 170 | %if %{with xmms} |
b362061a JB |
171 | %files -n xmms-general-xosd |
172 | %defattr(644,root,root,755) | |
a0ad36c3 | 173 | %attr(755,root,root) %{xmms_general_plugindir}/libxmms_osd.so |
b362061a JB |
174 | %dir %{_datadir}/xosd |
175 | %{_datadir}/xosd/*.png | |
176 | %endif |