3 %bcond_without apidocs # API documentation
4 %bcond_without static_libs # static library
6 Summary: Tepl - Text editor product line
7 Summary(pl.UTF-8): Tepl (Text editor product line) - linia produkcyjna edytorów
13 Source0: https://download.gnome.org/sources/tepl/6.00/%{name}-%{version}.tar.xz
14 # Source0-md5: 08248e527cc87a4bf7300c04d1babcb9
15 URL: https://wiki.gnome.org/Projects/Tepl
16 BuildRequires: amtk-devel >= 5.0
17 BuildRequires: gettext-tools >= 0.19.6
18 BuildRequires: glib2-devel >= 1:2.64
19 BuildRequires: gobject-introspection-devel >= 1.42.0
20 BuildRequires: gtk+3-devel >= 3.22
21 %{?with_apidocs:BuildRequires: gtk-doc >= 1.25}
22 BuildRequires: gtksourceview4-devel >= 4.0
23 BuildRequires: libicu-devel
24 BuildRequires: libxml2-devel >= 1:2.5
25 BuildRequires: meson >= 0.53
26 BuildRequires: ninja >= 1.5
27 BuildRequires: pkgconfig
28 BuildRequires: rpm-build >= 4.6
29 BuildRequires: rpmbuild(macros) >= 1.752
31 Requires: glib2 >= 1:2.64
32 Requires: gtk+3 >= 3.22
33 Requires: gtksourceview4 >= 4.0
34 Requires: libxml2 >= 1:2.5
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Tepl is a library that eases the development of GtkSourceView-based
39 text editors and IDEs.
41 Tepl was previously named Gtef (GTK+ text editor framework). The
42 project has been renamed in June 2017 to have a more beautiful name.
44 %description -l pl.UTF-8
45 Tepl to biblioteka ułatawiająca tworzenie edytorów tekstu i IDE
46 opartych na GtkSourceView.
48 Tepl wcześniej nazywał się Gtef (GTK+ text editor framework - skielet
49 edytorów tekstu GTK+); nazwa została zmieniona w czerwcu 2017 na
53 Summary: Header files for Tepl library
54 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Tepl
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
57 Requires: amtk-devel >= 5.0
58 Requires: glib2-devel >= 1:2.64
59 Requires: gtk+3-devel >= 3.22
60 Requires: gtksourceview4-devel >= 4.0
61 Requires: libicu-devel
62 Requires: libxml2-devel >= 1:2.5
63 # temporary? no vapi in 2.99.2
64 Obsoletes: vala-tepl < 2.99.2
67 Header files for Tepl library.
69 %description devel -l pl.UTF-8
70 Pliki nagłówkowe biblioteki Tepl.
73 Summary: Static Tepl library
74 Summary(pl.UTF-8): Statyczna biblioteka Tepl
75 Group: Development/Libraries
76 Requires: %{name}-devel = %{version}-%{release}
81 %description static -l pl.UTF-8
82 Statyczna biblioteka Tepl.
85 Summary: Vala API for Tepl library
86 Summary(pl.UTF-8): API języka Vala do biblioteki Tepl
87 Group: Development/Libraries
88 Requires: %{name}-devel = %{version}-%{release}
92 %description -n vala-tepl
93 Vala API for Tepl library.
95 %description -n vala-tepl -l pl.UTF-8
96 API języka Vala do biblioteki Tepl.
99 Summary: API documentation for Tepl library
100 Summary(pl.UTF-8): Dokumentacja API biblioteki Tepl
105 API documentation for Tepl library.
107 %description apidocs -l pl.UTF-8
108 Dokumentacja API biblioteki Tepl.
115 %{!?with_static_libs:--default-library=shared} \
116 %{?with_apidocs:-Dgtk_doc=true}
118 %ninja_build -C build
121 rm -rf $RPM_BUILD_ROOT
123 %ninja_install -C build
128 rm -rf $RPM_BUILD_ROOT
130 %post -p /sbin/ldconfig
131 %postun -p /sbin/ldconfig
133 %files -f tepl-6.lang
134 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/libtepl-6.so.*.*.*
137 %attr(755,root,root) %ghost %{_libdir}/libtepl-6.so.0
138 %{_libdir}/girepository-1.0/Tepl-6.typelib
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/libtepl-6.so
143 %{_includedir}/tepl-6
144 %{_datadir}/gir-1.0/Tepl-6.gir
145 %{_pkgconfigdir}/tepl-6.pc
147 %if %{with static_libs}
149 %defattr(644,root,root,755)
150 %{_libdir}/libtepl-6.a
155 %defattr(644,root,root,755)
156 %{_datadir}/vala/vapi/tepl-6.deps
157 %{_datadir}/vala/vapi/tepl-6.vapi
162 %defattr(644,root,root,755)