]>
Commit | Line | Data |
---|---|---|
298c0066 JB |
1 | Summary: Microraptor GUI |
2 | Summary(pl.UTF-8): Microraptor GUI - graficzny interfejs użytkownika | |
3 | Name: mrg | |
ed66c8d8 | 4 | Version: 0.1.2 |
7a7307fd JB |
5 | %define gitref ae40b7150f5e050469727641767c253214210114 |
6 | %define snap 20190916 | |
4c2e9ab8 | 7 | Release: 1.%{snap}.1 |
298c0066 JB |
8 | License: LGPL v2+ |
9 | Group: Libraries | |
4c2e9ab8 | 10 | Source0: https://github.com/hodefoting/mrg/archive/%{gitref}/%{name}-%{snap}.tar.gz |
7a7307fd | 11 | # Source0-md5: 9ba3ffbae7965e77c2e0dd8099f8d97e |
298c0066 JB |
12 | Patch1: %{name}-format.patch |
13 | URL: https://github.com/hodefoting/mrg/ | |
14 | BuildRequires: SDL-devel >= 1.2 | |
a4a118a9 | 15 | BuildRequires: alsa-lib-devel |
298c0066 | 16 | BuildRequires: cairo-devel |
7a7307fd JB |
17 | BuildRequires: meson >= 0.50.0 |
18 | BuildRequires: ninja >= 1.5 | |
19 | BuildRequires: mmm-devel >= 0-0.20191113.1 | |
298c0066 JB |
20 | BuildRequires: gtk+3-devel >= 3.0 |
21 | BuildRequires: pkgconfig | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Immediate UI framework with cairo. Also a minimal usable graphical | |
26 | user environment built using the framework, including: a shell/host | |
27 | for client programs, a terminal emulator, file browser and text editor | |
28 | written using the library. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Pośredni szkielet interfejsu użytkownika wykorzystujący cairo. Zawiera | |
32 | także zbudowane przy użyciu tego szkieletu minimalne używalne | |
33 | graficzne środowisko użytkownika, zawierające: powłokę/hosta dla | |
34 | programów klienckich, emulator terminala, przeglądarkę plików oraz | |
35 | edytor tekstu. | |
36 | ||
37 | %package libs | |
38 | Summary: Shared mrg library | |
39 | Summary(pl.UTF-8): Biblioteka współdzielona mrg | |
40 | Group: Libraries | |
7a7307fd | 41 | Requires: mmm-libs >= 0-0.20191113.1 |
298c0066 JB |
42 | |
43 | %description libs | |
44 | Shared mrg library. | |
45 | ||
46 | %description libs -l pl.UTF-8 | |
47 | Biblioteka współdzielona mrg. | |
48 | ||
49 | %package devel | |
50 | Summary: Header files for mrg library | |
51 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki mrg | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-libs = %{version}-%{release} | |
a4a118a9 | 54 | Requires: alsa-lib-devel |
298c0066 | 55 | Requires: cairo-devel |
7a7307fd | 56 | Requires: mmm-devel >= 0-0.20191113.1 |
298c0066 JB |
57 | Requires: gtk+3-devel >= 3.0 |
58 | ||
59 | %description devel | |
60 | Header files for mrg library. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe biblioteki mrg. | |
64 | ||
65 | %package static | |
66 | Summary: Static mrg library | |
67 | Summary(pl.UTF-8): Statyczna biblioteka mrg | |
68 | Group: Development/Libraries | |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description static | |
72 | Static mrg library. | |
73 | ||
74 | %description static -l pl.UTF-8 | |
75 | Statyczna biblioteka mrg. | |
76 | ||
77 | %prep | |
4c2e9ab8 | 78 | %setup -q -n %{name}-%{gitref} |
298c0066 JB |
79 | %patch1 -p1 |
80 | ||
81 | %build | |
7a7307fd JB |
82 | %meson build |
83 | ||
84 | %ninja_build -C build | |
298c0066 JB |
85 | |
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
7a7307fd | 89 | %ninja_install -C build |
298c0066 JB |
90 | |
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post libs -p /sbin/ldconfig | |
95 | %postun libs -p /sbin/ldconfig | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
99 | %doc README.md | |
100 | %attr(755,root,root) %{_bindir}/mrg | |
298c0066 JB |
101 | |
102 | %files libs | |
103 | %defattr(644,root,root,755) | |
104 | %attr(755,root,root) %{_libdir}/libmrg.so | |
105 | ||
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
7a7307fd | 108 | %{_includedir}/mrg-0.0 |
298c0066 JB |
109 | %{_pkgconfigdir}/mrg.pc |
110 | ||
111 | %files static | |
112 | %defattr(644,root,root,755) | |
113 | %{_libdir}/libmrg.a |