]>
Commit | Line | Data |
---|---|---|
cb72a6a8 AF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
6851e41a | 4 | |
cb72a6a8 AF |
5 | Summary: General Window Manager interfacing for GNOME utilities |
6 | Summary(pl.UTF-8): Interfejs General Window Manager dla narzędzi GNOME | |
7 | Name: libwnck2 | |
cbadaf7e | 8 | Version: 2.30.7 |
6851e41a | 9 | Release: 2 |
cb72a6a8 AF |
10 | License: LGPL v2+ |
11 | Group: X11/Libraries | |
cbadaf7e JB |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libwnck/2.30/libwnck-%{version}.tar.xz |
13 | # Source0-md5: 3d20f26105a2fd878899d6ecdbe9a082 | |
6851e41a | 14 | Patch0: tasklist_orientation.patch |
cb72a6a8 AF |
15 | BuildRequires: autoconf >= 2.62 |
16 | BuildRequires: automake >= 1:1.9 | |
17 | BuildRequires: docbook-dtd412-xml | |
18 | BuildRequires: gettext-devel | |
19 | BuildRequires: glib2-devel >= 1:2.18.0 | |
20 | BuildRequires: gnome-common >= 2.20.0 | |
21 | BuildRequires: gobject-introspection-devel >= 0.6.14 | |
22 | BuildRequires: gtk+2-devel >= 2:2.20.0 | |
23 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} | |
24 | BuildRequires: gtk-doc-automake | |
25 | BuildRequires: intltool >= 0.40.0 | |
26 | BuildRequires: libtool | |
27 | BuildRequires: pkgconfig | |
28 | BuildRequires: sed >= 4.0 | |
29 | BuildRequires: startup-notification-devel >= 0.8 | |
cbadaf7e JB |
30 | BuildRequires: tar >= 1:1.22 |
31 | BuildRequires: xorg-lib-libX11-devel | |
cb72a6a8 | 32 | BuildRequires: xorg-lib-libXres-devel |
cbadaf7e | 33 | BuildRequires: xz |
cb72a6a8 AF |
34 | Requires: gtk+2 >= 2:2.20.0 |
35 | # sr@Latn vs. sr@latin | |
36 | Conflicts: glibc-misc < 6:2.7 | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | General Window Manager interfacing for GNOME utilities. This library | |
41 | is a part of the GNOME 2 platform. | |
42 | ||
43 | %description -l pl.UTF-8 | |
44 | Ogólny interfejs zarządcy okien dla narzędzi GNOME. Ta biblioteka jest | |
45 | częścią platformy GNOME 2. | |
46 | ||
8684ad31 AF |
47 | %package tools |
48 | Summary: Small tools to manage windows | |
cbadaf7e | 49 | Summary(pl.UTF-8): Małe narzędzia do zarządzania oknami |
8684ad31 AF |
50 | Group: X11/Window Managers/Tools |
51 | Requires: %{name} = %{version}-%{release} | |
52 | ||
53 | %description tools | |
54 | Small tools to manage windows. | |
55 | ||
cbadaf7e JB |
56 | %description tools -l pl.UTF-8 |
57 | Małe narzędzia do zarządzania oknami. | |
58 | ||
cb72a6a8 AF |
59 | %package devel |
60 | Summary: Header files and documentation for libwnck | |
61 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja dla libwnck | |
62 | Group: X11/Development/Libraries | |
63 | Requires: %{name} = %{version}-%{release} | |
64 | Requires: gtk+2-devel >= 2:2.20.0 | |
65 | Requires: startup-notification-devel >= 0.8 | |
cbadaf7e | 66 | Requires: xorg-lib-libX11-devel |
cb72a6a8 AF |
67 | Requires: xorg-lib-libXres-devel |
68 | ||
69 | %description devel | |
70 | Header, docs and development libraries for libwnck. | |
71 | ||
72 | %description devel -l pl.UTF-8 | |
73 | Pliki nagłówkowe i dokumentacja do libwnck. | |
74 | ||
75 | %package static | |
76 | Summary: Static libwnck libraries | |
77 | Summary(pl.UTF-8): Statyczne biblioteki libwnck | |
78 | Group: X11/Development/Libraries | |
79 | Requires: %{name}-devel = %{version}-%{release} | |
80 | ||
81 | %description static | |
82 | Static version of libwnck libraries. | |
83 | ||
84 | %description static -l pl.UTF-8 | |
85 | Statyczna wersja bibliotek libwnck. | |
86 | ||
87 | %package apidocs | |
88 | Summary: libwnck API documentation | |
89 | Summary(pl.UTF-8): Dokumentacja API libwnck | |
90 | Group: Documentation | |
91 | Requires: gtk-doc-common | |
92 | ||
93 | %description apidocs | |
94 | libwnck API documentation. | |
95 | ||
96 | %description apidocs -l pl.UTF-8 | |
97 | Dokumentacja API libwnck. | |
98 | ||
99 | %prep | |
100 | %setup -q -n libwnck-%{version} | |
6851e41a | 101 | %patch0 -p1 |
cb72a6a8 AF |
102 | |
103 | %build | |
104 | %{__gtkdocize} | |
105 | %{__glib_gettextize} | |
106 | %{__intltoolize} | |
107 | %{__libtoolize} | |
108 | %{__aclocal} -I m4 | |
109 | %{__autoconf} | |
110 | %{__autoheader} | |
111 | %{__automake} | |
112 | %configure \ | |
113 | %{?with_apidocs:--enable-gtk-doc} \ | |
114 | --with-html-dir=%{_gtkdocdir} \ | |
115 | --disable-silent-rules | |
116 | ||
117 | %{__make} | |
118 | ||
119 | %install | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %{__make} install \ | |
123 | DESTDIR=$RPM_BUILD_ROOT | |
124 | ||
125 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwnck-1.la | |
126 | ||
127 | %find_lang libwnck | |
128 | ||
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %post -p /sbin/ldconfig | |
133 | %postun -p /sbin/ldconfig | |
134 | ||
135 | %files -f libwnck.lang | |
136 | %defattr(644,root,root,755) | |
137 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README | |
cb72a6a8 AF |
138 | %attr(755,root,root) %{_libdir}/libwnck-1.so.*.*.* |
139 | %attr(755,root,root) %ghost %{_libdir}/libwnck-1.so.22 | |
140 | %{_libdir}/girepository-1.0/Wnck-1.0.typelib | |
141 | ||
8684ad31 AF |
142 | %files tools |
143 | %defattr(644,root,root,755) | |
144 | %attr(755,root,root) %{_bindir}/wnck-urgency-monitor | |
145 | %attr(755,root,root) %{_bindir}/wnckprop | |
146 | ||
cb72a6a8 AF |
147 | %files devel |
148 | %defattr(644,root,root,755) | |
149 | %attr(755,root,root) %{_libdir}/libwnck-1.so | |
150 | %{_includedir}/libwnck-1.0 | |
151 | %{_pkgconfigdir}/libwnck-1.0.pc | |
152 | %{_datadir}/gir-1.0/Wnck-1.0.gir | |
153 | ||
154 | %files static | |
155 | %defattr(644,root,root,755) | |
156 | %{_libdir}/libwnck-1.a | |
157 | ||
158 | %if %{with apidocs} | |
159 | %files apidocs | |
160 | %defattr(644,root,root,755) | |
161 | %{_gtkdocdir}/libwnck | |
162 | %endif |