/
bamf.spec
119 lines (96 loc) · 3.2 KB
/
bamf.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
%define _empty_manifest_terminate_build 0
%define major 3
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d
%define girname %mklibname %{name}-gir %{major}
Name: bamf
Version: 0.5.5
Release: 2
License: LGPLv3
Summary: Window matching library
Url: http://launchpad.net/bamf
Group: Graphical desktop/Other
Source0: https://launchpad.net/bamf/0.5/%{version}/+download/%{name}-%{version}.tar.xz
#Patch0: bamf-no-gtester2xunit.patch
BuildRequires: gnome-common
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libgtop-2.0)
BuildRequires: pkgconfig(libwnck-3.0)
BuildRequires: vala-devel
BuildRequires: gcc-c++, gcc, gcc-cpp
BuildRequires: python-libxml2
BuildRequires: pkgconfig(gtk-doc)
BuildRequires: pkgconfig(systemd)
BuildRequires: python3dist(lxml)
%description
Bamf matches application windows to desktop files.
%package daemon
Summary: Window matching library - daemon
Group: System/Servers
%description daemon
Bamf matches application windows to desktop files.
This package contains the daemon used by the library and a gio module that
facilitates the matching of applications started through GDesktopAppInfo.
%package -n %{libname}
Summary: Window matching library - shared libraries
Group: System/Libraries
%description -n %{libname}
Bamf matches application windows to desktop files.
This package contains shared libraries to be used by applications.
%package -n %{develname}
Summary: Window matching library - development files
Group: Development/C
Requires: %{name}-daemon = %{EVRD}
Requires: %{libname} = %{EVRD}
%description -n %{develname}
Bamf matches application windows to desktop files.
This package contains files that are needed to build applications.
%package -n %{girname}
Summary: GObject Introspection interface description for %{name}
Group: System/Libraries
Requires: %{libname} = %{version}-%{release}
Obsoletes: %{girname} <= 0.5.4-1
%description -n %{girname}
GObject Introspection interface description for %{name}.
%prep
%setup -q
%autopatch -p1
# fix build with glib >= 2.62
sed -i -e '/CFLAGS/s,-Werror\s\?,,g' configure.ac
%build
#export CC=gcc
#export CXX=g++
export CFLAGS="%{optflags} -Wno-deprecated-declarations"
autoreconf --install
%configure \
--disable-static \
--enable-introspection=yes
%make_build
%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%files daemon
%doc COPYING
%{_datadir}/dbus-1/services/*.service
#{_libexecdir}/bamfdaemon
%{_userunitdir}/bamfdaemon.service
%{_libexecdir}/bamf/bamfdaemon
%{_libexecdir}/bamf/bamfdaemon-dbus-runner
%{_datadir}/upstart/sessions/bamfdaemon.conf
%files -n %{libname}
%doc COPYING
%{_libdir}/libbamf%{major}.so.*
%files -n %{develname}
%doc COPYING
%{_includedir}/libbamf3/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
#{_datadir}/gtk-doc/html/libbamf/
%{_datadir}/gir-1.0/Bamf-%{major}.gir
%{_datadir}/vala/vapi/libbamf3.vapi
%files -n %{girname}
%{_libdir}/girepository-1.0/Bamf-%{major}.typelib