]>
Commit | Line | Data |
---|---|---|
25785130 | 1 | # |
3c6e57ed | 2 | # Conditional build: |
25785130 | 3 | # |
a87cb9a0 | 4 | %bcond_without static_libs # don't build static library |
3c6e57ed | 5 | # |
c3e08f6e | 6 | Summary: Useful routines for 'C' programming |
f313a9aa ER |
7 | Summary(cs.UTF-8): Šikovná knihovna s funkcemi pro pomocné programy |
8 | Summary(da.UTF-8): Nyttige biblioteksfunktioner | |
9 | Summary(de.UTF-8): Eine nützliche Library von Dienstprogramm-Funktionen | |
10 | Summary(fi.UTF-8): Kirjasto, jossa on työkalufunktioita | |
11 | Summary(fr.UTF-8): Bibliothèque de fonctions utilitaires | |
12 | Summary(pl.UTF-8): Biblioteka zawierająca wiele użytecznych funkcji C | |
13 | Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı | |
c3e08f6e | 14 | Name: glib |
7a470733 | 15 | Version: 1.2.10 |
d3a04f81 | 16 | Release: 18 |
0906a6f8 | 17 | Epoch: 1 |
66c43d4f | 18 | License: LGPL |
629808e0 | 19 | Group: Libraries |
66c43d4f | 20 | Source0: ftp://ftp.gtk.org/pub/gtk/v1.2/%{name}-%{version}.tar.gz |
1f636599 | 21 | #Source0-md5: 6fe30dad87c77b91b632def29dd69ef9 |
ae8c1bd3 | 22 | Source1: http://developer.gnome.org/doc/API/%{name}-docs.tar.gz |
1f636599 | 23 | #Source1-md5: cae06bf952176ab008100b7b954242f8 |
617e96b4 | 24 | Patch0: %{name}-info.patch |
fe932c69 | 25 | Patch1: %{name}-ac25.patch |
7ad806fd JB |
26 | Patch2: %{name}-am18.patch |
27 | Patch3: %{name}-link.patch | |
78f699b2 | 28 | Patch4: %{name}-gcc34.patch |
25785130 | 29 | Patch5: %{name}-slist_remove.patch |
d3a04f81 WF |
30 | Patch6: format-security.patch |
31 | Patch7: texi-subsection.patch | |
c3e08f6e | 32 | URL: http://www.gtk.org/ |
7ad806fd JB |
33 | BuildRequires: autoconf >= 2.13 |
34 | BuildRequires: automake >= 1.4 | |
35 | BuildRequires: libtool >= 1:1.4.2-9 | |
4ee75a2f | 36 | BuildRequires: texinfo |
7d6d6e01 | 37 | Obsoletes: libglib1.2 |
4ee75a2f | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
397f5985 | 39 | |
e991dc6a PS |
40 | %define specflags -fno-strict-aliasing |
41 | ||
397f5985 | 42 | %description |
66c43d4f | 43 | GLib, is a library which includes support routines for C such as |
44 | lists, trees, hashes, memory allocation, and many other things. GLIB | |
45 | includes also generally useful data structures used by GIMP and many | |
46 | other. | |
a691aa08 | 47 | |
3eeec5b9 JR |
48 | %description -l cs.UTF-8 |
49 | Šikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a | |
50 | hlavičky jsou v balíčku glib-devel. | |
65da578d | 51 | |
3eeec5b9 | 52 | %description -l da.UTF-8 |
66c43d4f | 53 | Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker |
54 | og headerfiler er i glib-devel pakken. | |
65da578d | 55 | |
3eeec5b9 JR |
56 | %description -l de.UTF-8 |
57 | Eine nützliche Library von Dienstprogramm-Funktionen. | |
66c43d4f | 58 | Entwicklungs-Libraries und Header befinden sich in glib-devel. |
65da578d | 59 | |
3eeec5b9 JR |
60 | %description -l fi.UTF-8 |
61 | Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja | |
51b045fc | 62 | header-tiedostot ovat glib-devel-paketissa. |
65da578d | 63 | |
3eeec5b9 JR |
64 | %description -l pl.UTF-8 |
65 | Glib jest zestawem bibliotek zawierających funkcje do obsługi list, | |
66 | drzewek, funkcji mieszających, funkcji do alokacji pamięci i wielu | |
67 | innych podstawowych funkcji i różnych struktur danych używanych przez | |
91fe8008 | 68 | program GIMP i wiele innych. |
397f5985 | 69 | |
3eeec5b9 JR |
70 | %description -l tr.UTF-8 |
71 | Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık | |
72 | dosyaları glib-devel paketinde yer almaktadır. | |
65da578d | 73 | |
17cd4045 | 74 | %package devel |
c3e08f6e | 75 | Summary: Glib heades files, documentation |
f313a9aa | 76 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do glib |
629808e0 | 77 | Group: Development/Libraries |
78f699b2 | 78 | Requires: %{name} = %{epoch}:%{version}-%{release} |
7d6d6e01 | 79 | Obsoletes: libglib1.2-devel |
397f5985 | 80 | |
81 | %description devel | |
66c43d4f | 82 | Header files for the support library for the GIMP's X libraries, which |
83 | are available as public libraries. GLIB includes generally useful data | |
397f5985 | 84 | structures. |
85 | ||
3eeec5b9 JR |
86 | %description devel -l pl.UTF-8 |
87 | Pliki nagłówkowe i dokumentacja do glib przydatna przy pisaniu | |
88 | programów wykorzystujących tę bibliotekę. | |
a691aa08 | 89 | |
17cd4045 | 90 | %package static |
c3e08f6e | 91 | Summary: Static glib libraries |
f313a9aa | 92 | Summary(pl.UTF-8): Biblioteki statyczne do glib |
629808e0 | 93 | Group: Development/Libraries |
78f699b2 | 94 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
397f5985 | 95 | |
96 | %description static | |
97 | Static glib libraries. | |
98 | ||
3eeec5b9 | 99 | %description static -l pl.UTF-8 |
a691aa08 | 100 | Biblioteki statyczne do glib. |
101 | ||
397f5985 | 102 | %prep |
ae8c1bd3 | 103 | %setup -q -a1 |
e16e3684 | 104 | %patch0 -p1 |
fe932c69 | 105 | %patch1 -p1 |
7ad806fd JB |
106 | %patch2 -p1 |
107 | %patch3 -p1 | |
78f699b2 | 108 | %patch4 -p1 |
25785130 | 109 | %patch5 -p1 |
d3a04f81 WF |
110 | %patch6 -p1 |
111 | %patch7 -p1 | |
397f5985 | 112 | |
113 | %build | |
fe932c69 | 114 | rm -f acinclude.m4 |
115 | %{__libtoolize} | |
77d244f8 | 116 | %{__aclocal} |
fe932c69 | 117 | %{__autoconf} |
118 | %{__automake} | |
119 | %configure \ | |
5864ade5 | 120 | --enable-debug=%{?debug:yes}%{!?debug:minimum} \ |
5f367b51 | 121 | --enable-threads \ |
a87cb9a0 | 122 | %{!?with_static_libs:--disable-static} |
e991dc6a | 123 | |
d1d945da | 124 | %{__make} -j1 all check |
9c648cf4 | 125 | |
397f5985 | 126 | %install |
127 | rm -rf $RPM_BUILD_ROOT | |
3fb7b258 | 128 | |
883b0653 | 129 | %{__make} install \ |
66c43d4f | 130 | DESTDIR=$RPM_BUILD_ROOT \ |
7a5dd753 JB |
131 | m4datadir=%{_aclocaldir} \ |
132 | pkgconfigdir=%{_pkgconfigdir} | |
397f5985 | 133 | |
d1d945da ER |
134 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
135 | ||
77d244f8 JB |
136 | %clean |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
26e2f6ef | 139 | %post -p /sbin/ldconfig |
140 | %postun -p /sbin/ldconfig | |
a691aa08 | 141 | |
052b9d31 ER |
142 | %post devel -p /sbin/postshell |
143 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
a691aa08 | 144 | |
052b9d31 ER |
145 | %postun devel -p /sbin/postshell |
146 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
397f5985 | 147 | |
148 | %files | |
66c43d4f | 149 | %defattr(644,root,root,755) |
9b456012 | 150 | %doc AUTHORS ChangeLog NEWS README |
17cd4045 | 151 | %attr(755,root,root) %{_libdir}/libg*.so.*.* |
d3a04f81 | 152 | %attr(755,root,root) %ghost %{_libdir}/libg*.so.0 |
397f5985 | 153 | |
154 | %files devel | |
c3e08f6e | 155 | %defattr(644,root,root,755) |
9b456012 | 156 | %doc glib/*.html |
3fb7b258 | 157 | %attr(755,root,root) %{_bindir}/glib-config |
d175ce4d | 158 | %attr(755,root,root) %{_libdir}/lib*.so |
fdaf9739 | 159 | %{_libdir}/lib*.la |
31f1d041 | 160 | %{_libdir}/glib |
5208ef24 | 161 | %{_includedir}/* |
3fb7b258 | 162 | %{_pkgconfigdir}/* |
66c43d4f | 163 | %{_aclocaldir}/* |
31f1d041 | 164 | %{_infodir}/glib.info* |
cebc1c8e | 165 | %{_mandir}/man1/glib-config.1* |
397f5985 | 166 | |
a87cb9a0 | 167 | %if %{with static_libs} |
397f5985 | 168 | %files static |
66c43d4f | 169 | %defattr(644,root,root,755) |
170 | %{_libdir}/lib*.a | |
5f367b51 | 171 | %endif |