]> git.pld-linux.org Git - packages/GConf2.git/blob - GConf2.spec
- s/bcond_without static/bcond_without static_libs/
[packages/GConf2.git] / GConf2.spec
1 %bcond_without  static_libs     # don't build static libraries
2 Summary:        GNOME2 configuration database system
3 Summary(pl):    System konfiguracyjnej bazy danych dla GNOME 2
4 Summary(pt_BR): Sistema de Configuração do GNOME 2
5 Summary(ru):    óÉÓÔÅÍÁ ËÏÎÆÉÇÕÒÁÃÉÉ GNOME 2
6 Name:           GConf2
7 Version:        2.10.0
8 Release:        5
9 License:        LGPL
10 Group:          X11/Applications
11 Source0:        http://ftp.gnome.org/pub/gnome/sources/GConf/2.10/GConf-%{version}.tar.bz2
12 # Source0-md5:  a7cd37be4e317195a6668a086fc72033
13 Patch0:         %{name}-NO_MAJOR_VERSION.patch
14 Patch1:         %{name}-path.patch
15 Patch2:         %{name}-shutdown.patch
16 URL:            http://www.gnome.org/
17 BuildRequires:  ORBit2-devel >= 1:2.12.1
18 BuildRequires:  autoconf
19 BuildRequires:  automake >= 1:1.7
20 BuildRequires:  gettext-devel
21 BuildRequires:  gtk+2-devel >= 2:2.6.4
22 BuildRequires:  gtk-doc >= 1.3
23 BuildRequires:  libtool
24 BuildRequires:  libxml2-devel >= 1:2.6.19
25 BuildRequires:  perl-base
26 BuildRequires:  pkgconfig
27 BuildRequires:  popt-devel
28 BuildRequires:  rpmbuild(macros) >= 1.197
29 Obsoletes:      libGConf2
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 GConf2 is a configuration database system, functionally similar to the
34 Windows registry but lots better. :-) It's being written for the
35 GNOME2 desktop but does not require GNOME2; configure should notice if
36 GNOME2 is not installed and compile the basic GConf2 library anyway.
37
38 %description -l pl
39 GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
40 podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
41 desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
42 wykryæ brak GNOME2 i skompilowaæ tylko wersjê podstawow± GConf2.
43
44 %description -l pt_BR
45 Gconf2 é o sistema de banco de dados de configuração do GNOME2.
46
47 %package devel
48 Summary:        GConf2 includes, etc
49 Summary(pl):    Pliki nag³ówkowe GConf2
50 Summary(pt_BR): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
51 Group:          X11/Development/Libraries
52 Requires:       %{name} = %{version}-%{release}
53 Requires:       ORBit2-devel >= 1:2.12.1
54 Requires:       gtk-doc-common
55 Requires:       libxml2-devel >= 1:2.6.19
56 Obsoletes:      libGConf2-devel
57
58 %description devel
59 GConf2 includes etc.
60
61 %description devel -l pl
62 Pliki nag³ówkowe GConf2.
63
64 %description devel -l pt_BR
65 Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
66
67 %package static
68 Summary:        GConf2 static libraries
69 Summary(pl):    Biblioteki statyczne GConf2
70 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com gconf2
71 Group:          X11/Development/Libraries
72 Requires:       %{name}-devel = %{version}-%{release}
73
74 %description static
75 GConf2 static libraries.
76
77 %description static -l pl
78 Biblioteki statyczne GConf2.
79
80 %description static -l pt_BR
81 Bibliotecas estáticas para desenvolvimento com gconf
82
83 %prep
84 %setup -q -n GConf-%{version}
85 %patch0 -p1
86 %patch1 -p1
87 %patch2 -p1
88
89 %build
90 rm -f acinclude.m4
91 %{__glib_gettextize}
92 %{__libtoolize}
93 %{__aclocal}
94 %{__autoheader}
95 %{__autoconf}
96 %{__automake}
97 %configure \
98         --with-html-dir=%{_gtkdocdir} \
99         %{!?with_static_libs:--disable-static} \
100 %ifarch ppc
101         --disable-gtk-doc
102 %else
103         --enable-gtk-doc
104 %endif
105
106 %{__make}
107
108 %install
109 rm -rf $RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas
111
112 %{__make} install \
113         DESTDIR=$RPM_BUILD_ROOT
114
115 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
116
117 %find_lang %{name}
118
119 # no *.{la,a} for modules - shut up check-files
120 rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
121
122 %clean
123 rm -rf $RPM_BUILD_ROOT
124
125 %post   -p /sbin/ldconfig
126 %postun -p /sbin/ldconfig
127
128 %files -f %{name}.lang
129 %defattr(644,root,root,755)
130 %doc AUTHORS NEWS README
131 %attr(755,root,root) %{_bindir}/gconf*
132 %attr(755,root,root) %{_libdir}/gconf-sanity-check-2
133 %attr(755,root,root) %{_libdir}/gconfd-2
134 %attr(755,root,root) %{_libdir}/lib*.so.*.*
135 %dir %{_libdir}/GConf2
136 %attr(755,root,root) %{_libdir}/GConf2/lib*.so
137 %{_sysconfdir}/gconf
138 %{_datadir}/sgml/gconf
139 %{_mandir}/man1/*
140
141 %files devel
142 %defattr(644,root,root,755)
143 %doc ChangeLog TODO
144 %attr(755,root,root) %{_libdir}/lib*.so
145 %{_libdir}/lib*.la
146 %{_includedir}/gconf2
147 %{_aclocaldir}/*.m4
148 %{_pkgconfigdir}/*.pc
149 %{_gtkdocdir}/gconf
150
151 %if %{with static_libs}
152 %files static
153 %defattr(644,root,root,755)
154 %{_libdir}/lib*.a
155 %endif
This page took 0.05403 seconds and 4 git commands to generate.