This repository has been archived by the owner on Aug 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
wlroots.spec
181 lines (135 loc) · 5.08 KB
/
wlroots.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
%global commit 0.2
%global gitdate %{nil}
%global gitrel %{nil}
%global gitver %{nil}
# Keep the below around for possible snapshot times (was a must prior to 0.1)
#global scommit #(c=#{commit}; echo ${c:0:7})
#global gitrel .#{gitdate}git#{scommit}
#global gitver -#{gitdate}git#{scommit}
%global api_ver 0
Name: wlroots
Version: 0.2
Release: 1%{?gitrel}%{?dist}
Summary: A modular Wayland compositor library
# All files in the sources are licensed as MIT, but
# - LGPL (v2.1 or later)
# * protocol/idle.xml
# * protocol/server-decoration.xml
# - NTP (legal disclaimer)
# * protocol/gamma-control.xml
# * protocol/text-input-unstable-v3.xml
# * protocol/wlr-gamma-control-unstable-v1.xml
# * protocol/wlr-input-inhibitor-unstable-v1.xml
# * protocol/wlr-layer-shell-unstable-v1.xml
#
# Those files are processed to c-compilable files by the
# `wayland-scanner` binary during build and don't alter the
# main license of the binaries linking with them by the
# underlying licenses.
License: MIT
URL: https://github.com/swaywm/%{name}
Source0: %{url}/archive/%{commit}.tar.gz#/%{name}-%{version}%{?gitver}.tar.gz
#Patch0: %{url}/commit/be6210cf8216c08a91e085dac0ec11d0e34fb217.patch#/pkgconfig_version.patch
BuildRequires: gcc
BuildRequires: libcap-devel
BuildRequires: libinput-devel
BuildRequires: libpng
BuildRequires: libxkbcommon-devel
BuildRequires: mesa-libEGL-devel
BuildRequires: mesa-libGLES-devel
BuildRequires: mesa-libgbm-devel
BuildRequires: mesa-libwayland-egl-devel
BuildRequires: meson
BuildRequires: pixman-devel
BuildRequires: systemd-devel
BuildRequires: wayland-devel >= 1.16
BuildRequires: wayland-protocols-devel >= 1.15
BuildRequires: xcb-util-image-devel
BuildRequires: xcb-util-wm-devel
# patch application
BuildRequires: git
Requires: libwayland-client >= 1.16
Requires: libwayland-server >= 1.16
Requires: libwayland-egl >= 1.16
%description
%{summary}.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} == %{version}-%{release}
Requires: libinput-devel%{?_isa}
Requires: libxcb-devel%{?_isa}
Requires: libxkbcommon-devel%{?_isa}
Requires: mesa-libEGL-devel%{?_isa}
Requires: pixman-devel%{?_isa}
Requires: systemd-devel%{?_isa}
Requires: wayland-devel%{?_isa} >= 1.16
Requires: xcb-util-wm-devel%{?_isa}
%description devel
Development files for %{name}.
%prep
%define __scm git_am
%autosetup -n %{name}-%{commit} -p 1
%build
# Needed since xcb-errors is not packaged (yet?)
%global __meson_auto_features auto
%ifarch %{arm} %{ix86}
export CFLAGS="%{optflags} -Wno-error=format="
export CXXFLAGS="%{optflags} -Wno-error=format="
%endif
%meson
%meson_build
%install
%meson_install
# %%doc && examples.
%{__mkdir} -p %{buildroot}%{_pkgdocdir}
%{__cp} -pr README.md examples %{buildroot}%{_pkgdocdir}
# Cleanup.
for f in '.*ignore*' meson.build; do
%{_bindir}/find %{buildroot} -type f -name "$f" -print -delete
done
%check
%meson_test
# Needed only for < F28
%ldconfig_scriptlets
%files
%doc %dir %{_pkgdocdir}
%doc %{_pkgdocdir}/README.md
%license LICENSE
%{_libdir}/lib%{name}.so.%{api_ver}*
%files devel
%doc %{_pkgdocdir}/examples
%{_includedir}/wlr
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Tue Dec 04 2018 Jerzy Drozdz <[email protected]> - 0.2-1
- Update to upstream
* Thu Nov 22 2018 Jerzy Drozdz <[email protected]> - 0.1-2.1
- Added dependecies for Fedora28
* Wed Nov 07 2018 Jan Pokorny <[email protected]> - 0.1-2
- Fix incorrect "pkgconfig" version
* Wed Oct 31 2018 Jan Pokorny <[email protected]> - 0.1-1
- Updated to historically first official release
- Turned off implicit enablement of all 'auto' build features under Meson,
since xcb-errors is not available at this time
- Added BR: libpng
- Expanding spec comment on source files not covered with MIT license
* Sat Jul 14 2018 Fedora Release Engineering <[email protected]> - 0.0.1-0.9.20180106git03faf17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <[email protected]> - 0.0.1-0.8.20180106git03faf17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sat Jan 13 2018 Björn Esser <[email protected]> - 0.0.1-0.7.20180106git03faf17
- Updated snapshot
* Wed Jan 03 2018 Björn Esser <[email protected]> - 0.0.1-0.6.20180102git767df15
- Initial import (#1529352)
* Wed Jan 03 2018 Björn Esser <[email protected]> - 0.0.1-0.5.20180102git767df15
- Updated snapshot
* Sun Dec 31 2017 Björn Esser <[email protected]> - 0.0.1-0.4.20171229git80ed4d4
- Add licensing clarification
- Add BR: gcc
* Sat Dec 30 2017 Björn Esser <[email protected]> - 0.0.1-0.3.20171229git80ed4d4
- Updated snapshot
* Wed Dec 27 2017 Björn Esser <[email protected]> - 0.0.1-0.2.20171227giteeb7cd8
- Optimize spec-file
* Wed Dec 27 2017 Björn Esser <[email protected]> - 0.0.1-0.1.20171227giteeb7cd8
- Initial rpm release (#1529352)