]> git.pld-linux.org Git - SPECS.git/blob - gdl.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / gdl.spec
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.34.0
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gdl/3.34/%{name}-%{version}.tar.xz
13 # Source0-md5:  d624f2ca85555402828d5c4a98912b82
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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 The GNOME Devtools Library package provides a docking system and
30 several utilities useful to GNOME development tools and GNOME
31 applications in general.
32
33 %description -l pl.UTF-8
34 Pakiet GNOME Devtools Library zapewnia system dokujący oraz kilka
35 narzędzi przydatnych w narzędziach programistycznych GNOME oraz
36 ogólnie aplikacjach GNOME.
37
38 %package devel
39 Summary:        Header files for gdl development
40 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gdl
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43 Requires:       gtk+3-devel >= 3.0.0
44 Requires:       libxml2-devel >= 1:2.6.26
45
46 %description devel
47 This package contains the header files needed to develop programs that
48 use these gdl.
49
50 %description devel -l pl.UTF-8
51 Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów
52 używających bibliotek gdl.
53
54 %package static
55 Summary:        Static gdl library
56 Summary(pl.UTF-8):      Statyczna biblioteka gdl
57 Group:          Development/Libraries
58 Requires:       %{name}-devel = %{version}-%{release}
59
60 %description static
61 This package contains the static gdl library.
62
63 %description static -l pl.UTF-8
64 Pakiet zawiera statyczną bibliotekę gdl.
65
66 %package apidocs
67 Summary:        gdl library API documentation
68 Summary(pl.UTF-8):      Dokumentacja API biblioteki gdl
69 Group:          Documentation
70 Requires:       gtk-doc-common
71 BuildArch:      noarch
72
73 %description apidocs
74 gdl library API documentation.
75
76 %description apidocs -l pl.UTF-8
77 Dokumentacja API biblioteki gdl.
78
79 %prep
80 %setup -q
81
82 %build
83 #{__glib_gettextize}
84 %{__gtkdocize}
85 %{__intltoolize}
86 %{__libtoolize}
87 %{__aclocal} -I m4
88 %{__autoconf}
89 %{__autoheader}
90 %{__automake}
91 %configure \
92         --enable-gtk-doc \
93         --disable-silent-rules \
94         %{?with_static_libs:--enable-static} \
95         --with-html-dir=%{_gtkdocdir}
96
97 %{__make}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101
102 %{__make} install \
103         DESTDIR=$RPM_BUILD_ROOT
104
105 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
106
107 %find_lang %{name}-3
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %post   -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
114
115 %files -f %{name}-3.lang
116 %defattr(644,root,root,755)
117 %doc AUTHORS ChangeLog MAINTAINERS NEWS README
118 %attr(755,root,root) %{_libdir}/libgdl-3.so.*.*.*
119 %attr(755,root,root) %ghost %{_libdir}/libgdl-3.so.5
120 %{_libdir}/girepository-1.0/Gdl-3.typelib
121
122 %files devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libgdl-3.so
125 %{_datadir}/gir-1.0/Gdl-3.gir
126 %{_includedir}/libgdl-3.0
127 %{_pkgconfigdir}/gdl-3.0.pc
128
129 %if %{with static_libs}
130 %files static
131 %defattr(644,root,root,755)
132 %{_libdir}/libgdl-3.a
133 %endif
134
135 %files apidocs
136 %defattr(644,root,root,755)
137 %{_gtkdocdir}/gdl-3.0
This page took 0.107131 seconds and 3 git commands to generate.