]> git.pld-linux.org Git - packages/gtksourceview3.git/blame - gtksourceview3.spec
- unconditional noarch subpackages
[packages/gtksourceview3.git] / gtksourceview3.spec
CommitLineData
896eb13d
MB
1#
2# Conditional build:
44df7ec3 3%bcond_with glade # install glade catalog
f5853990 4%bcond_without vala # do not build Vala API
4564cf84 5
44df7ec3
AF
6Summary: Text widget that extends the standard GTK+ 3.x
7Summary(pl.UTF-8): Widget tekstowy rozszerzający standardowy z GTK+ 3.x
8Name: gtksourceview3
269d9ef2 9Version: 3.24.11
b2467359 10Release: 1
2a83e144 11License: LGPL v2+ (library), GPL v2+ (some language specs files)
44df7ec3 12Group: X11/Libraries
649b340e 13Source0: http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/3.24/gtksourceview-%{version}.tar.xz
269d9ef2 14# Source0-md5: b748da426a7d64e1304f0c532b0f2a67
0f340fba 15URL: https://wiki.gnome.org/Projects/GtkSourceView
44df7ec3 16BuildRequires: autoconf >= 2.64
d5fd6af8 17BuildRequires: autoconf-archive >= 2015.09.25
1be8ea61 18BuildRequires: automake >= 1:1.13
44df7ec3 19BuildRequires: docbook-dtd412-xml
ede2878d 20BuildRequires: gettext-tools >= 0.19.4
0b911454 21BuildRequires: glib2-devel >= 1:2.48.0
ad61f4ae 22BuildRequires: gobject-introspection-devel >= 1.42.0
0b911454 23BuildRequires: gtk+3-devel >= 3.20.0
ede2878d 24BuildRequires: gtk-doc >= 1.25
0b911454 25BuildRequires: itstool
44df7ec3 26%if %{with glade}
a4f31e42 27BuildRequires: libgladeui-devel >= 3.9.0
44df7ec3 28%endif
896eb13d 29BuildRequires: libtool >= 2:2.2.6
44df7ec3
AF
30BuildRequires: libxml2-devel >= 1:2.6.31
31BuildRequires: pkgconfig
32BuildRequires: rpm-pythonprov
67ae3529 33BuildRequires: tar >= 1:1.22
f5853990 34BuildRequires: vala
67ae3529 35BuildRequires: xz
ede2878d
MB
36Requires: glib2 >= 1:2.48.0
37Requires: gtk+3 >= 3.20.0
6a1741b2 38Requires: libxml2 >= 1:2.6.31
44df7ec3
AF
39# sr@Latn vs. sr@latin
40Conflicts: glibc-misc < 6:2.7
41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43%description
44GtkSourceView is a text widget that extends the standard GTK+ 3.x text
45widget GtkTextView. It improves GtkTextView by implementing syntax
46highlighting and other features typical of a source editor.
47
48%description -l pl.UTF-8
49GtkSourceView to widget tekstowy rozszerzający standardowy widget
50tekstowy GtkTextView z GTK+ 3.x. Ulepsza GtkTextView poprzez
51zaimplementowanie podświetlania składni i innych możliwości typowych
52dla edytora źródeł.
53
54%package apidocs
55Summary: GtkSourceView API documentation
56Summary(pl.UTF-8): Dokumentacja API GtkSourceView
57Group: Documentation
58Requires: gtk-doc-common
cfca0620 59BuildArch: noarch
44df7ec3
AF
60
61%description apidocs
62GtkSourceView API documentation.
63
64%description apidocs -l pl.UTF-8
65Dokumentacja API GtkSourceView.
66
67%package devel
68Summary: Header files for GtkSourceView
69Summary(pl.UTF-8): Pliki nagłówkowe dla GtkSourceView
70Group: X11/Development/Libraries
71Requires: %{name} = %{version}-%{release}
ede2878d
MB
72Requires: glib2-devel >= 1:2.48.0
73Requires: gtk+3-devel >= 3.20.0
44df7ec3
AF
74Requires: libxml2-devel >= 1:2.6.31
75
76%description devel
77Header files for GtkSourceView.
78
79%description devel -l pl.UTF-8
80Pliki nagłówkowe dla GtkSourceView.
81
82%package static
83Summary: Static GtkSourceView library
84Summary(pl.UTF-8): Statyczna biblioteka GtkSourceView
85Group: X11/Development/Libraries
86Requires: %{name}-devel = %{version}-%{release}
87
88%description static
89Static GtkSourceView library.
90
91%description static -l pl.UTF-8
92Statyczna biblioteka GtkSourceView.
93
94%package -n glade3-gtksourceview
95Summary: Glade3 catalog entry for GtkSourceView library
2a83e144 96Summary(pl.UTF-8): Wpis katalogu Glade3 dla biblioteki GtkSourceView
44df7ec3
AF
97Group: X11/Development/Libraries
98Requires: %{name}-devel = %{version}-%{release}
2a83e144 99Requires: libgladeui >= 3.9.0
44df7ec3
AF
100
101%description -n glade3-gtksourceview
102Glade3 catalog entry for GtkSourceView library.
103
2a83e144
JB
104%description -n glade3-gtksourceview -l pl.UTF-8
105Wpis katalogu Glade3 dla biblioteki GtkSourceView.
106
f5853990
MB
107%package -n vala-gtksourceview
108Summary: GtkSourceView API for Vala language
109Summary(pl.UTF-8): API GtkSourceView dla języka Vala
110Group: Development/Libraries
111Requires: %{name}-devel = %{version}-%{release}
112Requires: vala
4564cf84 113BuildArch: noarch
f5853990
MB
114
115%description -n vala-gtksourceview
116GtkSourceView API for Vala language.
117
118%description -n vala-gtksourceview -l pl.UTF-8
119API GtkSourceView dla języka Vala.
120
44df7ec3
AF
121%prep
122%setup -q -n gtksourceview-%{version}
44df7ec3 123
d5fd6af8
JB
124# force new version from autoconf-archive (original one uses non-POSIX ${V:N} syntax)
125%{__rm} m4/ax_compiler_flags_cflags.m4
126
44df7ec3
AF
127%build
128%{__gtkdocize}
44df7ec3 129%{__libtoolize}
d5fd6af8 130%{__aclocal} -I m4
44df7ec3
AF
131%{__autoconf}
132%{__autoheader}
133%{__automake}
134%configure \
44df7ec3 135 %{__enable glade glade-catalog} \
2a83e144 136 --enable-gtk-doc \
2a83e144
JB
137 --disable-silent-rules \
138 --enable-static \
139 --with-html-dir=%{_gtkdocdir}
44df7ec3
AF
140%{__make}
141
142%install
143rm -rf $RPM_BUILD_ROOT
144
145%{__make} install \
146 DESTDIR=$RPM_BUILD_ROOT
147
e40ce944
AF
148%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
149
44df7ec3
AF
150%find_lang gtksourceview-3.0
151
152%clean
153rm -rf $RPM_BUILD_ROOT
154
155%post -p /sbin/ldconfig
156%postun -p /sbin/ldconfig
157
158%files -f gtksourceview-3.0.lang
159%defattr(644,root,root,755)
160%attr(755,root,root) %{_libdir}/libgtksourceview-3.0.so.*.*.*
792e5866 161%attr(755,root,root) %ghost %{_libdir}/libgtksourceview-3.0.so.1
44df7ec3
AF
162%{_datadir}/gtksourceview-3.0
163%{_libdir}/girepository-1.0/GtkSource-3.0.typelib
164
165%files apidocs
166%defattr(644,root,root,755)
167%{_gtkdocdir}/gtksourceview-3.0
168
169%files devel
170%defattr(644,root,root,755)
171%attr(755,root,root) %{_libdir}/libgtksourceview-3.0.so
44df7ec3
AF
172%{_includedir}/gtksourceview-3.0
173%{_pkgconfigdir}/gtksourceview-3.0.pc
174%{_datadir}/gir-1.0/GtkSource-3.0.gir
175
176%files static
177%defattr(644,root,root,755)
178%{_libdir}/libgtksourceview-3.0.a
179
180%if %{with glade}
181%files -n glade3-gtksourceview
182%defattr(644,root,root,755)
183%{_datadir}/glade3/catalogs/gtksourceview.xml
184%endif
f5853990
MB
185
186%if %{with vala}
187%files -n vala-gtksourceview
188%defattr(644,root,root,755)
189%{_datadir}/vala/vapi/gtksourceview-3.0.deps
190%{_datadir}/vala/vapi/gtksourceview-3.0.vapi
191%endif
This page took 0.23946 seconds and 5 git commands to generate.