1 |
wally |
273706 |
%define oname wnck |
2 |
blino |
18802 |
|
3 |
wally |
273706 |
%define api 1 |
4 |
|
|
%define major 22 |
5 |
|
|
%define gi_major 1.0 |
6 |
|
|
%define libname %mklibname %{oname} %{api} %{major} |
7 |
|
|
%define devname %mklibname -d %{oname} %{api} |
8 |
|
|
%define girname %mklibname %{oname}-gir %{gi_major} |
9 |
|
|
|
10 |
ovitters |
1709290 |
%define url_ver %{lua: ver = rpm.expand("%{version}"); majmin, count1 = string.gsub(ver, "^([0123456789]+%.[0123456789]+).*", "%1", 1); if count1 == 0 then print(ver); return; end; maj, count2 = string.gsub(majmin, "^([0123456789]+).*", "%1", 1); if count2 == 0 then print(majmin) elseif tonumber(majmin) < 40 then print(majmin) else print(maj) end} |
11 |
wally |
273706 |
|
12 |
|
|
Summary: Libwnck is Window Navigator Construction Kit |
13 |
|
|
Name: libwnck |
14 |
|
|
Version: 2.31.0 |
15 |
umeabot |
1828262 |
Release: %mkrel 14 |
16 |
ovitters |
485133 |
Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
17 |
wally |
273706 |
License: LGPLv2+ |
18 |
danf |
1563697 |
URL: https://www.gnome.org/ |
19 |
wally |
273706 |
Group: System/Libraries |
20 |
|
|
BuildRequires: pkgconfig(libstartup-notification-1.0) >= 0.4 |
21 |
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.16.0 |
22 |
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.13.0 |
23 |
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) |
24 |
|
|
BuildRequires: pkgconfig(gtk+-2.0) >= 2.19.7 |
25 |
|
|
BuildRequires: pkgconfig(xres) |
26 |
|
|
BuildRequires: intltool |
27 |
wally |
1234006 |
BuildRequires: gnome-common |
28 |
blino |
18802 |
|
29 |
|
|
%description |
30 |
|
|
libwnck is Window Navigator Construction Kit, i.e. a library to use |
31 |
|
|
for writing pagers and taskslists and stuff. |
32 |
|
|
|
33 |
|
|
%package -n %{libname} |
34 |
|
|
Summary: %{summary} |
35 |
|
|
Group: %{group} |
36 |
wally |
275782 |
Provides: %{name}-%{api} = %{version}-%{release} |
37 |
wally |
273706 |
Requires: %{name} >= %{version}-%{release} |
38 |
|
|
Conflicts: gir-repository < 0.6.5-9 |
39 |
fwang |
138121 |
Obsoletes: %{_lib}wnck-1_22 < 2.30.7 |
40 |
blino |
18802 |
|
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 |
wally |
273706 |
%package -n %{devname} |
46 |
|
|
Summary: The development files and headers for %{name} |
47 |
blino |
18802 |
Group: Development/GNOME and GTK+ |
48 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
49 |
wally |
275782 |
Provides: %{name}-%{api}-devel = %{version}-%{release} |
50 |
wally |
273706 |
Requires: %{libname} = %{version}-%{release} |
51 |
wally |
847730 |
Requires: %{girname} = %{version}-%{release} |
52 |
blino |
18802 |
Conflicts: %mklibname -d wnck-1_ 4 |
53 |
|
|
Conflicts: %mklibname -d wnck-1_ 16 |
54 |
|
|
Conflicts: %mklibname -d wnck-1_ 18 |
55 |
|
|
Obsoletes: %mklibname -d wnck-1_ 22 |
56 |
fwang |
138121 |
Obsoletes: %{_lib}wnck-1-devel < 2.30.7 |
57 |
wally |
273706 |
Conflicts: gir-repository < 0.6.5-9 |
58 |
blino |
18802 |
|
59 |
wally |
273706 |
%description -n %{devname} |
60 |
|
|
This package contains the development files and headers for %{name}. |
61 |
blino |
18802 |
|
62 |
wally |
273706 |
%package -n %{girname} |
63 |
|
|
Summary: GObject Introspection interface description for %{name} |
64 |
|
|
Group: System/Libraries |
65 |
|
|
Requires: %{libname} = %{version}-%{release} |
66 |
|
|
Conflicts: %{_lib}%{oname}1_22 < 2.31.0-2 |
67 |
|
|
|
68 |
|
|
%description -n %{girname} |
69 |
|
|
GObject Introspection interface description for %{name}. |
70 |
|
|
|
71 |
blino |
18802 |
%prep |
72 |
|
|
%setup -q |
73 |
|
|
|
74 |
|
|
%build |
75 |
wally |
1211918 |
# to recognize aarch64 |
76 |
|
|
autoreconf -vfi |
77 |
|
|
|
78 |
wally |
1479697 |
%configure \ |
79 |
wally |
273706 |
--disable-static \ |
80 |
|
|
--enable-introspection=yes |
81 |
ovitters |
1570841 |
%make_build |
82 |
blino |
18802 |
|
83 |
|
|
%install |
84 |
wally |
1471285 |
%make_install |
85 |
blino |
18802 |
|
86 |
wally |
273706 |
#we don't want these |
87 |
|
|
find %{buildroot} -name '*.la' -delete |
88 |
|
|
|
89 |
dmorgan |
101983 |
# This package is merely compat for gtk2 apps, now. |
90 |
|
|
# The binaries are shipped in libwnck3 |
91 |
wally |
273706 |
rm -f %{buildroot}%{_bindir}/wnckprop |
92 |
|
|
rm -f %{buildroot}%{_bindir}/wnck-urgency-monitor |
93 |
dmorgan |
101983 |
|
94 |
wally |
273706 |
%find_lang %{name} |
95 |
blino |
18802 |
|
96 |
|
|
%files -f %{name}.lang |
97 |
|
|
%doc README AUTHORS |
98 |
|
|
|
99 |
|
|
%files -n %{libname} |
100 |
ovitters |
874307 |
%{_libdir}/%{name}-%{api}.so.%{major}{,.*} |
101 |
blino |
18802 |
|
102 |
wally |
273706 |
%files -n %{girname} |
103 |
|
|
%{_libdir}/girepository-1.0/Wnck-%{gi_major}.typelib |
104 |
blino |
18802 |
|
105 |
wally |
273706 |
%files -n %{devname} |
106 |
|
|
%doc %{_datadir}/gtk-doc/html/%{name}/ |
107 |
|
|
%{_includedir}/%{name}-1.0/ |
108 |
|
|
%{_libdir}/%{name}-%{api}.so |
109 |
|
|
%{_libdir}/pkgconfig/%{name}-1.0.pc |
110 |
|
|
%{_datadir}/gir-1.0/Wnck-%{gi_major}.gir |