-Summary: AppLnk - base directories tree used for storing desktop/kdelnk menu entries
+Summary: Applnk - base directories tree used for storing desktop/kdelnk menu entries
+Summary(pl): Applnk - bazowa struktura katalogów z opisami do plików desktop/kdelnk
Name: applnk
-Version: 1.0
+Version: 1.9.3
Release: 1
License: GPL
Group: Base
-Source0: ftp://ftp.pld.org.pl/software/applnk/%{name}-%{version}.tar.gz
+#Source0: ftp://ftp.pld-linux.org/software/applnk/
+Source0: %{name}-%{version}.tar.bz2
+# Source0-md5: 4ca390faf2287051251cca02d971bac1
+BuildRequires: autoconf
+BuildRequires: automake
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _xdgconfdir /etc/xdg
+%define _xdgdatadir %{_datadir}/desktop-directories
+
%description
Base directories tree used for storing desktop/kdelnk menu entries.
-Package contains also full description this hierary (descriprions wit
-translations and order menu entries data).
+Package also contains full description of this hierarchy (descriptions
+with translations and menu order).
+
+%description -l pl
+Bazowa struktura katalogów u¿ywana do przechowywania plików
+desktop/kdelnk opisu elementów menu ze spisem aplikacji. Pakiet
+zawiera pe³ny opis hierarchii katalogów (w plikach .directory) wraz z
+t³umaczeniami tych opisów, a tak¿e opis sposobu uszeregowania
+grup/elementów katalogów.
%prep
%setup -q
+%build
+rm -f missing
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_applnkdir}
-cp -ar .order * $RPM_BUILD_ROOT%{_applnkdir}
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ pixmapsdir=%{_pixmapsdir}
+
+install -d $RPM_BUILD_ROOT%{_xdgconfdir}/menus/applications-merged
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%{_applnkdir}
+%dir %{_xdgconfdir}/menus
+%dir %{_xdgconfdir}/menus/applications-merged
+# should be marked as %%config
+%{_xdgconfdir}/menus/applications.menu
+%{_xdgdatadir}
+%{_pixmapsdir}/*