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