]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | ||
5 | Summary: GNOME Devtools Library | |
6 | Summary(pl.UTF-8): Biblioteka GNOME Devtools Library | |
7 | Name: gdl | |
8 | Version: 3.40.0 | |
9 | Release: 1 | |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries | |
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 | |
28 | BuildRequires: xz | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
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. | |
35 | ||
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. | |
40 | ||
41 | %package devel | |
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 | |
48 | ||
49 | %description devel | |
50 | This package contains the header files needed to develop programs that | |
51 | use these gdl. | |
52 | ||
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. | |
56 | ||
57 | %package static | |
58 | Summary: Static gdl library | |
59 | Summary(pl.UTF-8): Statyczna biblioteka gdl | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | This package contains the static gdl library. | |
65 | ||
66 | %description static -l pl.UTF-8 | |
67 | Pakiet zawiera statyczną bibliotekę gdl. | |
68 | ||
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 | |
74 | BuildArch: noarch | |
75 | ||
76 | %description apidocs | |
77 | gdl library API documentation. | |
78 | ||
79 | %description apidocs -l pl.UTF-8 | |
80 | Dokumentacja API biblioteki gdl. | |
81 | ||
82 | %prep | |
83 | %setup -q | |
84 | ||
85 | %build | |
86 | #{__glib_gettextize} | |
87 | %{__gtkdocize} | |
88 | %{__intltoolize} | |
89 | %{__libtoolize} | |
90 | %{__aclocal} -I m4 | |
91 | %{__autoconf} | |
92 | %{__autoheader} | |
93 | %{__automake} | |
94 | %configure \ | |
95 | --enable-gtk-doc \ | |
96 | --disable-silent-rules \ | |
97 | %{?with_static_libs:--enable-static} \ | |
98 | --with-html-dir=%{_gtkdocdir} | |
99 | ||
100 | %{__make} | |
101 | ||
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %{__make} install \ | |
106 | DESTDIR=$RPM_BUILD_ROOT | |
107 | ||
108 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
109 | ||
110 | %find_lang %{name}-3 | |
111 | ||
112 | %clean | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %post -p /sbin/ldconfig | |
116 | %postun -p /sbin/ldconfig | |
117 | ||
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 | |
124 | ||
125 | %files devel | |
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 | |
131 | ||
132 | %if %{with static_libs} | |
133 | %files static | |
134 | %defattr(644,root,root,755) | |
135 | %{_libdir}/libgdl-3.a | |
136 | %endif | |
137 | ||
138 | %files apidocs | |
139 | %defattr(644,root,root,755) | |
140 | %{_gtkdocdir}/gdl-3.0 |