1 |
%define api_version 1 |
2 |
%define lib_major 22 |
3 |
%define startup_notification_version 0.4 |
4 |
%define libname %mklibname wnck- %{api_version} %{lib_major} |
5 |
%define libnamedev %mklibname -d wnck- %{api_version} |
6 |
|
7 |
Summary: Libwnck is Window Navigator Construction Kit |
8 |
Name: libwnck |
9 |
Version: 2.30.6 |
10 |
Release: %mkrel 5 |
11 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2 |
12 |
Patch: libwnck-2.27.4-linking.patch |
13 |
License: LGPLv2+ |
14 |
URL: http://www.gnome.org/ |
15 |
Group: System/Libraries |
16 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
17 |
BuildRequires: gtk+2-devel >= 2.19.7 |
18 |
BuildRequires: startup-notification-devel >= %{startup_notification_version} |
19 |
BuildRequires: gobject-introspection-devel |
20 |
BuildRequires: gtk-doc |
21 |
BuildRequires: intltool |
22 |
BuildRequires: gnome-common |
23 |
|
24 |
#ugly stuff to update old libwnck |
25 |
Obsoletes: %{name}-1_1 |
26 |
Provides: %{name}-1_1 |
27 |
|
28 |
%description |
29 |
libwnck is Window Navigator Construction Kit, i.e. a library to use |
30 |
for writing pagers and taskslists and stuff. |
31 |
|
32 |
%package -n %{libname} |
33 |
Summary: %{summary} |
34 |
Group: %{group} |
35 |
|
36 |
Provides: %{name}-%{api_version} = %{version}-%{release} |
37 |
Requires: %{name} >= %{version} |
38 |
Requires: libstartup-notification-1 >= %{startup_notification_version} |
39 |
Conflicts: gir-repository < 0.6.5-9 |
40 |
|
41 |
%description -n %{libname} |
42 |
libwnck is Window Navigator Construction Kit, i.e. a library to use |
43 |
for writing pagers and taskslists and stuff. |
44 |
|
45 |
%package -n %{libnamedev} |
46 |
Summary: Static libraries, include files for libwnck |
47 |
Group: Development/GNOME and GTK+ |
48 |
Provides: %{name}-devel = %{version}-%{release} |
49 |
Provides: %{name}-%{api_version}-devel = %{version}-%{release} |
50 |
Requires: %{libname} = %{version} |
51 |
Requires: gtk+2-devel >= 2.1 |
52 |
Requires: startup-notification-devel >= %{startup_notification_version} |
53 |
Conflicts: %mklibname -d wnck-1_ 4 |
54 |
Conflicts: %mklibname -d wnck-1_ 16 |
55 |
Conflicts: %mklibname -d wnck-1_ 18 |
56 |
Obsoletes: %mklibname -d wnck-1_ 22 |
57 |
Conflicts: gir-repository < 0.6.5-9 |
58 |
|
59 |
%description -n %{libnamedev} |
60 |
libwnck is Window Navigator Construction Kit, i.e. a library to use |
61 |
for writing pagers and taskslists and stuff. |
62 |
|
63 |
%prep |
64 |
%setup -q |
65 |
#%patch -p1 |
66 |
#autoconf |
67 |
|
68 |
%build |
69 |
|
70 |
%configure2_5x --disable-static --enable-introspection |
71 |
|
72 |
%make |
73 |
|
74 |
%install |
75 |
rm -rf $RPM_BUILD_ROOT |
76 |
|
77 |
%makeinstall_std |
78 |
rm -rf %buildroot%_datadir/locale/{io,be@latin,bn_IN,si,uz@cyrillic} |
79 |
%{find_lang} %{name} |
80 |
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
81 |
|
82 |
# This package is merely compat for gtk2 apps, now. |
83 |
# The binaries are shipped in libwnck3 |
84 |
rm -f $RPM_BUILD_ROOT%{_bindir}/wnckprop |
85 |
rm -f $RPM_BUILD_ROOT%{_bindir}/wnck-urgency-monitor |
86 |
|
87 |
%clean |
88 |
rm -rf $RPM_BUILD_ROOT |
89 |
|
90 |
%files -f %{name}.lang |
91 |
%defattr(-,root,root) |
92 |
%doc README AUTHORS |
93 |
|
94 |
%files -n %{libname} |
95 |
%defattr(-,root,root) |
96 |
%{_libdir}/libwnck-%{api_version}.so.%{lib_major}* |
97 |
%_libdir/girepository-1.0/Wnck-1.0.typelib |
98 |
|
99 |
%files -n %{libnamedev} |
100 |
%defattr(-,root,root) |
101 |
%doc ChangeLog |
102 |
%doc %_datadir/gtk-doc/html/libwnck |
103 |
%{_includedir}/* |
104 |
%{_libdir}/*.so |
105 |
%{_libdir}/pkgconfig/* |
106 |
%_datadir/gir-1.0/Wnck-1.0.gir |
107 |
|
108 |
|
109 |
|