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