]>
Commit | Line | Data |
---|---|---|
3b6f844f JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
08eb8cd3 | 4 | |
3b6f844f JB |
5 | Summary: GNOME Devtools Library |
6 | Summary(pl.UTF-8): Biblioteka GNOME Devtools Library | |
c95a282d | 7 | Name: gdl |
50d2f9ba | 8 | Version: 3.40.0 |
4e8a3220 | 9 | Release: 1 |
3b6f844f | 10 | License: LGPL v2.1+ |
c95a282d | 11 | Group: Libraries |
50d2f9ba JB |
12 | Source0: https://download.gnome.org/sources/gdl/3.40/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 21df1254b49b74a498feb99be57364d0 | |
15aa7e9f | 14 | URL: https://gitlab.gnome.org/GNOME/gdl |
376cfa5b | 15 | BuildRequires: autoconf >= 2.65 |
3b6f844f JB |
16 | BuildRequires: automake >= 1:1.10 |
17 | BuildRequires: docbook-dtd43-xml | |
3e6268c9 | 18 | BuildRequires: gettext-tools |
376cfa5b MB |
19 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
20 | BuildRequires: gtk+3-devel >= 3.0.0 | |
89566316 | 21 | BuildRequires: gtk-doc >= 1.4 |
e0cd39c8 | 22 | BuildRequires: intltool >= 0.40.4 |
c95a282d | 23 | BuildRequires: libtool |
89566316 | 24 | BuildRequires: libxml2-devel >= 1:2.6.26 |
b2420242 | 25 | BuildRequires: pkgconfig |
50d2f9ba JB |
26 | BuildRequires: rpm-build >= 4.6 |
27 | BuildRequires: tar >= 1:1.22 | |
28 | BuildRequires: xz | |
c95a282d | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
3b6f844f JB |
32 | The GNOME Devtools Library package provides a docking system and |
33 | several utilities useful to GNOME development tools and GNOME | |
34 | applications in general. | |
c95a282d | 35 | |
f403039b | 36 | %description -l pl.UTF-8 |
3b6f844f JB |
37 | Pakiet GNOME Devtools Library zapewnia system dokujący oraz kilka |
38 | narzędzi przydatnych w narzędziach programistycznych GNOME oraz | |
39 | ogólnie aplikacjach GNOME. | |
a070abb4 | 40 | |
c95a282d | 41 | %package devel |
42 | Summary: Header files for gdl development | |
3b6f844f | 43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gdl |
c95a282d | 44 | Group: Development/Libraries |
4ddc4132 | 45 | Requires: %{name} = %{version}-%{release} |
376cfa5b | 46 | Requires: gtk+3-devel >= 3.0.0 |
89566316 | 47 | Requires: libxml2-devel >= 1:2.6.26 |
c95a282d | 48 | |
49 | %description devel | |
50 | This package contains the header files needed to develop programs that | |
51 | use these gdl. | |
52 | ||
f403039b JR |
53 | %description devel -l pl.UTF-8 |
54 | Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów | |
55 | używających bibliotek gdl. | |
c95a282d | 56 | |
57 | %package static | |
3b6f844f JB |
58 | Summary: Static gdl library |
59 | Summary(pl.UTF-8): Statyczna biblioteka gdl | |
c95a282d | 60 | Group: Development/Libraries |
4ddc4132 | 61 | Requires: %{name}-devel = %{version}-%{release} |
c95a282d | 62 | |
63 | %description static | |
3b6f844f | 64 | This package contains the static gdl library. |
c95a282d | 65 | |
f403039b | 66 | %description static -l pl.UTF-8 |
3b6f844f | 67 | Pakiet zawiera statyczną bibliotekę gdl. |
c95a282d | 68 | |
89566316 MB |
69 | %package apidocs |
70 | Summary: gdl library API documentation | |
71 | Summary(pl.UTF-8): Dokumentacja API biblioteki gdl | |
72 | Group: Documentation | |
73 | Requires: gtk-doc-common | |
08eb8cd3 | 74 | BuildArch: noarch |
89566316 MB |
75 | |
76 | %description apidocs | |
77 | gdl library API documentation. | |
78 | ||
79 | %description apidocs -l pl.UTF-8 | |
80 | Dokumentacja API biblioteki gdl. | |
81 | ||
c95a282d | 82 | %prep |
83 | %setup -q | |
84 | ||
85 | %build | |
3b6f844f | 86 | #{__glib_gettextize} |
d09dd964 | 87 | %{__gtkdocize} |
e90ea9cb | 88 | %{__intltoolize} |
c95a282d | 89 | %{__libtoolize} |
376cfa5b | 90 | %{__aclocal} -I m4 |
c95a282d | 91 | %{__autoconf} |
89566316 | 92 | %{__autoheader} |
c95a282d | 93 | %{__automake} |
ed81ca9b | 94 | %configure \ |
89566316 | 95 | --enable-gtk-doc \ |
3b6f844f JB |
96 | --disable-silent-rules \ |
97 | %{?with_static_libs:--enable-static} \ | |
98 | --with-html-dir=%{_gtkdocdir} | |
ed81ca9b | 99 | |
c95a282d | 100 | %{__make} |
101 | ||
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %{__make} install \ | |
106 | DESTDIR=$RPM_BUILD_ROOT | |
107 | ||
376cfa5b MB |
108 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
109 | ||
110 | %find_lang %{name}-3 | |
c95a282d | 111 | |
112 | %clean | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
97e15588 JB |
115 | %post -p /sbin/ldconfig |
116 | %postun -p /sbin/ldconfig | |
c95a282d | 117 | |
376cfa5b | 118 | %files -f %{name}-3.lang |
c95a282d | 119 | %defattr(644,root,root,755) |
3b6f844f | 120 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
376cfa5b | 121 | %attr(755,root,root) %{_libdir}/libgdl-3.so.*.*.* |
e0cd39c8 | 122 | %attr(755,root,root) %ghost %{_libdir}/libgdl-3.so.5 |
376cfa5b | 123 | %{_libdir}/girepository-1.0/Gdl-3.typelib |
c95a282d | 124 | |
125 | %files devel | |
126 | %defattr(644,root,root,755) | |
376cfa5b MB |
127 | %attr(755,root,root) %{_libdir}/libgdl-3.so |
128 | %{_datadir}/gir-1.0/Gdl-3.gir | |
129 | %{_includedir}/libgdl-3.0 | |
130 | %{_pkgconfigdir}/gdl-3.0.pc | |
c95a282d | 131 | |
3b6f844f | 132 | %if %{with static_libs} |
c95a282d | 133 | %files static |
134 | %defattr(644,root,root,755) | |
376cfa5b | 135 | %{_libdir}/libgdl-3.a |
3b6f844f | 136 | %endif |
89566316 MB |
137 | |
138 | %files apidocs | |
139 | %defattr(644,root,root,755) | |
376cfa5b | 140 | %{_gtkdocdir}/gdl-3.0 |