]>
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 |
7b32c84e AG |
5 | %define gitref ba04b1ee9c63cbd50ea0ac9211fad881a0724361 |
6 | %define snap 20190322 | |
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 |
7b32c84e | 11 | # Source0-md5: 5a2009b7431e6baeb067cce61851833f |
298c0066 JB |
12 | Patch0: %{name}-mm.patch |
13 | Patch1: %{name}-format.patch | |
14 | URL: https://github.com/hodefoting/mrg/ | |
15 | BuildRequires: SDL-devel >= 1.2 | |
a4a118a9 | 16 | BuildRequires: alsa-lib-devel |
298c0066 | 17 | BuildRequires: cairo-devel |
ed66c8d8 | 18 | BuildRequires: mmm-devel >= 0-0.20171127.1 |
298c0066 JB |
19 | BuildRequires: gtk+3-devel >= 3.0 |
20 | BuildRequires: pkgconfig | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Immediate UI framework with cairo. Also a minimal usable graphical | |
25 | user environment built using the framework, including: a shell/host | |
26 | for client programs, a terminal emulator, file browser and text editor | |
27 | written using the library. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Pośredni szkielet interfejsu użytkownika wykorzystujący cairo. Zawiera | |
31 | także zbudowane przy użyciu tego szkieletu minimalne używalne | |
32 | graficzne środowisko użytkownika, zawierające: powłokę/hosta dla | |
33 | programów klienckich, emulator terminala, przeglądarkę plików oraz | |
34 | edytor tekstu. | |
35 | ||
36 | %package libs | |
37 | Summary: Shared mrg library | |
38 | Summary(pl.UTF-8): Biblioteka współdzielona mrg | |
39 | Group: Libraries | |
40 | ||
41 | %description libs | |
42 | Shared mrg library. | |
43 | ||
44 | %description libs -l pl.UTF-8 | |
45 | Biblioteka współdzielona mrg. | |
46 | ||
47 | %package devel | |
48 | Summary: Header files for mrg library | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki mrg | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-libs = %{version}-%{release} | |
a4a118a9 | 52 | Requires: alsa-lib-devel |
298c0066 | 53 | Requires: cairo-devel |
ed66c8d8 | 54 | Requires: mmm-devel >= 0-0.20171127.1 |
298c0066 JB |
55 | Requires: gtk+3-devel >= 3.0 |
56 | ||
57 | %description devel | |
58 | Header files for mrg library. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe biblioteki mrg. | |
62 | ||
63 | %package static | |
64 | Summary: Static mrg library | |
65 | Summary(pl.UTF-8): Statyczna biblioteka mrg | |
66 | Group: Development/Libraries | |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | ||
69 | %description static | |
70 | Static mrg library. | |
71 | ||
72 | %description static -l pl.UTF-8 | |
73 | Statyczna biblioteka mrg. | |
74 | ||
75 | %prep | |
4c2e9ab8 | 76 | %setup -q -n %{name}-%{gitref} |
298c0066 JB |
77 | %patch0 -p1 |
78 | %patch1 -p1 | |
79 | ||
80 | %build | |
81 | # not autoconf configure | |
82 | ./configure \ | |
83 | CFLAGS="%{rpmcflags} -std=gnu99"\ | |
84 | --prefix=%{_prefix} \ | |
85 | --libdir=%{_libdir} | |
86 | %{__make} \ | |
87 | CC="%{__cc}" \ | |
88 | LD="%{__cc}" \ | |
89 | LD_FLAGS="%{rpmldflags}" | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
3a1e2ac3 | 94 | %{__make} -j1 install \ |
298c0066 JB |
95 | DESTDIR=$RPM_BUILD_ROOT |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post libs -p /sbin/ldconfig | |
101 | %postun libs -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
105 | %doc README.md | |
106 | %attr(755,root,root) %{_bindir}/mrg | |
107 | %attr(755,root,root) %{_bindir}/mrg-browser | |
108 | %attr(755,root,root) %{_bindir}/mrg-edit | |
109 | %attr(755,root,root) %{_bindir}/mrg-host | |
110 | %attr(755,root,root) %{_bindir}/mrg-terminal | |
111 | ||
112 | %files libs | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/libmrg.so | |
115 | ||
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
118 | %{_includedir}/mrg | |
119 | %{_pkgconfigdir}/mrg.pc | |
120 | ||
121 | %files static | |
122 | %defattr(644,root,root,755) | |
123 | %{_libdir}/libmrg.a |