File awesome-lain.spec of Package awesome-lain
#
# spec file for package awesome-lain
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _name lain
Name: awesome-lain
Version: @service@
Release: 0
License: GPL-2.0
Summary: Layouts, widgets and utilities for Awesome WM 3.5+
Url: https://github.com/copycat-killer/lain
Group: System/GUI/Other
Source: %{_name}-%{version}.tar.xz
BuildRequires: fdupes
Requires: awesome >= 3.5
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Successor of awesome-vain, this module provides new layouts, a set of widgets
and utility functions, in order to improve Awesome usability and configurability.
%prep
%setup -q -n %{_name}-%{version}
find icons/ widgets/ -type f -perm 755 -print -exec chmod a-x {} \;
# wrong-file-end-of-line-encoding
sed -i 's/\r//' wiki/Utilities.md
%build
%install
install -dm 0755 %{buildroot}/%{_datadir}/awesome/lib/%{_name}
install -Dm 0644 *.lua %{buildroot}/%{_datadir}/awesome/lib/%{_name}
for dir in $(find -maxdepth 1 -type d | xargs basename -a | sed '/^\./d' | grep -v wiki)
do
cp -a $dir %{buildroot}%{_datadir}/awesome/lib/%{_name}/
done
%fdupes -s %{buildroot}%{_datadir}/awesome/lib/%{_name}/
%files
%defattr(-,root,root)
%doc README.rst wiki
%dir %{_datadir}/awesome
%dir %{_datadir}/awesome/lib
%{_datadir}/awesome/lib/%{_name}