specs/libevent14.spec
author Guido Berhoerster <gber@openindiana.org>
Mon, 25 Oct 2010 22:04:53 +0200
changeset 0 10291c5dc856
permissions -rw-r--r--
Initial revision.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
     1
#
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
     2
# spec file for package: libevent14
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
     3
#
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
     4
# Copyright 2010 Guido Berhoerster.
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
     6
# package are under the same license as the package itself.
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
     7
#
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
     8
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
     9
%define owner gber
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    10
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    11
%include Solaris.inc
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    12
%include oi-extra.inc
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    13
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    14
Name:           libevent14
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    15
Summary:        Library Providing an Event Handling API
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    16
Version:        1.4.13
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    17
License:        BSD3c
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    18
Url:            http://monkey.org/~provos/libevent/
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    19
Source:         http://monkey.org/~provos/libevent-%{version}-stable.tar.gz
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    20
Group:          System/Libraries
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    21
Distribution:   OpenIndiana
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    22
Vendor:         OpenIndiana Community
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    23
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    24
SUNW_Basedir:   %{_basedir}
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    25
SUNW_Copyright: %{name}.copyright
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    26
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    27
%include default-depend.inc
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    28
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    29
# OpenSolaris IPS Package Manifest Fields
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    30
Meta(info.upstream):            Nick Mathewson <[email protected]> and Niels Provos <[email protected]>
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    31
Meta(info.maintainer):          Guido Berhoerster <[email protected]>
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    32
Meta(info.repository_url):      git://levent.git.sourceforge.net/levent/libevent
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    33
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    34
%description
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    35
The libevent library provides a mechanism to execute a function when a specific
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    36
event on a file descriptor occurs or after a given time has passed.
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    37
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    38
%prep
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    39
%setup -q -n libevent-%{version}-stable
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    40
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    41
%build
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    42
CPUS=$(psrinfo | awk '$2=="on-line"{cpus++}END{print (cpus==0)?1:cpus}')
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    43
export CFLAGS="%{optflags}"
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    44
export LDFLAGS="%{_ldflags}"
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    45
./configure \
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    46
    --prefix=%{_prefix} \
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    47
    --mandir=%{_mandir} \
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    48
    --disable-static
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    49
make -j$CPUS
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    50
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    51
%install
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    52
rm -rf $RPM_BUILD_ROOT
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    53
make install DESTDIR=$RPM_BUILD_ROOT
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    54
rm ${RPM_BUILD_ROOT}%{_libdir}/libevent*.la
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    55
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    56
%clean
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    57
rm -rf $RPM_BUILD_ROOT
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    58
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    59
%files
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    60
%defattr(-, root, bin)
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    61
%doc README ChangeLog
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    62
%doc %{_mandir}/man3/*
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    63
%dir %attr (0755, root, bin) %{_prefix}
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    64
%dir %attr (0755, root, bin) %{_bindir}
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    65
%dir %attr (0755, root, bin) %{_libdir}
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    66
%dir %attr (0755, root, bin) %{_includedir}
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    67
%{_bindir}/event_rpcgen.py
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    68
%{_includedir}/*.h
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    69
%{_libdir}/libevent.so
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    70
%{_libdir}/libevent_*.so*
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    71
%{_libdir}/libevent-1.4.so.*
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    72
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    73
%changelog
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    74
* Wed Oct  6 2010 - [email protected]
10291c5dc856 Initial revision.
Guido Berhoerster <gber@openindiana.org>
parents:
diff changeset
    75
- Initial version.