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