Find file
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (62 sloc) 2.12 KB
#
# Copyright (c) 2009-2010 Mark Heily <mark@heily.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
Name: @@PROGRAM@@
Summary: @@PKG_SUMMARY@@
Version: @@VERSION@@
Release: 1
License: @@LICENSE@@
Vendor: @@AUTHOR@@
Group: System Environment/Libraries
Source0: %{name}-%version.tar.gz
BuildRequires: glibc-devel
%description
@@PKG_DESCRIPTION@@
%package devel
Summary: Header files, libraries and development documentation for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.
%prep
%setup -q -n @@PROGRAM@@-@@VERSION@@
%build
./configure --prefix=/usr --libdir=%{_libdir}
make
%install
make DESTDIR=%{buildroot} install
gzip -f $RPM_BUILD_ROOT/usr/share/man/man2/kqueue.2
gzip -f $RPM_BUILD_ROOT/usr/share/man/man2/kevent.2
%clean
[ %{buildroot} != "/" ] && rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/*.so
/usr/include/kqueue/sys/event.h
%{_libdir}/pkgconfig/libkqueue.pc
/usr/share/man/man2/kqueue.2.gz
/usr/share/man/man2/kevent.2.gz
%exclude %{_libdir}/*.la
%exclude %{_libdir}/*.a
%changelog
* @@RPM_DATE@@ Mark Heily <mark@heily.com> - @@VERSION@@-1
- automatically generated spec file