]>
Commit | Line | Data |
---|---|---|
49825823 MB |
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: libgtksourceviewmm2 | |
8 | Version: 1.9.3 | |
9 | Release: 1 | |
f24e71ea | 10 | License: LGPL v2+ |
49825823 MB |
11 | Group: Libraries |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgtksourceviewmm/1.9/libgtksourceviewmm-%{version}.tar.bz2 | |
13 | # Source0-md5: bdd4586b3dbddd00a475d5569a36b391 | |
14 | URL: http://home.gna.org/gtksourceviewmm/ | |
15 | BuildRequires: autoconf >= 2.59 | |
16 | BuildRequires: automake >= 1:1.9 | |
17 | %{?with_apidocs:BuildRequires: doxygen} | |
18 | BuildRequires: gtkmm-devel >= 2.12.1 | |
19 | BuildRequires: gtksourceview2-devel >= 2.0.0 | |
20 | BuildRequires: libtool | |
21 | BuildRequires: pkgconfig | |
22 | Requires(post,postun): /sbin/ldconfig | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | GtkSourceViewMM2 is a C++ binding of GtkSourceView2, an extension to | |
27 | the text widget included in GTK+ 2.x adding syntax highlighting and | |
28 | other features typical for a source file editor. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | GtkSourceViewMM2 to wiązania C++ dla GtkSourceView2 - rozszerzenia | |
32 | tekstowego widgetu będącego częścią GTK+ 2.x, dodającego kolorowanie | |
33 | składni oraz inne właściwości typowe dla edytora kodu źródłowego. | |
34 | ||
35 | %package devel | |
36 | Summary: Header files for libgtksourceviewmm2 library | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgtksourceviewmm2 | |
38 | Group: Development/Libraries | |
39 | Requires: gtkmm-devel >= 2.12.1 | |
40 | Requires: gtksourceview2-devel >= 2.0.0 | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | Header files for libgtksourceviewmm2 library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki libgtksourceviewmm2. | |
48 | ||
49 | %package static | |
50 | Summary: Static libgtksourceviewmm2 library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka libgtksourceviewmm2 | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static libgtksourceviewmm2 library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka libgtksourceviewmm2. | |
60 | ||
61 | %package apidocs | |
62 | Summary: libgtksourceviewmm2 API documentation | |
63 | Summary(pl.UTF-8): Dokumentacja API libgtksourceviewmm2 | |
64 | Group: Documentation | |
65 | ||
66 | %description apidocs | |
67 | libgtksourceviewmm2 API documentation. | |
68 | ||
69 | %description apidocs -l pl.UTF-8 | |
70 | Dokumentacja API libgtksourceviewmm2. | |
71 | ||
72 | %prep | |
73 | %setup -q -n libgtksourceviewmm-%{version} | |
74 | ||
75 | %build | |
76 | %{__libtoolize} | |
77 | %{__aclocal} -I scripts | |
78 | %{__autoconf} | |
79 | %{__autoheader} | |
80 | %{__automake} | |
81 | %configure \ | |
82 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-docs \ | |
83 | --enable-static | |
84 | %{__make} | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %{__make} install \ | |
90 | DESTDIR=$RPM_BUILD_ROOT | |
91 | ||
f24e71ea JB |
92 | # conflict with libgtksourceviewmm 0.x |
93 | mv $RPM_BUILD_ROOT%{_libdir}/gtksourceviewmm-1.0/proc $RPM_BUILD_ROOT%{_libdir}/gtksourceviewmm-2.0/proc | |
94 | ||
49825823 MB |
95 | %if %{with apidocs} |
96 | rm -rf $RPM_BUILD_ROOT%{_docdir}/libgtksourceviewmm-1.0 | |
97 | %endif | |
98 | ||
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
107 | %doc AUTHORS ChangeLog NEWS README | |
108 | %attr(755,root,root) %{_libdir}/libgtksourceviewmm-2.0.so.*.*.* | |
f24e71ea | 109 | %attr(755,root,root) %ghost %{_libdir}/libgtksourceviewmm-2.0.so.1 |
49825823 MB |
110 | |
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
113 | %attr(755,root,root) %{_libdir}/libgtksourceviewmm-2.0.so | |
114 | %{_libdir}/libgtksourceviewmm-2.0.la | |
115 | %{_libdir}/gtksourceviewmm-2.0 | |
116 | %{_includedir}/gtksourceviewmm-2.0 | |
117 | %{_pkgconfigdir}/gtksourceviewmm-2.0.pc | |
118 | ||
119 | %files static | |
120 | %defattr(644,root,root,755) | |
121 | %{_libdir}/libgtksourceviewmm-2.0.a | |
122 | ||
123 | %if %{with apidocs} | |
124 | %files apidocs | |
125 | %defattr(644,root,root,755) | |
126 | %doc docs/reference/html | |
127 | %endif |