]>
Commit | Line | Data |
---|---|---|
cacaaae8 JB |
1 | # |
2 | # Conditional build: | |
9577eaf8 JB |
3 | %bcond_without apidocs # API documentation |
4 | %bcond_without static_libs # static library | |
cacaaae8 JB |
5 | # |
6 | Summary: Tepl - Text editor product line | |
7 | Summary(pl.UTF-8): Tepl (Text editor product line) - linia produkcyjna edytorów | |
8 | Name: tepl | |
dbbe7ae8 JB |
9 | Version: 6.0.1 |
10 | Release: 1 | |
cacaaae8 JB |
11 | License: LGPL v2.1+ |
12 | Group: Libraries | |
dbbe7ae8 JB |
13 | Source0: https://download.gnome.org/sources/tepl/6.0/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 25dca6791ded8025ef76a3ff6ce4f437 | |
cacaaae8 | 15 | URL: https://wiki.gnome.org/Projects/Tepl |
02505df4 | 16 | BuildRequires: amtk-devel >= 5.0 |
41677a45 | 17 | BuildRequires: gettext-tools >= 0.19.6 |
9577eaf8 | 18 | BuildRequires: glib2-devel >= 1:2.64 |
cacaaae8 | 19 | BuildRequires: gobject-introspection-devel >= 1.42.0 |
02505df4 | 20 | BuildRequires: gtk+3-devel >= 3.22 |
9577eaf8 | 21 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.25} |
02505df4 | 22 | BuildRequires: gtksourceview4-devel >= 4.0 |
9577eaf8 | 23 | BuildRequires: libicu-devel |
cacaaae8 | 24 | BuildRequires: libxml2-devel >= 1:2.5 |
9577eaf8 JB |
25 | BuildRequires: meson >= 0.53 |
26 | BuildRequires: ninja >= 1.5 | |
cacaaae8 | 27 | BuildRequires: pkgconfig |
1c0918d6 | 28 | BuildRequires: rpm-build >= 4.6 |
c7c1afaa | 29 | BuildRequires: rpmbuild(macros) >= 1.752 |
f04e7773 | 30 | #BuildRequires: vala |
9577eaf8 | 31 | Requires: glib2 >= 1:2.64 |
02505df4 JB |
32 | Requires: gtk+3 >= 3.22 |
33 | Requires: gtksourceview4 >= 4.0 | |
cacaaae8 JB |
34 | Requires: libxml2 >= 1:2.5 |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | Tepl is a library that eases the development of GtkSourceView-based | |
39 | text editors and IDEs. | |
40 | ||
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. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Tepl to biblioteka ułatawiająca tworzenie edytorów tekstu i IDE | |
46 | opartych na GtkSourceView. | |
47 | ||
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 | |
50 | ładniej brzmiącą. | |
51 | ||
52 | %package devel | |
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} | |
02505df4 | 57 | Requires: amtk-devel >= 5.0 |
9577eaf8 | 58 | Requires: glib2-devel >= 1:2.64 |
02505df4 JB |
59 | Requires: gtk+3-devel >= 3.22 |
60 | Requires: gtksourceview4-devel >= 4.0 | |
9577eaf8 | 61 | Requires: libicu-devel |
cacaaae8 | 62 | Requires: libxml2-devel >= 1:2.5 |
f04e7773 JB |
63 | # temporary? no vapi in 2.99.2 |
64 | Obsoletes: vala-tepl < 2.99.2 | |
cacaaae8 JB |
65 | |
66 | %description devel | |
67 | Header files for Tepl library. | |
68 | ||
69 | %description devel -l pl.UTF-8 | |
70 | Pliki nagłówkowe biblioteki Tepl. | |
71 | ||
72 | %package static | |
73 | Summary: Static Tepl library | |
74 | Summary(pl.UTF-8): Statyczna biblioteka Tepl | |
75 | Group: Development/Libraries | |
76 | Requires: %{name}-devel = %{version}-%{release} | |
77 | ||
78 | %description static | |
79 | Static Tepl library. | |
80 | ||
81 | %description static -l pl.UTF-8 | |
82 | Statyczna biblioteka Tepl. | |
83 | ||
84 | %package -n vala-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} | |
89 | Requires: vala | |
5784f57f | 90 | BuildArch: noarch |
cacaaae8 JB |
91 | |
92 | %description -n vala-tepl | |
93 | Vala API for Tepl library. | |
94 | ||
95 | %description -n vala-tepl -l pl.UTF-8 | |
96 | API języka Vala do biblioteki Tepl. | |
97 | ||
98 | %package apidocs | |
99 | Summary: API documentation for Tepl library | |
100 | Summary(pl.UTF-8): Dokumentacja API biblioteki Tepl | |
101 | Group: Documentation | |
5784f57f | 102 | BuildArch: noarch |
cacaaae8 JB |
103 | |
104 | %description apidocs | |
105 | API documentation for Tepl library. | |
106 | ||
107 | %description apidocs -l pl.UTF-8 | |
108 | Dokumentacja API biblioteki Tepl. | |
109 | ||
110 | %prep | |
111 | %setup -q | |
112 | ||
113 | %build | |
9577eaf8 JB |
114 | %meson build \ |
115 | %{!?with_static_libs:--default-library=shared} \ | |
116 | %{?with_apidocs:-Dgtk_doc=true} | |
117 | ||
118 | %ninja_build -C build | |
cacaaae8 JB |
119 | |
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
9577eaf8 | 123 | %ninja_install -C build |
cacaaae8 | 124 | |
1c0918d6 | 125 | %find_lang tepl-6 |
cacaaae8 JB |
126 | |
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %post -p /sbin/ldconfig | |
131 | %postun -p /sbin/ldconfig | |
132 | ||
1c0918d6 | 133 | %files -f tepl-6.lang |
cacaaae8 | 134 | %defattr(644,root,root,755) |
1c0918d6 JB |
135 | %doc NEWS README.md |
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 | |
cacaaae8 JB |
139 | |
140 | %files devel | |
141 | %defattr(644,root,root,755) | |
1c0918d6 JB |
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 | |
cacaaae8 JB |
146 | |
147 | %if %{with static_libs} | |
148 | %files static | |
149 | %defattr(644,root,root,755) | |
1c0918d6 | 150 | %{_libdir}/libtepl-6.a |
cacaaae8 JB |
151 | %endif |
152 | ||
f04e7773 | 153 | %if 0 |
cacaaae8 JB |
154 | %files -n vala-tepl |
155 | %defattr(644,root,root,755) | |
1c0918d6 JB |
156 | %{_datadir}/vala/vapi/tepl-6.deps |
157 | %{_datadir}/vala/vapi/tepl-6.vapi | |
f04e7773 | 158 | %endif |
cacaaae8 | 159 | |
9577eaf8 | 160 | %if %{with apidocs} |
cacaaae8 JB |
161 | %files apidocs |
162 | %defattr(644,root,root,755) | |
1c0918d6 | 163 | %{_gtkdocdir}/tepl-6 |
9577eaf8 | 164 | %endif |