/[packages]/cauldron/libwnck/current/SPECS/libwnck.spec
ViewVC logotype

Contents of /cauldron/libwnck/current/SPECS/libwnck.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1828262 - (show annotations) (download)
Sat Mar 26 19:04:53 2022 UTC (2 years ago) by umeabot
File size: 3383 byte(s)
Mageia 9 Mass Rebuild
1 %define oname wnck
2
3 %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 %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
12 Summary: Libwnck is Window Navigator Construction Kit
13 Name: libwnck
14 Version: 2.31.0
15 Release: %mkrel 14
16 Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
17 License: LGPLv2+
18 URL: https://www.gnome.org/
19 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 BuildRequires: gnome-common
28
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 Provides: %{name}-%{api} = %{version}-%{release}
37 Requires: %{name} >= %{version}-%{release}
38 Conflicts: gir-repository < 0.6.5-9
39 Obsoletes: %{_lib}wnck-1_22 < 2.30.7
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 %{devname}
46 Summary: The development files and headers for %{name}
47 Group: Development/GNOME and GTK+
48 Provides: %{name}-devel = %{version}-%{release}
49 Provides: %{name}-%{api}-devel = %{version}-%{release}
50 Requires: %{libname} = %{version}-%{release}
51 Requires: %{girname} = %{version}-%{release}
52 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 Obsoletes: %{_lib}wnck-1-devel < 2.30.7
57 Conflicts: gir-repository < 0.6.5-9
58
59 %description -n %{devname}
60 This package contains the development files and headers for %{name}.
61
62 %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 %prep
72 %setup -q
73
74 %build
75 # to recognize aarch64
76 autoreconf -vfi
77
78 %configure \
79 --disable-static \
80 --enable-introspection=yes
81 %make_build
82
83 %install
84 %make_install
85
86 #we don't want these
87 find %{buildroot} -name '*.la' -delete
88
89 # This package is merely compat for gtk2 apps, now.
90 # The binaries are shipped in libwnck3
91 rm -f %{buildroot}%{_bindir}/wnckprop
92 rm -f %{buildroot}%{_bindir}/wnck-urgency-monitor
93
94 %find_lang %{name}
95
96 %files -f %{name}.lang
97 %doc README AUTHORS
98
99 %files -n %{libname}
100 %{_libdir}/%{name}-%{api}.so.%{major}{,.*}
101
102 %files -n %{girname}
103 %{_libdir}/girepository-1.0/Wnck-%{gi_major}.typelib
104
105 %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

  ViewVC Help
Powered by ViewVC 1.1.30