58 lines
1.2 KiB
RPMSpec
58 lines
1.2 KiB
RPMSpec
Name: tabbed
|
|
Version: 0.2
|
|
Release: 2%{?dist}
|
|
Summary: Simple Xembed container manager
|
|
|
|
Group: User Interface/X
|
|
License: MIT
|
|
URL: http://tools.suckless.org/tabbed
|
|
Source0: http://dl.suckless.org/tools/%{name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: libX11-devel
|
|
|
|
|
|
%description
|
|
tabbed is a simple generic fronted to xembed aware applications
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
sed -e 's|/usr/local|%{_prefix}|g' \
|
|
-e 's|/usr/lib|%{_libdir}|g' \
|
|
-e 's|-s ${LIBS}|-g ${LIBS}|g' \
|
|
-e 's|-std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}|%{optflags} ${INCS} ${CPPFLAGS}|g' \
|
|
-i config.mk
|
|
|
|
sed -i 's!^\(\t\+\)@!\1!' Makefile
|
|
|
|
|
|
%build
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make install \
|
|
DESTDIR=%{buildroot} \
|
|
INSTALL="install -p"
|
|
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/%{name}.*
|
|
|
|
|
|
%changelog
|
|
* Sun Jan 17 2010 Simon Wesp <cassmodiah@fedoraproject.org> - 0.2-2
|
|
- Output is verbose now
|
|
|
|
* Sun Jan 10 2010 Simon Wesp <cassmodiah@fedoraproject.org> - 0.2-1
|
|
- Initial package build
|