[packages/xmonad-utils] - new

atler atler at pld-linux.org
Sat Jul 20 23:45:21 CEST 2013


commit 4f33c7ddb9c42c872e7067677f41e2040bfbfb96
Author: Jan Palus <jan.palus at gmail.com>
Date:   Sat Jul 20 23:45:01 2013 +0200

    - new

 xmonad-utils.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
---
diff --git a/xmonad-utils.spec b/xmonad-utils.spec
new file mode 100644
index 0000000..1ab5ad4
--- /dev/null
+++ b/xmonad-utils.spec
@@ -0,0 +1,60 @@
+Summary:	A small collection of X utilities useful when running XMonad
+Name:		xmonad-utils
+Version:	0.1.3.2.1
+Release:	0.1
+License:	BSD
+Group:		Development/Languages
+Source0:	http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	8a527b1fb4d91cf336e78961e269f6cb
+URL:		http://hackage.haskell.org/package/xmonad-utils/
+BuildRequires:	ghc >= 6.12.3
+BuildRequires:	ghc-X11 >= 1.3
+BuildRequires:	ghc-random >= 1.0
+BuildRequires:	rpmbuild(macros) >= 1.608
+%requires_eq	ghc
+Requires:	ghc-X11 >= 1.3
+Requires:	ghc-random >= 1.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# debuginfo is not useful for ghc
+%define		_enable_debug_packages	0
+
+%description
+A small collection of X utilities useful when running XMonad. It
+includes:
+ - hxsel, which returns the text currently in the X selection;
+ - hslock, a simple X screen lock;
+ - hmanage: an utility to toggle the override-redirect property of any
+   window;
+ - hhp, a simple utility to hide the pointer, similar to unclutter. 
+
+%prep
+%setup -q
+
+%build
+runhaskell Setup.lhs configure -v2 \
+	--prefix=%{_prefix} \
+	--libdir=%{_libdir} \
+	--libexecdir=%{_libexecdir} \
+	--docdir=%{_docdir}/%{name}-%{version}
+
+runhaskell Setup.lhs build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
+
+# work around automatic haddock docs installation
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/hhp
+%attr(755,root,root) %{_bindir}/hmanage
+%attr(755,root,root) %{_bindir}/hslock
+%attr(755,root,root) %{_bindir}/hxput
+%attr(755,root,root) %{_bindir}/hxsel
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xmonad-utils.git/commitdiff/4f33c7ddb9c42c872e7067677f41e2040bfbfb96



More information about the pld-cvs-commit mailing list