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