]>
Commit | Line | Data |
---|---|---|
4950c739 | 1 | %define xfce_version 4.13.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 | |
b05971dd JR |
6 | Version: 4.13.8 |
7 | Release: 0.1 | |
fb9046aa | 8 | License: LGPL v2 |
403787ea | 9 | Group: Libraries |
4950c739 | 10 | Source0: https://archive.xfce.org/src/xfce/xfconf/4.13/%{name}-%{version}.tar.bz2 |
b05971dd | 11 | # Source0-md5: 5d48e8d50f7bfadd31e804ce602a5cf3 |
4950c739 | 12 | URL: https://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 | |
4950c739 | 27 | BuildRequires: xfce4-dev-tools >= 4.12.0 |
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} \ |
b05971dd | 96 | --enable-perl-bindings \ |
fb9046aa | 97 | --with-perl-options="INSTALLDIRS=vendor" |
403787ea MB |
98 | %{__make} |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
844386aa | 102 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml |
403787ea MB |
103 | |
104 | %{__make} install \ | |
105 | DESTDIR=$RPM_BUILD_ROOT | |
106 | ||
107 | %{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod | |
108 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Xfce4/Xfconf/.packlist | |
109 | ||
fb9046aa | 110 | # obsoleted by pkg-config |
fe5bb159 | 111 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
fb9046aa | 112 | # just a copy or ur |
b05971dd | 113 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK |
2ea7f0b3 | 114 | |
403787ea MB |
115 | %find_lang %{name} |
116 | ||
117 | %clean | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %post -p /sbin/ldconfig | |
121 | %postun -p /sbin/ldconfig | |
122 | ||
123 | %files -f %{name}.lang | |
124 | %defattr(644,root,root,755) | |
125 | %doc AUTHORS ChangeLog NEWS TODO | |
126 | %attr(755,root,root) %{_bindir}/xfconf-query | |
127 | %attr(755,root,root) %{_libdir}/libxfconf-0.so.*.*.* | |
4950c739 | 128 | %attr(755,root,root) %ghost %{_libdir}/libxfconf-0.so.3 |
fe5bb159 MB |
129 | %dir %{_libdir}/xfce4/xfconf |
130 | %attr(755,root,root) %{_libdir}/xfce4/xfconf/xfconfd | |
045e9f12 | 131 | %dir %{_sysconfdir}/xdg/xfce4/xfconf |
844386aa | 132 | %dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml |
403787ea | 133 | %{_datadir}/dbus-1/services/org.xfce.Xfconf.service |
b05971dd | 134 | %{_libdir}/girepository-1.0/Xfconf-0.typelib |
403787ea MB |
135 | |
136 | %files devel | |
137 | %defattr(644,root,root,755) | |
138 | %attr(755,root,root) %{_libdir}/libxfconf-0.so | |
403787ea MB |
139 | %{_includedir}/xfce4/xfconf-0 |
140 | %{_pkgconfigdir}/libxfconf-0.pc | |
b05971dd | 141 | %{_datadir}/gir-1.0/Xfconf-0.gir |
403787ea | 142 | |
403787ea MB |
143 | %files apidocs |
144 | %defattr(644,root,root,755) | |
145 | %{_gtkdocdir}/xfconf | |
146 | ||
147 | %files -n perl-Xfce4-Xfconf | |
148 | %defattr(644,root,root,755) | |
403787ea MB |
149 | %dir %{perl_vendorarch}/Xfce4 |
150 | %{perl_vendorarch}/Xfce4/Xfconf.pm | |
151 | %dir %{perl_vendorarch}/Xfce4/Xfconf | |
152 | %{perl_vendorarch}/Xfce4/Xfconf/Install | |
153 | %dir %{perl_vendorarch}/auto/Xfce4 | |
154 | %dir %{perl_vendorarch}/auto/Xfce4/Xfconf | |
fb9046aa | 155 | %attr(755,root,root) %{perl_vendorarch}/auto/Xfce4/Xfconf/Xfconf.so |
403787ea | 156 | %{_mandir}/man3/Xfce4::Xfconf.3pm* |