]> git.pld-linux.org Git - packages/glib2.git/blob - glib2.spec
- use optflags
[packages/glib2.git] / glib2.spec
1 Summary:        Useful routines for 'C' programming
2 Summary(cs):    ©ikovná knihovna s funkcemi pro pomocné programy
3 Summary(da):    Nyttige biblioteksfunktioner
4 Summary(de):    Eine nützliche Library von Dienstprogramm-Funktionen
5 Summary(fi):    Kirjasto, jossa on työkalufunktioita
6 Summary(fr):    Bibliothèque de fonctions utilitaires
7 Summary(pl):    Biblioteka zawieraj±ca wiele u¿ytecznych funkcji C
8 Summary(tr):    Yararlý ufak yordamlar kitaplýðý
9 Name:           glib2
10 Version:        2.0.3
11 Release:        1
12 License:        LGPL
13 Group:          Libraries
14 Source0:        ftp://ftp.gtk.org/pub/gtk/v2.0/glib-%{version}.tar.bz2
15 Patch0:         %{name}-DESTDIR.patch
16 URL:            http://www.gtk.org/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  gettext-devel
20 BuildRequires:  libtool
21 BuildRequires:  pkgconfig
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 GLib, is a library which includes support routines for C such as
26 lists, trees, hashes, memory allocation, and many other things. GLIB
27 includes also generally useful data structures used by GIMP and many
28 other.
29
30 %description -l cs
31 ©ikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a
32 hlavièky jsou v balíèku glib-devel.
33
34 %description -l da
35 Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker
36 og headerfiler er i glib-devel pakken.
37
38 %description -l de
39 Eine nützliche Library von Dienstprogramm-Funktionen.
40 Entwicklungs-Libraries und Header befinden sich in glib-devel.
41
42 %description -l fi
43 Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja
44 header-tiedostot ovat glib-devel-paketissa.
45
46 %description -l pl
47 Glib jest zestawem bibliotek zawieraj±cych funkcje do obs³ugi list i
48 drzew, funkcje mieszaj±ce, funkcje do alokacji pamiêci i du¿o
49 innych podstawowych funkcji i ró¿nych struktur danych u¿ywanych przez
50 program GIMP i wiele innych.
51
52 %description -l tr
53 Yararlý yordamlar kitaplýðý. Geliþtirme kitaplýklarý ve baþlýk
54 dosyalarý glib-devel paketinde yer almaktadýr.
55
56 %package devel
57 Summary:        Glib heades files, documentation
58 Summary(pl):    Pliki nag³ówkowe i dokumentacja do glib
59 Group:          Development/Libraries
60 Requires:       %{name} = %{version}
61
62 %description devel
63 Header files for the support library for the GIMP's X libraries, which
64 are available as public libraries. GLIB includes generally useful data
65 structures.
66
67 %description devel -l pl
68 Pliki nag³ówkowe i dokumentacja do glib przydatna przy pisaniu
69 programów wykorzystuj±cych tê bibliotekê.
70
71 %package static
72 Summary:        Static glib libraries
73 Summary(pl):    Biblioteki statyczne glib
74 Group:          Development/Libraries
75 Requires:       %{name}-devel = %{version}
76
77 %description static
78 Static glib libraries.
79
80 %description static -l pl
81 Biblioteki statyczne glib.
82
83 %prep
84 %setup -q -n glib-%{version}
85 %patch0 -p1
86
87 %build
88 #%{__libtoolize}
89 #%{__gettextize}
90 aclocal
91 %{__autoconf}
92 #%{__automake}
93
94 # Inside %%install gobject is linked against just built (installed)
95 # version of glib.
96 LDFLAGS="%{rpmldflags} -L%{buildroot}%{_libdir}"
97 %configure \
98         --enable-threads \
99         --enable-gtk-doc=no \
100         --enable-static
101 %{__make}
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT \
108         m4datadir=%{_aclocaldir} \
109         pkgconfigdir=%{_pkgconfigdir}
110
111 mv -f $RPM_BUILD_ROOT%{_mandir}/man1/glib{,2}-mkenums.1
112 mv -f $RPM_BUILD_ROOT%{_mandir}/man1/glib{,2}-genmarshal.1
113
114 %find_lang glib --with-gnome --all-name
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %post   -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
121
122 %files -f glib.lang
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libg*.so.*.*
125
126 %files devel
127 %defattr(644,root,root,755)
128 %doc AUTHORS ChangeLog NEWS README
129 %attr(755,root,root) %{_bindir}/*
130 %attr(755,root,root) %{_libdir}/lib*.so
131 %attr(755,root,root) %{_libdir}/lib*.la
132 %{_pkgconfigdir}/*
133 %{_libdir}/glib-2.0
134 %{_includedir}/*
135 %{_datadir}/gtk-doc/html/glib
136 %{_datadir}/gtk-doc/html/gobject
137 %{_aclocaldir}/*
138 %{_mandir}/man?/glib*
139
140 %files static
141 %defattr(644,root,root,755)
142 %{_libdir}/lib*.a
This page took 0.032872 seconds and 3 git commands to generate.