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