3 %bcond_without static_libs # static library
5 Summary: GNOME Devtools Library
6 Summary(pl.UTF-8): Biblioteka GNOME Devtools Library
12 Source0: https://download.gnome.org/sources/gdl/3.40/%{name}-%{version}.tar.xz
13 # Source0-md5: 21df1254b49b74a498feb99be57364d0
14 URL: https://gitlab.gnome.org/GNOME/gdl
15 BuildRequires: autoconf >= 2.65
16 BuildRequires: automake >= 1:1.10
17 BuildRequires: docbook-dtd43-xml
18 BuildRequires: gettext-tools
19 BuildRequires: gobject-introspection-devel >= 0.10.0
20 BuildRequires: gtk+3-devel >= 3.0.0
21 BuildRequires: gtk-doc >= 1.4
22 BuildRequires: intltool >= 0.40.4
23 BuildRequires: libtool
24 BuildRequires: libxml2-devel >= 1:2.6.26
25 BuildRequires: pkgconfig
26 BuildRequires: rpm-build >= 4.6
27 BuildRequires: tar >= 1:1.22
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
36 %description -l pl.UTF-8
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.
42 Summary: Header files for gdl development
43 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gdl
44 Group: Development/Libraries
45 Requires: %{name} = %{version}-%{release}
46 Requires: gtk+3-devel >= 3.0.0
47 Requires: libxml2-devel >= 1:2.6.26
50 This package contains the header files needed to develop programs that
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.
58 Summary: Static gdl library
59 Summary(pl.UTF-8): Statyczna biblioteka gdl
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 This package contains the static gdl library.
66 %description static -l pl.UTF-8
67 Pakiet zawiera statyczną bibliotekę gdl.
70 Summary: gdl library API documentation
71 Summary(pl.UTF-8): Dokumentacja API biblioteki gdl
73 Requires: gtk-doc-common
77 gdl library API documentation.
79 %description apidocs -l pl.UTF-8
80 Dokumentacja API biblioteki gdl.
96 --disable-silent-rules \
97 %{?with_static_libs:--enable-static} \
98 --with-html-dir=%{_gtkdocdir}
103 rm -rf $RPM_BUILD_ROOT
106 DESTDIR=$RPM_BUILD_ROOT
108 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
113 rm -rf $RPM_BUILD_ROOT
115 %post -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
118 %files -f %{name}-3.lang
119 %defattr(644,root,root,755)
120 %doc AUTHORS ChangeLog MAINTAINERS NEWS README
121 %attr(755,root,root) %{_libdir}/libgdl-3.so.*.*.*
122 %attr(755,root,root) %ghost %{_libdir}/libgdl-3.so.5
123 %{_libdir}/girepository-1.0/Gdl-3.typelib
126 %defattr(644,root,root,755)
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
132 %if %{with static_libs}
134 %defattr(644,root,root,755)
135 %{_libdir}/libgdl-3.a
139 %defattr(644,root,root,755)
140 %{_gtkdocdir}/gdl-3.0