]>
Commit | Line | Data |
---|---|---|
3517adaf JP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | ||
52021eca | 5 | Summary: User interface library |
5dc73daf | 6 | Summary(pl.UTF-8): Biblioteka interfejsu użytkownika |
52021eca | 7 | Name: girara |
7ed038c4 | 8 | Version: 0.4.4 |
53721025 | 9 | Release: 1 |
52021eca JP |
10 | License: BSD-like |
11 | Group: Libraries | |
7ed038c4 JP |
12 | Source0: https://pwmt.org/projects/girara/download/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 085b6593889cb2e302426390d108fd0b | |
52021eca | 14 | URL: http://pwmt.org/projects/girara |
a8049691 | 15 | # C17 |
fa2829cb | 16 | BuildRequires: gcc >= 6:8.1 |
5dc73daf | 17 | BuildRequires: gettext-tools |
7ed038c4 JP |
18 | BuildRequires: glib2-devel >= 1:2.72.0 |
19 | BuildRequires: gtk+3-devel >= 3.24 | |
4ee3adf0 | 20 | BuildRequires: json-glib-devel |
fa2829cb | 21 | BuildRequires: meson >= 0.61 |
05101906 | 22 | BuildRequires: ninja |
7ed038c4 | 23 | BuildRequires: pango-devel >= 1:1.50 |
52021eca | 24 | BuildRequires: pkgconfig |
b8bc3901 | 25 | BuildRequires: rpmbuild(macros) >= 1.736 |
7ed038c4 JP |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
28 | Requires: glib2 >= 1:2.72.0 | |
29 | Requires: gtk+3 >= 3.24 | |
30 | Requires: pango >= 1:1.50 | |
52021eca JP |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | girara is a library that implements a user interface that focuses on | |
35 | simplicity and minimalism. Currently based on GTK+, a cross-platform | |
36 | widget toolkit, it provides an interface that focuses on three main | |
37 | components: A so-called view widget that represents the actual | |
38 | application (e.g. a website (browser), an image (image viewer) or the | |
39 | document (document viewer)), an input bar that is used to execute | |
40 | commands of the application and the status bar which provides the user | |
41 | with current information. girara was designed to replace and enhance | |
42 | the user interface that is used by zathura and jumanji and other | |
43 | features that those applications share. | |
44 | ||
5dc73daf JB |
45 | %description -l pl.UTF-8 |
46 | girara to biblioteka implementująca interfejs użytkownika skupiający | |
47 | się na prostocie i minimalizmie. Obecnie jest oparty na GTK+ - | |
48 | wieloplatformowym toolkicie widgetów - zapewnia interfejs o trzech | |
49 | głównych komponentach: tzw. widgecie widoku, reprezentującym właściwą | |
50 | aplikację (np. stronę dla przeglądarki WWW, obraz dla przeglądarki | |
51 | obrazków czy dokument dla przeglądarki dokumentów), pasku wprowadzania | |
52 | służącym do wydawania poleceń oraz pasku stanu udostępniającym | |
53 | użytkownikowi aktualne informacje. girara została zaprojektowana w | |
54 | celu zastąpienia i rozszerzenia interfejsu użytkownika używanego przez | |
55 | aplikacje zathura i jumanji, a także innych funkcji dzielonych przez | |
56 | te aplikacje. | |
57 | ||
52021eca JP |
58 | %package devel |
59 | Summary: Header files for girara library | |
5dc73daf | 60 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki girara |
52021eca JP |
61 | Group: Development/Libraries |
62 | Requires: %{name} = %{version}-%{release} | |
7ed038c4 JP |
63 | Requires: glib2-devel >= 1:2.72.0 |
64 | Requires: gtk+3-devel >= 3.24 | |
4ee3adf0 | 65 | Requires: json-glib-devel |
7ed038c4 | 66 | Requires: pango-devel >= 1:1.50 |
52021eca JP |
67 | |
68 | %description devel | |
69 | Header files for girara library. | |
70 | ||
5dc73daf JB |
71 | %description devel -l pl.UTF-8 |
72 | Pliki nagłówkowe biblioteki girara. | |
73 | ||
93954686 | 74 | %package static |
5dc73daf JB |
75 | Summary: Girara static library |
76 | Summary(pl.UTF-8): Statyczna biblioteka girara | |
93954686 JP |
77 | Group: Development/Libraries |
78 | Requires: %{name}-devel = %{version}-%{release} | |
79 | ||
80 | %description static | |
5dc73daf JB |
81 | Girara static library. |
82 | ||
83 | %description static -l pl.UTF-8 | |
84 | Statyczna biblioteka girara. | |
93954686 | 85 | |
52021eca JP |
86 | %prep |
87 | %setup -q | |
88 | ||
89 | %build | |
5dc73daf | 90 | %meson build \ |
7ed038c4 | 91 | %{!?with_static_libs:--default-library=shared} |
5dc73daf | 92 | |
b8bc3901 | 93 | %ninja_build -C build |
52021eca JP |
94 | |
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
b8bc3901 | 98 | %ninja_install -C build |
52021eca | 99 | |
b8bc3901 JB |
100 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fa_IR,fa} |
101 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{uk_UA,uk} | |
53721025 | 102 | |
7ed038c4 | 103 | %find_lang libgirara-gtk3-4 |
52021eca JP |
104 | |
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %post -p /sbin/ldconfig | |
109 | %postun -p /sbin/ldconfig | |
110 | ||
7ed038c4 | 111 | %files -f libgirara-gtk3-4.lang |
52021eca | 112 | %defattr(644,root,root,755) |
cf9b7dd8 | 113 | %doc AUTHORS LICENSE README.md |
c6b49777 | 114 | %attr(755,root,root) %{_libdir}/libgirara-gtk3.so.*.* |
7ed038c4 | 115 | %attr(755,root,root) %ghost %{_libdir}/libgirara-gtk3.so.4 |
52021eca JP |
116 | |
117 | %files devel | |
118 | %defattr(644,root,root,755) | |
c6b49777 | 119 | %attr(755,root,root) %{_libdir}/libgirara-gtk3.so |
52021eca | 120 | %{_includedir}/girara |
c6b49777 | 121 | %{_pkgconfigdir}/girara-gtk3.pc |
93954686 | 122 | |
3517adaf | 123 | %if %{with static_libs} |
93954686 JP |
124 | %files static |
125 | %defattr(644,root,root,755) | |
126 | %{_libdir}/libgirara-gtk3.a | |
3517adaf | 127 | %endif |