# TODO
-# - lua-doc: spec file is created - OK
-# - add luadoc and doxygen to BRs
-# - move the generated html files (with luadoc) to correct place
-# - split two subpackage: awesome and awesome-doc (htmls)
# - correct xsession.desktop file to appear in *dm
%define subver rc6
%define rel 2
Summary(pl.UTF-8): Zarządca okien X - Awesome
Name: awesome
Version: 3.0
-Release: 1
+Release: 2
License: GPL v2
Group: X11/Window Managers
Source0: http://awesome.naquadah.org/download/%{name}-%{version}.tar.bz2
Source1: %{name}-xsession.desktop
Patch0: %{name}-3.0-lua-files.patch
URL: http://awesome.naquadah.org
-# BuildRequires: luadoc - it's ready but need to build luadoc (it exists in SPEC-file)
BuildRequires: asciidoc
BuildRequires: cairo-devel
BuildRequires: cmake >= 2.6
BuildRequires: dbus-devel
-# doxygen required when build source code reference - see TODO
-# BuildRequires: doxygen
+BuildRequires: doxygen
BuildRequires: gdk-pixbuf-devel
BuildRequires: gperf
BuildRequires: libev-devel
+BuildRequires: lua-doc
BuildRequires: lua51
BuildRequires: lua51-devel
BuildRequires: pango-devel
számítógéppel dolgozik és teljeskörű irányítást akar a grafikus
felületén.
+%package doc
+Summary: awesome window manager API documentation
+Summary(hu.UTF-8): awesome ablakkezelő API dokumentációja
+Group: X11/Window Managers
+
+%description doc
+awesome window manager API documentation
+
+%description doc -l hu.UTF-8
+awesome ablakkezelő API dokumentációja
+
+
%prep
%setup -q
%patch0 -p1
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
+install AUTHORS LICENSE README STYLE $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS LICENSE README STYLE
+%dir %{_docdir}/%{name}-%{version}
+%{_docdir}/%{name}-%{version}/[A-Z]*
%attr(755,root,root) %{_bindir}/%{name}
%attr(755,root,root) %{_bindir}/%{name}-client
%attr(755,root,root) %{_bindir}/awsetbg
%{_mandir}/man1/%{name}*
%{_mandir}/man5/%{name}*
# XXX shouldn't this dir be in filesystem or xorg packages?
+# XXX in my system there isn't until awesome won't installed - uzsolt
%dir %{_sysconfdir}/xdg
%dir %{_sysconfdir}/xdg/awesome
%{_sysconfdir}/xdg/awesome/*
+
+%files doc
+%defattr(644,root,root,755)
+%dir %{_docdir}/%{name}-%{version}/luadoc
+%dir %{_docdir}/%{name}-%{version}/luadoc/files
+%dir %{_docdir}/%{name}-%{version}/luadoc/modules
+%{_docdir}/%{name}-%{version}/luadoc/*
+%{_docdir}/%{name}-%{version}/luadoc/files/*
+%{_docdir}/%{name}-%{version}/luadoc/modules/*