]> git.pld-linux.org Git - packages/fcft.git/blame - fcft.spec
new
[packages/fcft.git] / fcft.spec
CommitLineData
9130a7d7
JP
1Summary: A simple library for font loading and glyph rasterization
2Name: fcft
3Version: 2.5.1
4Release: 1
5License: MIT
6Group: Development/Libraries
7Source0: https://codeberg.org/dnkl/fcft/archive/%{version}.tar.gz
8# Source0-md5: 19b2f122d28c90832418fdf94baec5d4
9URL: https://codeberg.org/dnkl/fcft
10BuildRequires: fontconfig-devel
11BuildRequires: freetype-devel >= 2
12BuildRequires: harfbuzz-devel
13BuildRequires: libutf8proc-devel
14BuildRequires: meson >= 0.54.0
15BuildRequires: ninja
16BuildRequires: pixman-devel
17BuildRequires: pkgconfig
18BuildRequires: rpmbuild(macros) >= 1.736
19BuildRequires: scdoc
20BuildRequires: tllist-devel >= 1.0.1
21BuildRequires: wayland-devel
22BuildRequires: wayland-protocols
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26fcft is a small font loading and glyph rasterization library built
27on-top of FontConfig, FreeType2 and pixman.
28
29It can load and cache fonts from a fontconfig-formatted name string,
30e.g. Monospace:size=12, optionally with user configured fallback
31fonts.
32
33After a font has been loaded, you can rasterize glyphs. When doing so,
34the primary font is first considered. If it does not have the
35requested glyph, the user configured fallback fonts (if any) are
36considered. If none of the user configured fallback fonts has the
37requested glyph, the FontConfig generated list of fallback fonts are
38checked.
39
40%package devel
41Summary: Header files for the fcft library
42Group: Development/Libraries
43Requires: %{name} = %{version}-%{release}
44
45%description devel
46Header files for the fcft library.
47
48%package static
49Summary: Static fcft library
50Group: Development/Libraries
51Requires: %{name}-devel = %{version}-%{release}
52
53%description static
54Static fcft library.
55
56%prep
57%setup -q -n %{name}
58
59%build
60%meson build
61
62%ninja_build -C build
63
64%install
65rm -rf $RPM_BUILD_ROOT
66
67%ninja_install -C build
68
69%clean
70rm -rf $RPM_BUILD_ROOT
71
72%post -p /sbin/ldconfig
73%postun -p /sbin/ldconfig
74
75%files
76%defattr(644,root,root,755)
77%doc CHANGELOG.md README.md
78%attr(755,root,root) %{_libdir}/libfcft.so.*.*
79%attr(755,root,root) %ghost %{_libdir}/libfcft.so.3
80
81%files devel
82%defattr(644,root,root,755)
83%attr(755,root,root) %{_libdir}/libfcft.so
84%dir %{_includedir}/fcft
85%{_includedir}/fcft/fcft.h
86%{_includedir}/fcft/stride.h
87%{_pkgconfigdir}/fcft.pc
88%{_mandir}/man3/fcft_*.3*
89
90%files static
91%defattr(644,root,root,755)
92%{_libdir}/libfcft.a
This page took 1.24297 seconds and 4 git commands to generate.