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