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