3 %bcond_without apidocs # disable gtk-doc
4 %bcond_with gtk3 # build GTK+3 disables GTK+2
5 %bcond_without gtk2 # build with GTK+2
7 Summary: Helper library for pcmanfm
8 Summary(pl.UTF-8): Biblioteka pomocnicza do pcmanfm
14 Source0: http://downloads.sourceforge.net/pcmanfm/%{name}-%{version}.tar.xz
15 # Source0-md5: a1ba9ae5e920f38b647dd511edd6c807
16 URL: http://pcmanfm.sourceforge.net/
17 BuildRequires: cairo-devel >= 1.8.0
18 BuildRequires: dbus-glib-devel
19 BuildRequires: gettext-tools
20 BuildRequires: glib2-devel >= 1:2.27.0
21 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
22 %{?with_gtk3:BuildRequires: gtk+3-devel}
23 %{?with_apidocs:BuildRequires: gtk-doc}
24 BuildRequires: intltool >= 0.40.0
25 BuildRequires: libexif-devel
26 BuildRequires: menu-cache-devel
27 BuildRequires: pango-devel >= 1.16.0
28 BuildRequires: pkgconfig
29 BuildRequires: tar >= 1:1.22
30 BuildRequires: vala >= 0.13.0
33 Requires(post,postun): /sbin/ldconfig
34 Requires(post,postun): shared-mime-info
35 Requires: glib2 >= 1:2.27.0
36 # in case someone want to split this package into smaller ones
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Helper library for pcmanfm.
44 %description -l pl.UTF-8
45 Biblioteka pomocnicza dla pcmanfm
48 Summary: Header files and libraries for libfm development
49 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do libfm
50 Group: Development/Libraries
51 Requires: %{name} = %{epoch}:%{version}-%{release}
52 Provides: libfm-gtk-devel
55 This package contains the header files needed to develop programs that
58 %description devel -l pl.UTF-8
59 Pakiet zawiera pliki nagłówkowe potrzebne do rozwoju oprogramowania
60 korzystającego z libfm.
63 Summary: Static library for libfm development
64 Summary(pl.UTF-8): Biblioteka statyczna do libfm
65 Group: Development/Libraries
66 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
69 This package contains the header files and libraries needed to develop
70 programs that use these libfm.
72 %description static -l pl.UTF-8
73 Pakiet zawiera pliki nagłówkowe potrzebne do rozwoju oprogramowania
74 korzystającego z libfm.
77 Summary: LIBFM API documentation
78 Summary(pl.UTF-8): Dokumentacja API LIBFM
80 Requires: gtk-doc-common
83 LIBFM API documentation.
85 %description apidocs -l pl.UTF-8
86 Dokumentacja API LIBFM.
93 --disable-silent-rules \
94 --enable-gtk-doc=%{!?with_apidocs:no}%{?with_apidocs:yes} \
95 %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
98 --with-gtk=%{!?with_gtk3:2}%{?with_gtk3:3}
102 rm -rf $RPM_BUILD_ROOT
103 %{__make} install -j1 \
104 INSTALL_DATA="install -p -m 644" \
105 DESTDIR=$RPM_BUILD_ROOT
107 # pkg-config present, so drop .la
108 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfm.la
109 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfm-extra.la
110 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfm-gtk%{?with_gtk3:3}.la
112 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/tt_RU
117 rm -rf $RPM_BUILD_ROOT
121 %update_mime_database
125 %update_mime_database
127 %files -f %{name}.lang
128 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_bindir}/lxshortcut
132 %config(noreplace) %verify(not md5 mtime size) /etc/xdg/libfm/libfm.conf
133 %attr(755,root,root) %{_libdir}/libfm.so.*.*.*
134 %attr(755,root,root) %ghost %{_libdir}/libfm.so.4
135 %attr(755,root,root) %{_libdir}/libfm-extra.so.*.*.*
136 %attr(755,root,root) %ghost %{_libdir}/libfm-extra.so.4
138 %{_datadir}/mime/packages/libfm.xml
139 %attr(755,root,root) %{_libdir}/libfm
142 #%config(noreplace) %verify(not md5 mtime size) /etc/xdg/libfm/pref-apps.conf
143 %attr(755,root,root) %{_bindir}/libfm-pref-apps
144 %attr(755,root,root) %{_libdir}/libfm-gtk%{?with_gtk3:3}.so.*.*.*
145 %attr(755,root,root) %ghost %{_libdir}/libfm-gtk%{?with_gtk3:3}.so.4
146 %{_desktopdir}/libfm-pref-apps.desktop
147 %{_desktopdir}/lxshortcut.desktop
148 %{_mandir}/man1/libfm-pref-apps.1*
149 %{_mandir}/man1/lxshortcut.1*
152 %defattr(644,root,root,755)
154 %{_libdir}/libfm-extra.so
155 %{_libdir}/libfm-gtk%{?with_gtk3:3}.so
157 %{_pkgconfigdir}/libfm-extra.pc
158 %{_pkgconfigdir}/libfm-gtk%{?with_gtk3:3}.pc
159 %{_pkgconfigdir}/libfm.pc
160 %{_includedir}/libfm-1.0
163 %defattr(644,root,root,755)
164 %{_libdir}/libfm-extra.a
165 %{_libdir}/libfm-gtk%{?with_gtk3:3}.a
170 %defattr(644,root,root,755)