]>
Commit | Line | Data |
---|---|---|
8845ef35 JB |
1 | # |
2 | # Conditional build: | |
d00a2fb5 | 3 | %bcond_without apidocs # disable gtk-doc |
1a73c5a6 | 4 | %bcond_without static_libs # don't build static library |
8845ef35 | 5 | # |
25f99619 | 6 | Summary: General Window Manager interfacing for GNOME utilities |
58cc8c11 | 7 | Summary(pl.UTF-8): Interfejs General Window Manager dla narzędzi GNOME |
1b76d095 | 8 | Name: libwnck |
06b8058c | 9 | Version: 3.4.4 |
93ca6d3b | 10 | Release: 1 |
d11cec32 | 11 | License: LGPL v2+ |
9aaa0147 | 12 | Group: X11/Libraries |
ea706463 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libwnck/3.4/%{name}-%{version}.tar.xz |
06b8058c | 14 | # Source0-md5: c5c0e7793c887037210ad8e9fc557522 |
bf0d51cb | 15 | BuildRequires: autoconf >= 2.62 |
ea706463 | 16 | BuildRequires: automake >= 1:1.11 |
346002d9 | 17 | BuildRequires: docbook-dtd412-xml |
869f5d08 | 18 | BuildRequires: gdk-pixbuf2-devel |
93ca6d3b | 19 | BuildRequires: gettext-devel |
c6db88ce | 20 | BuildRequires: glib2-devel >= 1:2.32.0 |
d923d15e | 21 | BuildRequires: gnome-common >= 2.20.0 |
d9fe1478 | 22 | BuildRequires: gobject-introspection-devel >= 0.6.14 |
c6db88ce | 23 | BuildRequires: gtk+3-devel >= 3.4.0 |
d923d15e | 24 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} |
8abf27fc | 25 | BuildRequires: gtk-doc-automake >= 1.9 |
1a73c5a6 ŁK |
26 | BuildRequires: intltool >= 0.40.6 |
27 | BuildRequires: libtool >= 2:2.2.6 | |
f460f05c | 28 | BuildRequires: pkgconfig |
2f0833bb | 29 | BuildRequires: startup-notification-devel >= 0.8 |
1a73c5a6 | 30 | BuildRequires: tar >= 1:1.22 |
869f5d08 | 31 | BuildRequires: xorg-lib-libX11-devel |
93ca6d3b | 32 | BuildRequires: xorg-lib-libXres-devel |
1a73c5a6 | 33 | BuildRequires: xz |
13269ca7 MB |
34 | # sr@Latn vs. sr@latin |
35 | Conflicts: glibc-misc < 6:2.7 | |
c21a1818 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a21706af | 37 | |
a21706af | 38 | %description |
25f99619 | 39 | General Window Manager interfacing for GNOME utilities. This library |
40 | is a part of the GNOME 2 platform. | |
a21706af | 41 | |
fb9c68a2 JR |
42 | %description -l pl.UTF-8 |
43 | Ogólny interfejs zarządcy okien dla narzędzi GNOME. Ta biblioteka jest | |
44 | częścią platformy GNOME 2. | |
1b76d095 | 45 | |
e177a940 AF |
46 | %package tools |
47 | Summary: Small tools to manage windows | |
8abf27fc | 48 | Summary(pl.UTF-8): Małe narzędzia do zarządzania oknami |
e177a940 AF |
49 | Group: X11/Window Managers/Tools |
50 | Requires: %{name} = %{version}-%{release} | |
51 | ||
52 | %description tools | |
53 | Small tools to manage windows. | |
54 | ||
8abf27fc JB |
55 | %description tools -l pl.UTF-8 |
56 | Małe narzędzia do zarządzania oknami. | |
57 | ||
a21706af | 58 | %package devel |
59 | Summary: Header files and documentation for libwnck | |
58cc8c11 | 60 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja dla libwnck |
a21706af | 61 | Group: X11/Development/Libraries |
0e1010bf | 62 | Requires: %{name} = %{version}-%{release} |
c6db88ce ŁK |
63 | Requires: glib2-devel >= 1:2.32.0 |
64 | Requires: gtk+3-devel >= 3.4.0 | |
2f0833bb | 65 | Requires: startup-notification-devel >= 0.8 |
8abf27fc | 66 | Requires: xorg-lib-libX11-devel |
ade20dfb | 67 | Requires: xorg-lib-libXres-devel |
a21706af | 68 | |
69 | %description devel | |
70 | Header, docs and development libraries for libwnck. | |
71 | ||
fb9c68a2 JR |
72 | %description devel -l pl.UTF-8 |
73 | Pliki nagłówkowe i dokumentacja do libwnck. | |
1b76d095 | 74 | |
a21706af | 75 | %package static |
76 | Summary: Static libwnck libraries | |
58cc8c11 | 77 | Summary(pl.UTF-8): Statyczne biblioteki libwnck |
a21706af | 78 | Group: X11/Development/Libraries |
0e1010bf | 79 | Requires: %{name}-devel = %{version}-%{release} |
a21706af | 80 | |
81 | %description static | |
82 | Static version of libwnck libraries. | |
83 | ||
fb9c68a2 | 84 | %description static -l pl.UTF-8 |
a21706af | 85 | Statyczna wersja bibliotek libwnck. |
86 | ||
c8b6200a | 87 | %package apidocs |
88 | Summary: libwnck API documentation | |
58cc8c11 | 89 | Summary(pl.UTF-8): Dokumentacja API libwnck |
c8b6200a | 90 | Group: Documentation |
91 | Requires: gtk-doc-common | |
92 | ||
93 | %description apidocs | |
94 | libwnck API documentation. | |
95 | ||
fb9c68a2 | 96 | %description apidocs -l pl.UTF-8 |
c8b6200a | 97 | Dokumentacja API libwnck. |
98 | ||
a21706af | 99 | %prep |
100 | %setup -q | |
bf0d51cb | 101 | |
a21706af | 102 | %build |
a9a958ca | 103 | %{__gtkdocize} |
0703a452 | 104 | %{__glib_gettextize} |
d3e5101e | 105 | %{__intltoolize} |
6a5493b3 | 106 | %{__libtoolize} |
fd6b79a2 | 107 | %{__aclocal} -I m4 |
6a5493b3 | 108 | %{__autoconf} |
d923d15e | 109 | %{__autoheader} |
6a5493b3 | 110 | %{__automake} |
9766d031 | 111 | %configure \ |
1a73c5a6 | 112 | %{__enable_disable apidocs gtk-doc} \ |
bf0d51cb | 113 | --with-html-dir=%{_gtkdocdir} \ |
1a73c5a6 | 114 | %{__enable_disable static_libs static} \ |
bf0d51cb | 115 | --disable-silent-rules |
9ce82679 | 116 | |
a21706af | 117 | %{__make} |
118 | ||
119 | %install | |
120 | rm -rf $RPM_BUILD_ROOT | |
f460f05c | 121 | |
a21706af | 122 | %{__make} install \ |
d8549a8d | 123 | DESTDIR=$RPM_BUILD_ROOT |
a21706af | 124 | |
869f5d08 MB |
125 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwnck-3.la |
126 | ||
127 | %find_lang %{name}-3.0 | |
a21706af | 128 | |
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
1b76d095 JB |
132 | %post -p /sbin/ldconfig |
133 | %postun -p /sbin/ldconfig | |
a21706af | 134 | |
869f5d08 | 135 | %files -f %{name}-3.0.lang |
a21706af | 136 | %defattr(644,root,root,755) |
0703a452 | 137 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
869f5d08 MB |
138 | %attr(755,root,root) %{_libdir}/libwnck-3.so.*.*.* |
139 | %attr(755,root,root) %ghost %{_libdir}/libwnck-3.so.0 | |
140 | %{_libdir}/girepository-1.0/Wnck-3.0.typelib | |
a21706af | 141 | |
e177a940 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 | ||
a21706af | 147 | %files devel |
148 | %defattr(644,root,root,755) | |
869f5d08 MB |
149 | %attr(755,root,root) %{_libdir}/libwnck-3.so |
150 | %{_includedir}/libwnck-3.0 | |
151 | %{_pkgconfigdir}/libwnck-3.0.pc | |
152 | %{_datadir}/gir-1.0/Wnck-3.0.gir | |
a21706af | 153 | |
1a73c5a6 | 154 | %if %{with static_libs} |
a21706af | 155 | %files static |
156 | %defattr(644,root,root,755) | |
869f5d08 | 157 | %{_libdir}/libwnck-3.a |
1a73c5a6 | 158 | %endif |
c8b6200a | 159 | |
160 | %if %{with apidocs} | |
161 | %files apidocs | |
162 | %defattr(644,root,root,755) | |
869f5d08 | 163 | %{_gtkdocdir}/libwnck-3.0 |
c8b6200a | 164 | %endif |