- updated to 4.2.0
[packages/tepl.git] / tepl.spec
CommitLineData
cacaaae8
JB
1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
4#
5Summary: Tepl - Text editor product line
6Summary(pl.UTF-8): Tepl (Text editor product line) - linia produkcyjna edytorów
7Name: tepl
02505df4 8Version: 4.2.0
cacaaae8
JB
9Release: 1
10License: LGPL v2.1+
11Group: Libraries
02505df4
JB
12Source0: http://ftp.gnome.org/pub/GNOME/sources/tepl/4.2/%{name}-%{version}.tar.xz
13# Source0-md5: 70f4d32407b58369ef803205c4083a17
cacaaae8 14URL: https://wiki.gnome.org/Projects/Tepl
02505df4 15BuildRequires: amtk-devel >= 5.0
cacaaae8
JB
16BuildRequires: autoconf >= 2.64
17BuildRequires: automake >= 1:1.14
18BuildRequires: gettext-tools >= 0.19.4
19BuildRequires: glib2-devel >= 1:2.52
20BuildRequires: gobject-introspection-devel >= 1.42.0
02505df4 21BuildRequires: gtk+3-devel >= 3.22
cacaaae8 22BuildRequires: gtk-doc >= 1.25
02505df4 23BuildRequires: gtksourceview4-devel >= 4.0
cacaaae8
JB
24BuildRequires: libtool >= 2:2.2.6
25BuildRequires: libxml2-devel >= 1:2.5
26BuildRequires: pkgconfig
27BuildRequires: uchardet-devel
f04e7773 28#BuildRequires: vala
cacaaae8 29Requires: glib2 >= 1:2.52
02505df4
JB
30Requires: gtk+3 >= 3.22
31Requires: gtksourceview4 >= 4.0
cacaaae8
JB
32Requires: libxml2 >= 1:2.5
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36Tepl is a library that eases the development of GtkSourceView-based
37text editors and IDEs.
38
39Tepl was previously named Gtef (GTK+ text editor framework). The
40project has been renamed in June 2017 to have a more beautiful name.
41
42%description -l pl.UTF-8
43Tepl to biblioteka ułatawiająca tworzenie edytorów tekstu i IDE
44opartych na GtkSourceView.
45
46Tepl wcześniej nazywał się Gtef (GTK+ text editor framework - skielet
47edytorów tekstu GTK+); nazwa została zmieniona w czerwcu 2017 na
48ładniej brzmiącą.
49
50%package devel
51Summary: Header files for Tepl library
52Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Tepl
53Group: Development/Libraries
54Requires: %{name} = %{version}-%{release}
02505df4 55Requires: amtk-devel >= 5.0
cacaaae8 56Requires: glib2-devel >= 1:2.52
02505df4
JB
57Requires: gtk+3-devel >= 3.22
58Requires: gtksourceview4-devel >= 4.0
cacaaae8
JB
59Requires: libxml2-devel >= 1:2.5
60Requires: uchardet-devel
f04e7773
JB
61# temporary? no vapi in 2.99.2
62Obsoletes: vala-tepl < 2.99.2
cacaaae8
JB
63
64%description devel
65Header files for Tepl library.
66
67%description devel -l pl.UTF-8
68Pliki nagłówkowe biblioteki Tepl.
69
70%package static
71Summary: Static Tepl library
72Summary(pl.UTF-8): Statyczna biblioteka Tepl
73Group: Development/Libraries
74Requires: %{name}-devel = %{version}-%{release}
75
76%description static
77Static Tepl library.
78
79%description static -l pl.UTF-8
80Statyczna biblioteka Tepl.
81
82%package -n vala-tepl
83Summary: Vala API for Tepl library
84Summary(pl.UTF-8): API języka Vala do biblioteki Tepl
85Group: Development/Libraries
86Requires: %{name}-devel = %{version}-%{release}
87Requires: vala
88
89%description -n vala-tepl
90Vala API for Tepl library.
91
92%description -n vala-tepl -l pl.UTF-8
93API języka Vala do biblioteki Tepl.
94
95%package apidocs
96Summary: API documentation for Tepl library
97Summary(pl.UTF-8): Dokumentacja API biblioteki Tepl
98Group: Documentation
99%if "%{_rpmversion}" >= "5"
100BuildArch: noarch
101%endif
102
103%description apidocs
104API documentation for Tepl library.
105
106%description apidocs -l pl.UTF-8
107Dokumentacja API biblioteki Tepl.
108
109%prep
110%setup -q
111
112%build
113# rebuild ac/am/lt for as-needed to work
114%{__libtoolize}
115%{__aclocal} -I m4
116%{__autoconf}
117%{__autoheader}
118%{__automake}
119%configure \
120 --disable-silent-rules \
121 %{?with_static_libs:--enable-static} \
122 --with-html-dir=%{_gtkdocdir}
123%{__make}
124
125%install
126rm -rf $RPM_BUILD_ROOT
127
128%{__make} install \
129 DESTDIR=$RPM_BUILD_ROOT
130
131# obsoleted by pkg-config
f04e7773 132%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
cacaaae8 133
02505df4 134%find_lang tepl-4
cacaaae8
JB
135
136%clean
137rm -rf $RPM_BUILD_ROOT
138
139%post -p /sbin/ldconfig
140%postun -p /sbin/ldconfig
141
02505df4 142%files -f tepl-4.lang
cacaaae8
JB
143%defattr(644,root,root,755)
144%doc AUTHORS NEWS README
02505df4
JB
145%attr(755,root,root) %{_libdir}/libtepl-4.so.*.*.*
146%attr(755,root,root) %ghost %{_libdir}/libtepl-4.so.0
147%{_libdir}/girepository-1.0/Tepl-4.typelib
cacaaae8
JB
148
149%files devel
150%defattr(644,root,root,755)
02505df4
JB
151%attr(755,root,root) %{_libdir}/libtepl-4.so
152%{_includedir}/tepl-4
153%{_datadir}/gir-1.0/Tepl-4.gir
154%{_pkgconfigdir}/tepl-4.pc
cacaaae8
JB
155
156%if %{with static_libs}
157%files static
158%defattr(644,root,root,755)
02505df4 159%{_libdir}/libtepl-4.a
cacaaae8
JB
160%endif
161
f04e7773 162%if 0
cacaaae8
JB
163%files -n vala-tepl
164%defattr(644,root,root,755)
02505df4
JB
165%{_datadir}/vala/vapi/tepl-4.deps
166%{_datadir}/vala/vapi/tepl-4.vapi
f04e7773 167%endif
cacaaae8
JB
168
169%files apidocs
170%defattr(644,root,root,755)
02505df4 171%{_gtkdocdir}/tepl-4.0
This page took 0.066965 seconds and 4 git commands to generate.