1 # TODO: /etc/xdg/lxpanel - proper tags/flags etc.
2 %bcond_with gtk3 # build GTK+3 disables GTK+2
3 %bcond_without gtk2 # build with GTK+2
4 Summary: LXPanel is a lightweight X11 desktop panel
9 Group: X11/Applications
10 Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz
11 # Source0-md5: 57f0add873815dc608eb45241c9504a7
12 URL: http://wiki.lxde.org/en/LXPanel
13 BuildRequires: autoconf
14 BuildRequires: automake >= 1:1.12
15 BuildRequires: alsa-lib-devel
16 BuildRequires: gettext-tools
17 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
18 %{?with_gtk3:BuildRequires: gtk+3-devel}
19 BuildRequires: intltool
20 BuildRequires: keybinder-devel
21 BuildRequires: libfm-devel
22 BuildRequires: libiw-devel
23 BuildRequires: libwnck2-devel
24 BuildRequires: libtool
25 BuildRequires: menu-cache-devel
26 BuildRequires: pkgconfig
27 BuildRequires: tar >= 1:1.22
29 Requires(post,postun): /sbin/ldconfig
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 LXPanel is a lightweight X11 desktop panel.
37 Summary: Header files for lxpanel library
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki lxpanel
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
43 Header files for lxpanel library.
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki lxpanel.
59 %{?with_gtk3:--enable-gtk3}
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT/etc/ld.so.conf.d
66 DESTDIR=$RPM_BUILD_ROOT
68 %if "%{_lib}" == "lib64"
69 echo "%{_libdir}/lxpanel" >$RPM_BUILD_ROOT/etc/ld.so.conf.d/lxpanel64.conf
71 echo "%{_libdir}/lxpanel" >$RPM_BUILD_ROOT/etc/ld.so.conf.d/lxpanel.conf
74 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{frp,ur_PK,tt_RU}
79 rm -rf $RPM_BUILD_ROOT
87 %files -f %{name}.lang
88 %defattr(644,root,root,755)
90 %if "%{_lib}" == "lib64"
91 /etc/ld.so.conf.d/lxpanel64.conf
93 /etc/ld.so.conf.d/lxpanel.conf
95 %attr(755,root,root) %{_bindir}/lxpanel
96 %attr(755,root,root) %{_bindir}/lxpanelctl
97 %dir %{_libdir}/lxpanel
98 %attr(755,root,root) %{_libdir}/lxpanel/liblxpanel.so.*.*.*
99 %attr(755,root,root) %ghost /%{_libdir}/lxpanel/liblxpanel.so.0
100 %dir %{_libdir}/lxpanel/plugins
101 %attr(755,root,root) %{_libdir}/lxpanel/plugins/*.so
102 %{_mandir}/man1/lxpanel.1*
103 %{_mandir}/man1/lxpanelctl.1*
105 %dir %{_datadir}/lxpanel
106 ##%{_datadir}/lxpanel/profile
107 %{_datadir}/lxpanel/ui
109 %dir %{_datadir}/lxpanel/images
110 %{_datadir}/lxpanel/images/*.png
112 %dir %{_datadir}/lxpanel/images/xkb-flags
113 # TODO: lang tags here
114 %{_datadir}/lxpanel/images/xkb-flags/*.png
116 %dir %{_datadir}/lxpanel/xkeyboardconfig
117 %{_datadir}/lxpanel/xkeyboardconfig/*.cfg
119 %{_sysconfdir}/xdg/lxpanel
122 %defattr(644,root,root,755)
123 %dir %{_includedir}/lxpanel
124 %{_includedir}/lxpanel/*.h
125 %{_pkgconfigdir}/lxpanel.pc
126 %attr(755,root,root) %{_libdir}/lxpanel/liblxpanel.so