]>
Commit | Line | Data |
---|---|---|
403787ea MB |
1 | # |
2 | %include /usr/lib/rpm/macros.perl | |
3 | # | |
c20082ad | 4 | %define xfce_version 4.10.0 |
403787ea MB |
5 | Summary: Simple configuration storage and query system |
6 | Summary(pl.UTF-8): Prosty system przechowywania i odpytywania konfiguracji | |
7 | Name: xfconf | |
88b981fc | 8 | Version: 4.10.0 |
cd7745dd | 9 | Release: 5 |
fb9046aa | 10 | License: LGPL v2 |
403787ea | 11 | Group: Libraries |
88b981fc JR |
12 | Source0: http://archive.xfce.org/xfce/4.10/src/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 4ed48150a03fb5f42b455494307b7f28 | |
fe5bb159 | 14 | URL: http://www.xfce.org/projects/xfconf |
fb9046aa JB |
15 | BuildRequires: dbus-devel >= 1.1.0 |
16 | BuildRequires: dbus-glib-devel >= 0.84 | |
e0083b78 | 17 | BuildRequires: docbook-dtd412-xml |
403787ea | 18 | BuildRequires: gettext-devel |
fb9046aa | 19 | BuildRequires: glib2-devel >= 1:2.24.0 |
403787ea | 20 | BuildRequires: gtk-doc >= 1.0 |
c20082ad | 21 | BuildRequires: libxfce4util-devel >= %{xfce_version} |
403787ea MB |
22 | BuildRequires: perl-ExtUtils-Depends >= 0.3 |
23 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.0 | |
50647875 | 24 | BuildRequires: perl-Glib-devel >= 1.224-2 |
fb9046aa | 25 | BuildRequires: perl-devel >= 1:5.6 |
403787ea MB |
26 | BuildRequires: pkgconfig |
27 | BuildRequires: rpm-perlprov | |
28 | BuildRequires: rpmbuild(macros) >= 1.98 | |
c287f575 | 29 | BuildRequires: xfce4-dev-tools >= 4.10.0 |
fb9046aa JB |
30 | Requires: dbus-glib >= 0.84 |
31 | Requires: dbus-libs >= 1.1.0 | |
32 | Requires: glib2 >= 1:2.24.0 | |
33 | Requires: libxfce4util >= %{xfce_version} | |
3e32f690 | 34 | Obsoletes: libxfce4mcs |
403787ea MB |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
38 | Xfconf is a simple configuration storage and query system. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Xfconf jest prostym systemem przechowywania i odpytywania | |
42 | konfiguracji. | |
43 | ||
44 | %package devel | |
45 | Summary: Header files for Xfconf library | |
46 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Xfconf | |
47 | Group: Development/Libraries | |
48 | Requires: %{name} = %{version}-%{release} | |
fb9046aa JB |
49 | Requires: dbus-devel >= 1.1.0 |
50 | Requires: dbus-glib-devel >= 0.84 | |
51 | Requires: glib2-devel >= 1:2.24.0 | |
3e32f690 MB |
52 | Obsoletes: libxfce4mcs-devel |
53 | Obsoletes: xfce-mcs-manager-devel | |
403787ea MB |
54 | |
55 | %description devel | |
56 | Header files for Xfconf library. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Pliki nagłówkowe biblioteki Xfconf. | |
60 | ||
403787ea MB |
61 | %package apidocs |
62 | Summary: Xfconf API documentation | |
63 | Summary(pl.UTF-8): Dokumentacja API Xfconf | |
64 | Group: Documentation | |
65 | Requires: gtk-doc-common | |
3e32f690 | 66 | Obsoletes: libxfce4mcs-apidocs |
403787ea MB |
67 | |
68 | %description apidocs | |
69 | Xfconf API documentation. | |
70 | ||
71 | %description apidocs -l pl.UTF-8 | |
72 | Dokumentacja API Xfconf. | |
73 | ||
74 | %package -n perl-Xfce4-Xfconf | |
75 | Summary: Perl interface to the Xfce4 Xfconf | |
76 | Summary(pl.UTF-8): Interfejs perlowy do Xfce4 Xfconf | |
77 | Group: Development/Languages/Perl | |
fb9046aa | 78 | Requires: %{name} = %{version}-%{release} |
403787ea MB |
79 | Requires: perl-Glib >= 1.020 |
80 | ||
81 | %description -n perl-Xfce4-Xfconf | |
82 | Perl interface to the Xfce4 Xfconf. | |
83 | ||
84 | %description -n perl-Xfce4-Xfconf -l pl.UTF-8 | |
85 | Interfejs perlowy do Xfce4 Xfconf. | |
86 | ||
87 | %prep | |
88 | %setup -q | |
89 | ||
90 | %build | |
403787ea MB |
91 | %configure \ |
92 | --enable-gtk-doc \ | |
fb9046aa | 93 | --disable-silent-rules \ |
403787ea | 94 | --with-html-dir=%{_gtkdocdir} \ |
fb9046aa | 95 | --with-perl-options="INSTALLDIRS=vendor" |
403787ea MB |
96 | %{__make} |
97 | ||
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
844386aa | 100 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml |
403787ea MB |
101 | |
102 | %{__make} install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
105 | %{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod | |
106 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Xfce4/Xfconf/.packlist | |
107 | ||
fb9046aa | 108 | # obsoleted by pkg-config |
fe5bb159 | 109 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
fb9046aa JB |
110 | # just a copy or ur |
111 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK | |
2ea7f0b3 | 112 | |
403787ea MB |
113 | %find_lang %{name} |
114 | ||
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post -p /sbin/ldconfig | |
119 | %postun -p /sbin/ldconfig | |
120 | ||
121 | %files -f %{name}.lang | |
122 | %defattr(644,root,root,755) | |
123 | %doc AUTHORS ChangeLog NEWS TODO | |
124 | %attr(755,root,root) %{_bindir}/xfconf-query | |
125 | %attr(755,root,root) %{_libdir}/libxfconf-0.so.*.*.* | |
126 | %attr(755,root,root) %ghost %{_libdir}/libxfconf-0.so.2 | |
fe5bb159 MB |
127 | %dir %{_libdir}/xfce4/xfconf |
128 | %attr(755,root,root) %{_libdir}/xfce4/xfconf/xfconfd | |
045e9f12 | 129 | %dir %{_sysconfdir}/xdg/xfce4/xfconf |
844386aa | 130 | %dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml |
403787ea MB |
131 | %{_datadir}/dbus-1/services/org.xfce.Xfconf.service |
132 | ||
133 | %files devel | |
134 | %defattr(644,root,root,755) | |
135 | %attr(755,root,root) %{_libdir}/libxfconf-0.so | |
403787ea MB |
136 | %{_includedir}/xfce4/xfconf-0 |
137 | %{_pkgconfigdir}/libxfconf-0.pc | |
138 | ||
403787ea MB |
139 | %files apidocs |
140 | %defattr(644,root,root,755) | |
141 | %{_gtkdocdir}/xfconf | |
142 | ||
143 | %files -n perl-Xfce4-Xfconf | |
144 | %defattr(644,root,root,755) | |
403787ea MB |
145 | %dir %{perl_vendorarch}/Xfce4 |
146 | %{perl_vendorarch}/Xfce4/Xfconf.pm | |
147 | %dir %{perl_vendorarch}/Xfce4/Xfconf | |
148 | %{perl_vendorarch}/Xfce4/Xfconf/Install | |
149 | %dir %{perl_vendorarch}/auto/Xfce4 | |
150 | %dir %{perl_vendorarch}/auto/Xfce4/Xfconf | |
fb9046aa | 151 | %attr(755,root,root) %{perl_vendorarch}/auto/Xfce4/Xfconf/Xfconf.so |
403787ea | 152 | %{_mandir}/man3/Xfce4::Xfconf.3pm* |