]> git.pld-linux.org Git - SPECS.git/blob - gtksourceviewmm2.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / gtksourceviewmm2.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # don't generate documentation with doxygen
4
5 Summary:        A C++ binding of GtkSourceView2
6 Summary(pl.UTF-8):      Wiązania C++ dla GtkSourceView2
7 Name:           gtksourceviewmm2
8 Version:        2.10.3
9 Release:        3
10 License:        LGPL v2+
11 Group:          X11/Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtksourceviewmm/2.10/gtksourceviewmm-%{version}.tar.xz
13 # Source0-md5:  89d75c441ceeb071943acad1fe48d973
14 URL:            http://www.gnome.org/projects/gtksourceviewmm/
15 BuildRequires:  autoconf >= 2.62
16 BuildRequires:  automake >= 1:1.9
17 %{?with_apidocs:BuildRequires:  doxygen}
18 BuildRequires:  gtkmm-devel >= 2.12.1
19 BuildRequires:  gtksourceview2-devel >= 2.10.0
20 BuildRequires:  libtool >= 2:2.0
21 BuildRequires:  mm-common >= 0.9.5
22 BuildRequires:  pkgconfig
23 BuildRequires:  tar >= 1:1.22
24 BuildRequires:  xz
25 Requires:       gtkmm >= 2.12.1
26 Requires:       gtksourceview2 >= 2.10.0
27 Obsoletes:      libgtksourceviewmm2
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 GtkSourceViewMM2 is a C++ binding of GtkSourceView2, an extension to
32 the text widget included in GTK+ 2.x adding syntax highlighting and
33 other features typical for a source file editor.
34
35 %description -l pl.UTF-8
36 GtkSourceViewMM2 to wiązania C++ dla GtkSourceView2 - rozszerzenia
37 tekstowego widgetu będącego częścią GTK+ 2.x, dodającego kolorowanie
38 składni oraz inne właściwości typowe dla edytora kodu źródłowego.
39
40 %package devel
41 Summary:        Header files for GtkSourceViewMM2 library
42 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki GtkSourceViewMM2
43 Group:          X11/Development/Libraries
44 Requires:       %{name} = %{version}-%{release}
45 Requires:       gtkmm-devel >= 2.12.1
46 Requires:       gtksourceview2-devel >= 2.10.0
47 Obsoletes:      libgtksourceviewmm2-devel
48
49 %description devel
50 Header files for GtkSourceViewMM2 library.
51
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki GtkSourceViewMM2.
54
55 %package static
56 Summary:        Static GtkSourceViewMM2 library
57 Summary(pl.UTF-8):      Statyczna biblioteka GtkSourceViewMM2
58 Group:          X11/Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60 Obsoletes:      libgtksourceviewmm2-static
61
62 %description static
63 Static GtkSourceViewMM2 library.
64
65 %description static -l pl.UTF-8
66 Statyczna biblioteka GtkSourceViewMM2.
67
68 %package apidocs
69 Summary:        GtkSourceViewMM2 API documentation
70 Summary(pl.UTF-8):      Dokumentacja API GtkSourceViewMM2
71 Group:          Documentation
72 Obsoletes:      libgtksourceviewmm2-apidocs
73 BuildArch:      noarch
74
75 %description apidocs
76 GtkSourceViewMM2 API documentation.
77
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API GtkSourceViewMM2.
80
81 %prep
82 %setup -q -n gtksourceviewmm-%{version}
83
84 %build
85 %{__libtoolize}
86 %{__aclocal} -I build
87 %{__autoconf}
88 %{__autoheader}
89 %{__automake}
90 %configure \
91         --disable-silent-rules \
92         --%{?with_apidocs:en}%{!?with_apidocs:dis}able-documentation \
93         --enable-static
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post   -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %doc AUTHORS ChangeLog NEWS README
113 %attr(755,root,root) %{_libdir}/libgtksourceviewmm-2.0.so.*.*.*
114 %attr(755,root,root) %ghost %{_libdir}/libgtksourceviewmm-2.0.so.2
115
116 %files devel
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libgtksourceviewmm-2.0.so
119 %{_libdir}/gtksourceviewmm-2.0
120 %{_includedir}/gtksourceviewmm-2.0
121 %{_pkgconfigdir}/gtksourceviewmm-2.0.pc
122
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/libgtksourceviewmm-2.0.a
126
127 %if %{with apidocs}
128 %files apidocs
129 %defattr(644,root,root,755)
130 %{_datadir}/devhelp/books/gtksourceviewmm-2.0
131 %{_docdir}/gtksourceviewmm-2.0
132 %endif
This page took 0.407582 seconds and 3 git commands to generate.