]> git.pld-linux.org Git - packages/tepl.git/blame - tepl.spec
- updated to 6.8.0 (new soname; switched from amtk to libgedit-amtk)
[packages/tepl.git] / tepl.spec
CommitLineData
cacaaae8
JB
1#
2# Conditional build:
9577eaf8
JB
3%bcond_without apidocs # API documentation
4%bcond_without static_libs # static library
cacaaae8
JB
5#
6Summary: Tepl - Text editor product line
7Summary(pl.UTF-8): Tepl (Text editor product line) - linia produkcyjna edytorów
8Name: tepl
216add97 9Version: 6.8.0
7aa508a1 10Release: 1
cacaaae8
JB
11License: LGPL v2.1+
12Group: Libraries
216add97
JB
13Source0: https://download.gnome.org/sources/tepl/6.8/%{name}-%{version}.tar.xz
14# Source0-md5: 5d29b2c9032a1ba2d33ef9c9c9c7de79
cacaaae8 15URL: https://wiki.gnome.org/Projects/Tepl
41677a45 16BuildRequires: gettext-tools >= 0.19.6
216add97 17BuildRequires: glib2-devel >= 1:2.74
cacaaae8 18BuildRequires: gobject-introspection-devel >= 1.42.0
7aa508a1 19BuildRequires: gsettings-desktop-schemas-devel
02505df4 20BuildRequires: gtk+3-devel >= 3.22
9577eaf8 21%{?with_apidocs:BuildRequires: gtk-doc >= 1.25}
216add97
JB
22BuildRequires: libgedit-amtk-devel >= 5.8
23BuildRequires: libgedit-gtksourceview-devel >= 299.0.4
9577eaf8 24BuildRequires: libicu-devel
cacaaae8 25BuildRequires: libxml2-devel >= 1:2.5
7aa508a1 26BuildRequires: meson >= 0.64
9577eaf8 27BuildRequires: ninja >= 1.5
cacaaae8 28BuildRequires: pkgconfig
1c0918d6 29BuildRequires: rpm-build >= 4.6
c7c1afaa 30BuildRequires: rpmbuild(macros) >= 1.752
f04e7773 31#BuildRequires: vala
216add97 32Requires: glib2 >= 1:2.74
02505df4 33Requires: gtk+3 >= 3.22
216add97 34Requires: libgedit-gtksourceview >= 299.0.4
cacaaae8
JB
35Requires: libxml2 >= 1:2.5
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39Tepl is a library that eases the development of GtkSourceView-based
40text editors and IDEs.
41
42Tepl was previously named Gtef (GTK+ text editor framework). The
43project has been renamed in June 2017 to have a more beautiful name.
44
45%description -l pl.UTF-8
46Tepl to biblioteka ułatawiająca tworzenie edytorów tekstu i IDE
47opartych na GtkSourceView.
48
49Tepl wcześniej nazywał się Gtef (GTK+ text editor framework - skielet
50edytorów tekstu GTK+); nazwa została zmieniona w czerwcu 2017 na
51ładniej brzmiącą.
52
53%package devel
54Summary: Header files for Tepl library
55Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Tepl
56Group: Development/Libraries
57Requires: %{name} = %{version}-%{release}
216add97 58Requires: glib2-devel >= 1:2.74
7aa508a1 59Requires: gsettings-desktop-schemas-devel
02505df4 60Requires: gtk+3-devel >= 3.22
216add97
JB
61Requires: libgedit-amtk-devel >= 5.8
62Requires: libgedit-gtksourceview-devel >= 299.0.4
9577eaf8 63Requires: libicu-devel
cacaaae8 64Requires: libxml2-devel >= 1:2.5
f04e7773
JB
65# temporary? no vapi in 2.99.2
66Obsoletes: vala-tepl < 2.99.2
cacaaae8
JB
67
68%description devel
69Header files for Tepl library.
70
71%description devel -l pl.UTF-8
72Pliki nagłówkowe biblioteki Tepl.
73
74%package static
75Summary: Static Tepl library
76Summary(pl.UTF-8): Statyczna biblioteka Tepl
77Group: Development/Libraries
78Requires: %{name}-devel = %{version}-%{release}
79
80%description static
81Static Tepl library.
82
83%description static -l pl.UTF-8
84Statyczna biblioteka Tepl.
85
86%package -n vala-tepl
87Summary: Vala API for Tepl library
88Summary(pl.UTF-8): API języka Vala do biblioteki Tepl
89Group: Development/Libraries
90Requires: %{name}-devel = %{version}-%{release}
91Requires: vala
5784f57f 92BuildArch: noarch
cacaaae8
JB
93
94%description -n vala-tepl
95Vala API for Tepl library.
96
97%description -n vala-tepl -l pl.UTF-8
98API języka Vala do biblioteki Tepl.
99
100%package apidocs
101Summary: API documentation for Tepl library
102Summary(pl.UTF-8): Dokumentacja API biblioteki Tepl
103Group: Documentation
5784f57f 104BuildArch: noarch
cacaaae8
JB
105
106%description apidocs
107API documentation for Tepl library.
108
109%description apidocs -l pl.UTF-8
110Dokumentacja 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
123rm -rf $RPM_BUILD_ROOT
124
9577eaf8 125%ninja_install -C build
cacaaae8 126
1c0918d6 127%find_lang tepl-6
cacaaae8
JB
128
129%clean
130rm -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
This page took 0.328694 seconds and 4 git commands to generate.