Skip to content

Instantly share code, notes, and snippets.

@danielkza
Last active January 1, 2016 10:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielkza/8130828 to your computer and use it in GitHub Desktop.
Save danielkza/8130828 to your computer and use it in GitHub Desktop.
RPM spec file for devilspie2
Name: devilspie2
Version: 0.31
Release: 1%{?dist}
Summary: A window-matching utility
Group: User Interface/X
License: GPLv3+
URL: http://www.gusnan.se/devilspie2
Source0: http://www.gusnan.se/%{name}/download/%{name}_%{version}-src.tar.gz
BuildRequires: pkgconfig gtk3-devel lua-devel glib2-devel libwnck3-devel gettext
%global _hardened_build 1
%description
Devilspie2 is a window matching utility, allowing the user to perform
scripted actions on windows as they are created. For example you can
script a terminal program to always be positioned at a specific screen
position, or position a window on a specific workspace.
It is a continuation of Ross Burtons project Devilspie, with the most
significant change that the symbolic expressions of that project are
replaced with a LUA interpreter.
%prep
%setup -q
%build
make PREFIX=%{_prefix} %{?_smp_mflags}
%install
rm -rf %{buildroot}
%make_install PREFIX=%{_prefix}
install -dm 755 %{buildroot}%{_mandir}/man1
install -m 644 %{name}.1 -t %{buildroot}%{_mandir}/man1
%find_lang %{name}
%clean
rm -rf %{buildroot}
%files -f %{name}.lang
%doc README INSTALL ChangeLog AUTHORS
%{_bindir}/%{name}
%{_mandir}/man1/*
%changelog
* Thu Dec 26 2013 Daniel Miranda <danielkza2@gmail.com> 0.31-1
- Initial Packaging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment