]>
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 | |
216add97 | 9 | Version: 6.8.0 |
7aa508a1 | 10 | Release: 1 |
cacaaae8 JB |
11 | License: LGPL v2.1+ |
12 | Group: Libraries | |
216add97 JB |
13 | Source0: https://download.gnome.org/sources/tepl/6.8/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 5d29b2c9032a1ba2d33ef9c9c9c7de79 | |
cacaaae8 | 15 | URL: https://wiki.gnome.org/Projects/Tepl |
41677a45 | 16 | BuildRequires: gettext-tools >= 0.19.6 |
216add97 | 17 | BuildRequires: glib2-devel >= 1:2.74 |
cacaaae8 | 18 | BuildRequires: gobject-introspection-devel >= 1.42.0 |
7aa508a1 | 19 | BuildRequires: gsettings-desktop-schemas-devel |
02505df4 | 20 | BuildRequires: gtk+3-devel >= 3.22 |
9577eaf8 | 21 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.25} |
216add97 JB |
22 | BuildRequires: libgedit-amtk-devel >= 5.8 |
23 | BuildRequires: libgedit-gtksourceview-devel >= 299.0.4 | |
9577eaf8 | 24 | BuildRequires: libicu-devel |
cacaaae8 | 25 | BuildRequires: libxml2-devel >= 1:2.5 |
7aa508a1 | 26 | BuildRequires: meson >= 0.64 |
9577eaf8 | 27 | BuildRequires: ninja >= 1.5 |
cacaaae8 | 28 | BuildRequires: pkgconfig |
1c0918d6 | 29 | BuildRequires: rpm-build >= 4.6 |
c7c1afaa | 30 | BuildRequires: rpmbuild(macros) >= 1.752 |
f04e7773 | 31 | #BuildRequires: vala |
216add97 | 32 | Requires: glib2 >= 1:2.74 |
02505df4 | 33 | Requires: gtk+3 >= 3.22 |
216add97 | 34 | Requires: libgedit-gtksourceview >= 299.0.4 |
cacaaae8 JB |
35 | Requires: libxml2 >= 1:2.5 |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | Tepl is a library that eases the development of GtkSourceView-based | |
40 | text editors and IDEs. | |
41 | ||
42 | Tepl was previously named Gtef (GTK+ text editor framework). The | |
43 | project has been renamed in June 2017 to have a more beautiful name. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | Tepl to biblioteka ułatawiająca tworzenie edytorów tekstu i IDE | |
47 | opartych na GtkSourceView. | |
48 | ||
49 | Tepl wcześniej nazywał się Gtef (GTK+ text editor framework - skielet | |
50 | edytorów tekstu GTK+); nazwa została zmieniona w czerwcu 2017 na | |
51 | ładniej brzmiącą. | |
52 | ||
53 | %package devel | |
54 | Summary: Header files for Tepl library | |
55 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Tepl | |
56 | Group: Development/Libraries | |
57 | Requires: %{name} = %{version}-%{release} | |
216add97 | 58 | Requires: glib2-devel >= 1:2.74 |
7aa508a1 | 59 | Requires: gsettings-desktop-schemas-devel |
02505df4 | 60 | Requires: gtk+3-devel >= 3.22 |
216add97 JB |
61 | Requires: libgedit-amtk-devel >= 5.8 |
62 | Requires: libgedit-gtksourceview-devel >= 299.0.4 | |
9577eaf8 | 63 | Requires: libicu-devel |
cacaaae8 | 64 | Requires: libxml2-devel >= 1:2.5 |
f04e7773 JB |
65 | # temporary? no vapi in 2.99.2 |
66 | Obsoletes: vala-tepl < 2.99.2 | |
cacaaae8 JB |
67 | |
68 | %description devel | |
69 | Header files for Tepl library. | |
70 | ||
71 | %description devel -l pl.UTF-8 | |
72 | Pliki nagłówkowe biblioteki Tepl. | |
73 | ||
74 | %package static | |
75 | Summary: Static Tepl library | |
76 | Summary(pl.UTF-8): Statyczna biblioteka Tepl | |
77 | Group: Development/Libraries | |
78 | Requires: %{name}-devel = %{version}-%{release} | |
79 | ||
80 | %description static | |
81 | Static Tepl library. | |
82 | ||
83 | %description static -l pl.UTF-8 | |
84 | Statyczna biblioteka Tepl. | |
85 | ||
86 | %package -n vala-tepl | |
87 | Summary: Vala API for Tepl library | |
88 | Summary(pl.UTF-8): API języka Vala do biblioteki Tepl | |
89 | Group: Development/Libraries | |
90 | Requires: %{name}-devel = %{version}-%{release} | |
91 | Requires: vala | |
5784f57f | 92 | BuildArch: noarch |
cacaaae8 JB |
93 | |
94 | %description -n vala-tepl | |
95 | Vala API for Tepl library. | |
96 | ||
97 | %description -n vala-tepl -l pl.UTF-8 | |
98 | API języka Vala do biblioteki Tepl. | |
99 | ||
100 | %package apidocs | |
101 | Summary: API documentation for Tepl library | |
102 | Summary(pl.UTF-8): Dokumentacja API biblioteki Tepl | |
103 | Group: Documentation | |
5784f57f | 104 | BuildArch: noarch |
cacaaae8 JB |
105 | |
106 | %description apidocs | |
107 | API documentation for Tepl library. | |
108 | ||
109 | %description apidocs -l pl.UTF-8 | |
110 | Dokumentacja API biblioteki Tepl. | |
111 | ||
112 | %prep | |
113 | %setup -q | |
114 | ||
115 | %build | |
9577eaf8 JB |
116 | %meson build \ |
117 | %{!?with_static_libs:--default-library=shared} \ | |
118 | %{?with_apidocs:-Dgtk_doc=true} | |
119 | ||
120 | %ninja_build -C build | |
cacaaae8 JB |
121 | |
122 | %install | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
9577eaf8 | 125 | %ninja_install -C build |
cacaaae8 | 126 | |
1c0918d6 | 127 | %find_lang tepl-6 |
cacaaae8 JB |
128 | |
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %post -p /sbin/ldconfig | |
133 | %postun -p /sbin/ldconfig | |
134 | ||
1c0918d6 | 135 | %files -f tepl-6.lang |
cacaaae8 | 136 | %defattr(644,root,root,755) |
1c0918d6 | 137 | %doc NEWS README.md |
216add97 | 138 | %attr(755,root,root) %{_libdir}/libtepl-6.so.4 |
1c0918d6 | 139 | %{_libdir}/girepository-1.0/Tepl-6.typelib |
cacaaae8 JB |
140 | |
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
1c0918d6 JB |
143 | %attr(755,root,root) %{_libdir}/libtepl-6.so |
144 | %{_includedir}/tepl-6 | |
145 | %{_datadir}/gir-1.0/Tepl-6.gir | |
146 | %{_pkgconfigdir}/tepl-6.pc | |
cacaaae8 JB |
147 | |
148 | %if %{with static_libs} | |
149 | %files static | |
150 | %defattr(644,root,root,755) | |
1c0918d6 | 151 | %{_libdir}/libtepl-6.a |
cacaaae8 JB |
152 | %endif |
153 | ||
f04e7773 | 154 | %if 0 |
cacaaae8 JB |
155 | %files -n vala-tepl |
156 | %defattr(644,root,root,755) | |
1c0918d6 JB |
157 | %{_datadir}/vala/vapi/tepl-6.deps |
158 | %{_datadir}/vala/vapi/tepl-6.vapi | |
f04e7773 | 159 | %endif |
cacaaae8 | 160 | |
9577eaf8 | 161 | %if %{with apidocs} |
cacaaae8 JB |
162 | %files apidocs |
163 | %defattr(644,root,root,755) | |
1c0918d6 | 164 | %{_gtkdocdir}/tepl-6 |
9577eaf8 | 165 | %endif |