5362ba2
Name:           sselp
5362ba2
Version:        0.2
5362ba2
Release:        3%{?dist}
5362ba2
Summary:        Prints X selection to standard out
5362ba2
5362ba2
Group:          User Interface/X
5362ba2
License:        MIT
5362ba2
URL:            http://tools.suckless.org/%{name}
5362ba2
Source0:        http://dl.suckless.org/tools/%{name}-%{version}.tar.gz 
5362ba2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5362ba2
BuildRequires:  libX11-devel
5362ba2
5362ba2
%description
5362ba2
Prints X selection to standard out.
5362ba2
5362ba2
5362ba2
%prep
5362ba2
%setup -q
5362ba2
# set CFLAGS set to {optflags}
5362ba2
sed -i "s/CFLAGS = .*/CFLAGS = %{optflags} \${INCS} \${CPPFLAGS}/" config.mk
5362ba2
# remove -s option in LDFLAGS
5362ba2
sed -i "/LDFLAGS/ s/-s//" config.mk
5362ba2
sed -i "s/@\${CC}/\${CC}/" Makefile
5362ba2
5362ba2
5362ba2
5362ba2
%build
5362ba2
make %{?_smp_mflags}
5362ba2
5362ba2
5362ba2
%install
5362ba2
rm -rf %{buildroot}
5362ba2
make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
5362ba2
5362ba2
%clean
5362ba2
rm -rf %{buildroot}
5362ba2
5362ba2
5362ba2
%files
5362ba2
%defattr(-,root,root,-)
5362ba2
%{_bindir}/%{name}
5362ba2
%doc README LICENSE
5362ba2
5362ba2
5362ba2
5362ba2
%changelog
5362ba2
* Fri Jun 25 2010 Matthias Runge <mrunge@matthias-runge.de> 0.2-3
5362ba2
- Description does not end with a dot (fixed)
5362ba2
- fix nonverbose compilation
5362ba2
 
5362ba2
* Wed Jun 23 2010 Matthias Runge <mrunge@matthias-runge.de> 0.2-2
5362ba2
- dropped patch to install in {_prefix}
5362ba2
- fixed CFlAGS, LDFLAGS
5362ba2
5362ba2
* Mon Jun 21 2010 Matthias Runge <mrunge@matthias-runge.de> 0.2-1
5362ba2
- initial version