]>
Commit | Line | Data |
---|---|---|
7d020b74 | 1 | %define xfce_version 4.14.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 | |
7d020b74 AG |
6 | Version: 4.14.1 |
7 | Release: 1 | |
fb9046aa | 8 | License: LGPL v2 |
403787ea | 9 | Group: Libraries |
7d020b74 AG |
10 | Source0: https://archive.xfce.org/src/xfce/xfconf/4.14/%{name}-%{version}.tar.bz2 |
11 | # Source0-md5: cb51a59e2a89d05232f825ad8c74a7c0 | |
4950c739 | 12 | URL: https://www.xfce.org/projects/xfconf |
e0083b78 | 13 | BuildRequires: docbook-dtd412-xml |
69e78dae | 14 | BuildRequires: gettext-tools |
c4b2b8b2 JB |
15 | BuildRequires: glib2-devel >= 1:2.42.0 |
16 | BuildRequires: gobject-introspection-devel >= 1.30.0 | |
403787ea | 17 | BuildRequires: gtk-doc >= 1.0 |
c4b2b8b2 | 18 | BuildRequires: intltool >= 0.35.0 |
c20082ad | 19 | BuildRequires: libxfce4util-devel >= %{xfce_version} |
c4b2b8b2 | 20 | BuildRequires: perl-ExtUtils-Depends >= 0.300 |
403787ea | 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 | |
c4b2b8b2 | 27 | BuildRequires: vala |
4950c739 | 28 | BuildRequires: xfce4-dev-tools >= 4.12.0 |
c4b2b8b2 | 29 | Requires: glib2 >= 1:2.42.0 |
fb9046aa | 30 | Requires: libxfce4util >= %{xfce_version} |
3e32f690 | 31 | Obsoletes: libxfce4mcs |
403787ea MB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | Xfconf is a simple configuration storage and query system. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Xfconf jest prostym systemem przechowywania i odpytywania | |
39 | konfiguracji. | |
40 | ||
41 | %package devel | |
42 | Summary: Header files for Xfconf library | |
43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Xfconf | |
44 | Group: Development/Libraries | |
45 | Requires: %{name} = %{version}-%{release} | |
c4b2b8b2 | 46 | Requires: glib2-devel >= 1:2.42.0 |
3e32f690 MB |
47 | Obsoletes: libxfce4mcs-devel |
48 | Obsoletes: xfce-mcs-manager-devel | |
403787ea MB |
49 | |
50 | %description devel | |
51 | Header files for Xfconf library. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe biblioteki Xfconf. | |
55 | ||
403787ea MB |
56 | %package apidocs |
57 | Summary: Xfconf API documentation | |
58 | Summary(pl.UTF-8): Dokumentacja API Xfconf | |
59 | Group: Documentation | |
60 | Requires: gtk-doc-common | |
3e32f690 | 61 | Obsoletes: libxfce4mcs-apidocs |
8633c161 ER |
62 | %if "%{_rpmversion}" >= "5" |
63 | BuildArch: noarch | |
64 | %endif | |
403787ea MB |
65 | |
66 | %description apidocs | |
67 | Xfconf API documentation. | |
68 | ||
69 | %description apidocs -l pl.UTF-8 | |
70 | Dokumentacja API Xfconf. | |
71 | ||
72 | %package -n perl-Xfce4-Xfconf | |
73 | Summary: Perl interface to the Xfce4 Xfconf | |
74 | Summary(pl.UTF-8): Interfejs perlowy do Xfce4 Xfconf | |
75 | Group: Development/Languages/Perl | |
fb9046aa | 76 | Requires: %{name} = %{version}-%{release} |
403787ea MB |
77 | Requires: perl-Glib >= 1.020 |
78 | ||
79 | %description -n perl-Xfce4-Xfconf | |
80 | Perl interface to the Xfce4 Xfconf. | |
81 | ||
82 | %description -n perl-Xfce4-Xfconf -l pl.UTF-8 | |
83 | Interfejs perlowy do Xfce4 Xfconf. | |
84 | ||
c4b2b8b2 JB |
85 | %package -n vala-xfconf |
86 | Summary: Vala API for Xfconf library | |
87 | Summary(pl.UTF-8): API języka Vala do biblioteki Xfconf | |
88 | Group: Development/Libraries | |
89 | Requires: %{name}-devel = %{version}-%{release} | |
90 | Requires: vala | |
91 | ||
92 | %description -n vala-xfconf | |
93 | Vala API for Xfconf library. | |
94 | ||
95 | %description -n vala-xfconf -l pl.UTF-8 | |
96 | API języka Vala do biblioteki Xfconf. | |
97 | ||
403787ea MB |
98 | %prep |
99 | %setup -q | |
100 | ||
101 | %build | |
403787ea MB |
102 | %configure \ |
103 | --enable-gtk-doc \ | |
c4b2b8b2 | 104 | --enable-perl-bindings \ |
fb9046aa | 105 | --disable-silent-rules \ |
403787ea | 106 | --with-html-dir=%{_gtkdocdir} \ |
fb9046aa | 107 | --with-perl-options="INSTALLDIRS=vendor" |
403787ea MB |
108 | %{__make} |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
844386aa | 112 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml |
403787ea MB |
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 | ||
fb9046aa | 120 | # obsoleted by pkg-config |
fe5bb159 | 121 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
528024a4 JB |
122 | # unify |
123 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{hy_AM,hy} | |
fb9046aa | 124 | # just a copy or ur |
b05971dd | 125 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK |
2ea7f0b3 | 126 | |
403787ea MB |
127 | %find_lang %{name} |
128 | ||
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %post -p /sbin/ldconfig | |
133 | %postun -p /sbin/ldconfig | |
134 | ||
135 | %files -f %{name}.lang | |
136 | %defattr(644,root,root,755) | |
137 | %doc AUTHORS ChangeLog NEWS TODO | |
138 | %attr(755,root,root) %{_bindir}/xfconf-query | |
139 | %attr(755,root,root) %{_libdir}/libxfconf-0.so.*.*.* | |
4950c739 | 140 | %attr(755,root,root) %ghost %{_libdir}/libxfconf-0.so.3 |
fe5bb159 MB |
141 | %dir %{_libdir}/xfce4/xfconf |
142 | %attr(755,root,root) %{_libdir}/xfce4/xfconf/xfconfd | |
045e9f12 | 143 | %dir %{_sysconfdir}/xdg/xfce4/xfconf |
844386aa | 144 | %dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml |
403787ea | 145 | %{_datadir}/dbus-1/services/org.xfce.Xfconf.service |
b05971dd | 146 | %{_libdir}/girepository-1.0/Xfconf-0.typelib |
403787ea MB |
147 | |
148 | %files devel | |
149 | %defattr(644,root,root,755) | |
150 | %attr(755,root,root) %{_libdir}/libxfconf-0.so | |
403787ea MB |
151 | %{_includedir}/xfce4/xfconf-0 |
152 | %{_pkgconfigdir}/libxfconf-0.pc | |
b05971dd | 153 | %{_datadir}/gir-1.0/Xfconf-0.gir |
403787ea | 154 | |
403787ea MB |
155 | %files apidocs |
156 | %defattr(644,root,root,755) | |
157 | %{_gtkdocdir}/xfconf | |
158 | ||
159 | %files -n perl-Xfce4-Xfconf | |
160 | %defattr(644,root,root,755) | |
403787ea MB |
161 | %dir %{perl_vendorarch}/Xfce4 |
162 | %{perl_vendorarch}/Xfce4/Xfconf.pm | |
163 | %dir %{perl_vendorarch}/Xfce4/Xfconf | |
164 | %{perl_vendorarch}/Xfce4/Xfconf/Install | |
165 | %dir %{perl_vendorarch}/auto/Xfce4 | |
166 | %dir %{perl_vendorarch}/auto/Xfce4/Xfconf | |
fb9046aa | 167 | %attr(755,root,root) %{perl_vendorarch}/auto/Xfce4/Xfconf/Xfconf.so |
403787ea | 168 | %{_mandir}/man3/Xfce4::Xfconf.3pm* |
c4b2b8b2 JB |
169 | |
170 | %files -n vala-xfconf | |
171 | %defattr(644,root,root,755) | |
172 | %{_datadir}/vala/vapi/libxfconf-0.deps | |
173 | %{_datadir}/vala/vapi/libxfconf-0.vapi |