]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | %include /usr/lib/rpm/macros.perl | |
3 | # | |
4 | Summary: Simple configuration storage and query system | |
5 | Summary(pl.UTF-8): Prosty system przechowywania i odpytywania konfiguracji | |
6 | Name: xfconf | |
7 | Version: 4.6.2 | |
8 | Release: 1 | |
9 | License: GPL v2 | |
10 | Group: Libraries | |
11 | Source0: http://www.xfce.org/archive/xfce-%{version}/src/%{name}-%{version}.tar.bz2 | |
12 | # Source0-md5: 5ff93c15077c6dbbcd38c437bc1ab2ef | |
13 | URL: http://www.xfce.org/projects/xfconf/ | |
14 | BuildRequires: autoconf >= 2.50 | |
15 | BuildRequires: automake >= 1:1.8 | |
16 | BuildRequires: dbus-devel >= 1.0.0 | |
17 | BuildRequires: dbus-glib-devel >= 0.72 | |
18 | BuildRequires: gettext-devel | |
19 | BuildRequires: glib2-devel >= 1:2.12.0 | |
20 | BuildRequires: gtk-doc >= 1.0 | |
21 | BuildRequires: libtool | |
22 | BuildRequires: libxfce4util-devel >= %{version} | |
23 | BuildRequires: perl-ExtUtils-Depends >= 0.3 | |
24 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.0 | |
25 | BuildRequires: perl-Glib >= 1.020 | |
26 | BuildRequires: pkgconfig | |
27 | BuildRequires: rpm-perlprov | |
28 | BuildRequires: rpmbuild(macros) >= 1.98 | |
29 | BuildRequires: xfce4-dev-tools >= 4.6.0 | |
30 | Obsoletes: libxfce4mcs | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | Xfconf is a simple configuration storage and query system. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Xfconf jest prostym systemem przechowywania i odpytywania | |
38 | konfiguracji. | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for Xfconf library | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Xfconf | |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | Requires: dbus-devel >= 1.0.0 | |
46 | Requires: dbus-glib-devel >= 0.72 | |
47 | Requires: glib2-devel >= 1:2.12.0 | |
48 | Obsoletes: libxfce4mcs-devel | |
49 | Obsoletes: xfce-mcs-manager-devel | |
50 | ||
51 | %description devel | |
52 | Header files for Xfconf library. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Pliki nagłówkowe biblioteki Xfconf. | |
56 | ||
57 | %package static | |
58 | Summary: Static Xfconf library | |
59 | Summary(pl.UTF-8): Statyczna biblioteka Xfconf | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | Obsoletes: libxfce4mcs-static | |
63 | ||
64 | %description static | |
65 | Static Xfconf library. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczna biblioteka Xfconf. | |
69 | ||
70 | %package apidocs | |
71 | Summary: Xfconf API documentation | |
72 | Summary(pl.UTF-8): Dokumentacja API Xfconf | |
73 | Group: Documentation | |
74 | Requires: gtk-doc-common | |
75 | Obsoletes: libxfce4mcs-apidocs | |
76 | ||
77 | %description apidocs | |
78 | Xfconf API documentation. | |
79 | ||
80 | %description apidocs -l pl.UTF-8 | |
81 | Dokumentacja API Xfconf. | |
82 | ||
83 | %package -n perl-Xfce4-Xfconf | |
84 | Summary: Perl interface to the Xfce4 Xfconf | |
85 | Summary(pl.UTF-8): Interfejs perlowy do Xfce4 Xfconf | |
86 | Group: Development/Languages/Perl | |
87 | Requires: perl-Glib >= 1.020 | |
88 | ||
89 | %description -n perl-Xfce4-Xfconf | |
90 | Perl interface to the Xfce4 Xfconf. | |
91 | ||
92 | %description -n perl-Xfce4-Xfconf -l pl.UTF-8 | |
93 | Interfejs perlowy do Xfce4 Xfconf. | |
94 | ||
95 | %prep | |
96 | %setup -q | |
97 | ||
98 | %build | |
99 | %{__libtoolize} | |
100 | %{__aclocal} | |
101 | %{__autoconf} | |
102 | %{__autoheader} | |
103 | %{__automake} | |
104 | %configure \ | |
105 | --enable-gtk-doc \ | |
106 | --with-html-dir=%{_gtkdocdir} \ | |
107 | --with-perl-options="INSTALLDIRS=vendor" | |
108 | %{__make} | |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml | |
113 | ||
114 | %{__make} install \ | |
115 | DESTDIR=$RPM_BUILD_ROOT | |
116 | ||
117 | %{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod | |
118 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Xfce4/Xfconf/.packlist | |
119 | ||
120 | %find_lang %{name} | |
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 ChangeLog NEWS TODO | |
131 | %attr(755,root,root) %{_bindir}/xfconf-query | |
132 | %attr(755,root,root) %{_libdir}/libxfconf-0.so.*.*.* | |
133 | %attr(755,root,root) %ghost %{_libdir}/libxfconf-0.so.2 | |
134 | %attr(755,root,root) %{_libdir}/xfconfd | |
135 | %dir %{_sysconfdir}/xdg/xfce4/xfconf | |
136 | %dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml | |
137 | %{_datadir}/dbus-1/services/org.xfce.Xfconf.service | |
138 | ||
139 | %files devel | |
140 | %defattr(644,root,root,755) | |
141 | %attr(755,root,root) %{_libdir}/libxfconf-0.so | |
142 | %{_libdir}/libxfconf-0.la | |
143 | %{_includedir}/xfce4/xfconf-0 | |
144 | %{_pkgconfigdir}/libxfconf-0.pc | |
145 | ||
146 | %files static | |
147 | %defattr(644,root,root,755) | |
148 | %{_libdir}/libxfconf-0.a | |
149 | ||
150 | %files apidocs | |
151 | %defattr(644,root,root,755) | |
152 | %{_gtkdocdir}/xfconf | |
153 | ||
154 | %files -n perl-Xfce4-Xfconf | |
155 | %defattr(644,root,root,755) | |
156 | %attr(755,root,root) %{perl_vendorarch}/auto/Xfce4/Xfconf/Xfconf.so | |
157 | %dir %{perl_vendorarch}/Xfce4 | |
158 | %{perl_vendorarch}/Xfce4/Xfconf.pm | |
159 | %dir %{perl_vendorarch}/Xfce4/Xfconf | |
160 | %{perl_vendorarch}/Xfce4/Xfconf/Install | |
161 | %dir %{perl_vendorarch}/auto/Xfce4 | |
162 | %dir %{perl_vendorarch}/auto/Xfce4/Xfconf | |
163 | %{perl_vendorarch}/auto/Xfce4/Xfconf/*.bs | |
164 | %{_mandir}/man3/Xfce4::Xfconf.3pm* |