[packages/xmonad] - new

atler atler at pld-linux.org
Thu Mar 14 20:19:15 CET 2013


commit 95aecafe9de55d6aec53fb75ef806f522173a02d
Author: Jan Palus <jan.palus at gmail.com>
Date:   Thu Mar 14 20:14:07 2013 +0100

    - new

 xmonad.desktop |   6 ++++
 xmonad.spec    | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 111 insertions(+)
---
diff --git a/xmonad.spec b/xmonad.spec
new file mode 100644
index 0000000..69927d1
--- /dev/null
+++ b/xmonad.spec
@@ -0,0 +1,105 @@
+Summary:	Tiling window manager
+Name:		xmonad
+Version:	0.11
+Release:	0.1
+License:	BSD
+Group:		X11/Window Managers
+Source0:	http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	5ac9dc1dae5e85dcbdfb9f70cbe312c1
+Source1:	%{name}.desktop
+URL:		http://www.xmonad.org
+BuildRequires:	ghc >= 6.12.3
+BuildRequires:	ghc-mtl
+BuildRequires:	ghc-unix
+BuildRequires:	ghc-utf8-string
+BuildRequires:	ghc-X11 >= 1.6
+BuildRequires:	rpmbuild(macros) >= 1.608
+%requires_eq	ghc
+Requires:	ghc-mtl
+Requires:	ghc-unix
+Requires:	ghc-utf8-string
+Requires:	ghc-X11 >= 1.6
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# debuginfo is not useful for ghc
+%define		_enable_debug_packages	0
+%define		_xdeskdir	%{_datadir}/xsessions
+
+%description
+xmonad is a tiling window manager for X. Windows are arranged
+automatically to tile the screen without gaps or overlap, maximising
+screen use. All features of the window manager are accessible from the
+keyboard: a mouse is strictly optional. xmonad is written and
+extensible in Haskell. Custom layout algorithms, and other extensions,
+may be written by the user in config files. Layouts are applied
+dynamically, and different layouts may be used on each workspace.
+Xinerama is fully supported, allowing windows to be tiled on several
+screens.
+
+%package doc
+Summary:	HTML documentation for %{name}
+Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla %{name}
+Group:		Documentation
+
+%description doc
+HTML documentation for %{name}.
+
+%description doc -l pl.UTF-8
+Dokumentacja w formacie HTML dla %{name}.
+
+%prep
+%setup -q
+
+%build
+runhaskell Setup.lhs configure -v2 \
+	--prefix=%{_prefix} \
+	--libdir=%{_libdir} \
+	--libexecdir=%{_libexecdir} \
+	--docdir=%{_docdir}/%{name}-%{version}
+
+runhaskell Setup.lhs build
+runhaskell Setup.lhs haddock --executables
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
+
+runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_deskdir},%{_xdeskdir}}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_xdeskdir}/%{name}.desktop
+
+# work around automatic haddock docs installation
+rm -rf %{name}-%{version}-doc
+cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/man
+%{__rmdir} $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+install man/xmonad.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+runhaskell Setup.lhs register \
+	--gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%ghc_pkg_recache
+
+%postun
+%ghc_pkg_recache
+
+%files
+%defattr(644,root,root,755)
+%doc man/xmonad.hs
+%attr(755,root,root) %{_bindir}/xmonad
+%{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf
+%{_libdir}/%{ghcdir}/%{name}-%{version}
+%{_mandir}/man1/xmonad.1*
+%{_xdeskdir}/%{name}.desktop
+
+%files doc
+%defattr(644,root,root,755)
+%doc %{name}-%{version}-doc/*
diff --git a/xmonad.desktop b/xmonad.desktop
new file mode 100644
index 0000000..f40ff4a
--- /dev/null
+++ b/xmonad.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Type=XSession
+Exec=xmonad
+TryExec=xmonad
+Name=Xmonad
+# vi: encoding=utf-8
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xmonad.git/commitdiff/95aecafe9de55d6aec53fb75ef806f522173a02d



More information about the pld-cvs-commit mailing list