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