]>
Commit | Line | Data |
---|---|---|
00a35187 KM |
1 | Summary: A simple font management application for Gtk+ Desktop Environments |
2 | Summary(pl.UTF-8): Prosty manager czcionek dla środowisk graficznych opartych na Gtk+ | |
3 | Name: font-manager | |
4 | Version: 0.8.7 | |
5 | Release: 1 | |
6 | License: GPL-3.0-or-later | |
7 | URL: https://fontmanager.github.io/ | |
8 | Source0: https://github.com/FontManager/font-manager/archive/refs/tags/%{version}.tar.gz | |
9 | Patch0: %{name}-fix-gcc11-compilation.patch | |
10 | BuildRequires: Thunar-devel | |
11 | BuildRequires: appstream-glib | |
12 | BuildRequires: cinnamon-nemo-devel | |
13 | BuildRequires: fontconfig-devel | |
14 | BuildRequires: freetype-devel | |
15 | BuildRequires: gettext | |
16 | BuildRequires: glib2-devel >= 2.44 | |
17 | BuildRequires: gobject-introspection-devel | |
18 | BuildRequires: gtk+3-devel >= 3.22 | |
19 | BuildRequires: gtk-webkit4-devel >= 2.13.90 | |
20 | BuildRequires: json-glib-devel | |
21 | BuildRequires: libsoup-devel | |
22 | BuildRequires: libxml2-devel | |
23 | BuildRequires: meson | |
24 | BuildRequires: nautilus-devel | |
25 | BuildRequires: pango-devel | |
26 | BuildRequires: pkgconfig | |
27 | BuildRequires: sqlite3-devel | |
28 | BuildRequires: vala >= 0.42 | |
29 | BuildRequires: yelp-tools | |
30 | Requires: %{name}-common | |
31 | Requires: font-viewer | |
32 | Requires: fontconfig | |
33 | Requires: gtk-webkit4 | |
34 | ||
35 | %description | |
36 | Font Manager is intended to provide a way for average users to easily | |
37 | manage desktop fonts, without having to resort to command line tools | |
38 | or editing configuration files by hand. While designed primarily with | |
39 | the Gnome Desktop Environment in mind, it should work well with other | |
40 | Gtk+ desktop environments. | |
41 | ||
42 | Font Manager is NOT a professional-grade font management solution. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Font Manager ma na celu umożliwienie przeciętnym użytkownikom łatwego | |
46 | zarządzania czcionkami w środowisku graficznym bez konieczności | |
47 | uciekania się do narzędzi wiersza poleceń lub ręcznego edytowania | |
48 | plików konfiguracyjnych. Chociaż zaprojektowany głównie z myślą o | |
49 | środowisku graficznym Gnome, powinien dobrze współpracować z innymi | |
50 | środowiskami graficznymi Gtk+. | |
51 | ||
52 | Menedżer czcionek NIE jest profesjonalnym rozwiązaniem do zarządzania | |
53 | czcionkami. | |
54 | ||
55 | %package -n %{name}-common | |
56 | Summary: Common files used by font-manager | |
57 | Summary(pl.UTF-8): Wspólne pliki używane przez font-manager | |
58 | ||
59 | %description -n %{name}-common | |
60 | This package contains common files such as libraries. These files are | |
61 | required by font-manager and font-viewer. | |
62 | ||
63 | %description -n %{name}-common -l pl.UTF-8 | |
64 | Ten pakiet zawiera pliki wspólne, wymagane przez programy font-manager | |
65 | i font-viewer. | |
66 | ||
67 | %package -n font-viewer | |
68 | Summary: Full featured font file preview application for GTK+ Desktop Environments | |
69 | Summary(pl.UTF-8): W pełni funkcjonalna aplikacja do podglądu plików czcionek dla środowisk graficznych GTK+ | |
70 | Requires: %{name}-common >= %{version} | |
71 | ||
72 | %description -n font-viewer | |
73 | This package contains the font-viewer component of font-manager. | |
74 | ||
75 | %description -n font-viewer -l pl.UTF-8 | |
76 | Ten pakiet zawiera komponent font-viewer pakietu font-manager. | |
77 | ||
78 | %package -n nautilus-%{name} | |
79 | Summary: Nautilus extension for Font Manager | |
80 | Summary(pl.UTF-8): Rozszerzenie Font Manager dla Nautilusa | |
81 | Requires: %{name}-common >= %{version} | |
82 | Requires: font-viewer >= %{version} | |
83 | ||
84 | %description -n nautilus-%{name} | |
85 | This package provides integration with the Nautilus file manager. | |
86 | ||
87 | %description -n nautilus-%{name} -l pl.UTF-8 | |
88 | Ten pakiet pozwala na integrację FontManager'a z managerem plików | |
89 | Nautilus. | |
90 | ||
91 | %package -n nemo-%{name} | |
92 | Summary: Nemo extension for Font Manager | |
93 | Summary(pl.UTF-8): Rozszerzenie Font Manager dla Nemo | |
94 | Requires: %{name}-common >= %{version} | |
95 | Requires: font-viewer >= %{version} | |
96 | ||
97 | %description -n nemo-%{name} | |
98 | This package provides integration with the Nemo file manager. | |
99 | ||
100 | %description -n nemo-%{name} -l pl.UTF-8 | |
101 | Ten pakiet pozwala na integrację FontManager'a z managerem plików | |
102 | Nemo. | |
103 | ||
104 | %package -n thunar-%{name} | |
105 | Summary: Thunar extension for Font Manager | |
106 | Summary(pl.UTF-8): Rozszerzenie Font Manager dla Thunara | |
107 | Requires: %{name}-common >= %{version} | |
108 | Requires: font-viewer >= %{version} | |
109 | ||
110 | %description -n thunar-%{name} | |
111 | This package provides integration with the Thunar file manager. | |
112 | ||
113 | %description -n thunar-%{name} -l pl.UTF-8 | |
114 | Ten pakiet pozwala na integrację FontManager'a z managerem plików | |
115 | Thunar. | |
116 | ||
117 | %package gnome-shell-search | |
118 | Summary: Package provideing font-manager support in gnome shell search | |
119 | Summary(pl.UTF-8): Pakiet pozwalający przeszukiwanie font-manager'a z poziomu wyszukiwarki gnome shell | |
120 | Group: X11/Applications | |
121 | Requires: %{name} = %{version}-%{release} | |
122 | BuildArch: noarch | |
123 | ||
124 | %description gnome-shell-search | |
125 | This package integrates Font-Manager with gnome shell search tool. | |
126 | ||
127 | %description gnome-shell-search -l pl.UTF-8 | |
128 | Ten pakiet integruje Font-Manager'a z wyszukiwarką gnome shell | |
129 | ||
130 | %prep | |
131 | %setup -q | |
132 | %patch0 -p1 | |
133 | ||
134 | %build | |
135 | %meson -Dnautilus=True -Dnemo=True -Dthunar=true -Dreproducible=true build | |
136 | ||
137 | %ninja_build -C build | |
138 | ||
139 | %install | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
142 | %ninja_install -C build | |
143 | ||
144 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/libfontmanager.so | |
145 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/help/{nb_NO,zh_Hans,zh_Hant,zh_Hant_HK} | |
146 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/nb_NO | |
147 | ||
148 | %find_lang %{name} --with-gnome | |
149 | ||
150 | %check | |
151 | appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*.appdata.xml | |
152 | ||
153 | %post | |
154 | %glib_compile_schemas | |
155 | %update_icon_cache hicolor | |
156 | ||
157 | %postun | |
158 | %glib_compile_schemas | |
159 | %update_icon_cache hicolor | |
160 | ||
161 | %clean | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
164 | %files -f %{name}.lang | |
165 | %defattr(644,root,root,755) | |
166 | %attr(755,root,root) %{_bindir}/%{name} | |
167 | %{_datadir}/metainfo/org.gnome.FontManager.appdata.xml | |
168 | %{_desktopdir}/org.gnome.FontManager.desktop | |
169 | %{_datadir}/dbus-1/services/org.gnome.FontManager.service | |
170 | %{_datadir}/glib-2.0/schemas/org.gnome.FontManager.gschema.xml | |
171 | %{_iconsdir}/hicolor/128x128/apps/org.gnome.FontManager.png | |
172 | %{_iconsdir}/hicolor/256x256/apps/org.gnome.FontManager.png | |
173 | %{_mandir}/man1/%{name}.* | |
174 | ||
175 | %files -n %{name}-common | |
176 | %defattr(644,root,root,755) | |
177 | %doc COPYING | |
178 | %{_libdir}/%{name} | |
179 | ||
180 | %files -n font-viewer | |
181 | %defattr(644,root,root,755) | |
182 | %dir %{_libexecdir}/%{name} | |
183 | %attr(755,root,root) %{_libexecdir}/%{name}/font-viewer | |
184 | %{_datadir}/metainfo/org.gnome.FontViewer.appdata.xml | |
185 | %{_desktopdir}/org.gnome.FontViewer.desktop | |
186 | %{_datadir}/dbus-1/services/org.gnome.FontViewer.service | |
187 | %{_datadir}/glib-2.0/schemas/org.gnome.FontViewer.gschema.xml | |
188 | %{_iconsdir}/hicolor/128x128/apps/org.gnome.FontViewer.png | |
189 | %{_iconsdir}/hicolor/256x256/apps/org.gnome.FontViewer.png | |
190 | ||
191 | %files -n nautilus-%{name} | |
192 | %defattr(644,root,root,755) | |
193 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/nautilus-%{name}.so | |
194 | ||
195 | %files -n nemo-%{name} | |
196 | %defattr(644,root,root,755) | |
197 | %attr(755,root,root) %{_libdir}/nemo/extensions-3.0/nemo-%{name}.so | |
198 | ||
199 | %files -n thunar-%{name} | |
200 | %defattr(644,root,root,755) | |
201 | %attr(755,root,root) %{_libdir}/thunarx-3/thunar-%{name}.so | |
202 | ||
203 | %files gnome-shell-search | |
204 | %defattr(644,root,root,755) | |
205 | %{_datadir}/gnome-shell/search-providers/org.gnome.FontManager.SearchProvider.ini |