| 1 |
Name: @PACKAGE@ |
|---|
| 2 |
Version: @VERSION@ |
|---|
| 3 |
# Release: 0.hpj.1 |
|---|
| 4 |
|
|---|
| 5 |
Summary: Asynchronous networking library |
|---|
| 6 |
Copyright: LGPL |
|---|
| 7 |
Group: Networking/Library |
|---|
| 8 |
URL: http://hp.cl.no/proj/flow/ |
|---|
| 9 |
Packager: Hans Petter Jansson <hpj@copyleft.no> |
|---|
| 10 |
|
|---|
| 11 |
Source: %{name}-%{version}.tar.gz |
|---|
| 12 |
BuildRoot: /var/tmp/%{name}-%{version}-root |
|---|
| 13 |
Requires: glib2 >= @GLIB_REQUIRED@ |
|---|
| 14 |
BuildRequires: glib2-devel >= @GLIB_REQUIRED@ |
|---|
| 15 |
|
|---|
| 16 |
%description |
|---|
| 17 |
A library for asynchronous networking and data processing |
|---|
| 18 |
based on a simple network flow model. |
|---|
| 19 |
|
|---|
| 20 |
Comments and questions should be sent to <hpj@copyleft.no>. |
|---|
| 21 |
|
|---|
| 22 |
%prep |
|---|
| 23 |
%setup |
|---|
| 24 |
|
|---|
| 25 |
%build |
|---|
| 26 |
|
|---|
| 27 |
%ifarch alpha |
|---|
| 28 |
MYARCH_FLAGS="--host=alpha-redhat-linux" |
|---|
| 29 |
%endif |
|---|
| 30 |
|
|---|
| 31 |
# Needed for snapshot releases. |
|---|
| 32 |
MYCFLAGS="$RPM_OPT_FLAGS" |
|---|
| 33 |
|
|---|
| 34 |
if [ ! -f configure ]; then |
|---|
| 35 |
CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS \ |
|---|
| 36 |
--enable-more-warnings --prefix=%{_prefix} \ |
|---|
| 37 |
--sysconfdir=%{_sysconfdir} \ |
|---|
| 38 |
--mandir=%{_mandir} --libdir=%{_libdir} \ |
|---|
| 39 |
--includedir=%{_includedir} --bindir=%{_bindir} |
|---|
| 40 |
fi |
|---|
| 41 |
|
|---|
| 42 |
CFLAGS="$MYCFLAGS" ./configure $MYARCH_FLAGS --enable-more-warnings \ |
|---|
| 43 |
--prefix=%{_prefix} \ |
|---|
| 44 |
--sysconfdir=%{_sysconfdir} --mandir=%{_mandir} \ |
|---|
| 45 |
--libdir=%{_libdir} --includedir=%{_includedir} \ |
|---|
| 46 |
--bindir=%{_bindir} |
|---|
| 47 |
|
|---|
| 48 |
make |
|---|
| 49 |
|
|---|
| 50 |
%install |
|---|
| 51 |
rm -rf $RPM_BUILD_ROOT |
|---|
| 52 |
make -k sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \ |
|---|
| 53 |
prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \ |
|---|
| 54 |
libdir=$RPM_BUILD_ROOT%{_libdir} bindir=$RPM_BUILD_ROOT\%{_bindir} \ |
|---|
| 55 |
includedir=$RPM_BUILD_ROOT%{_includedir} install |
|---|
| 56 |
|
|---|
| 57 |
%post -p /sbin/ldconfig |
|---|
| 58 |
%postun -p /sbin/ldconfig |
|---|
| 59 |
|
|---|
| 60 |
%clean |
|---|
| 61 |
rm -rf $RPM_BUILD_ROOT |
|---|
| 62 |
|
|---|
| 63 |
%files |
|---|
| 64 |
%defattr(-, root, root) |
|---|
| 65 |
|
|---|
| 66 |
%doc README COPYING ChangeLog NEWS AUTHORS INSTALL |
|---|
| 67 |
%{_bindir}/%{name} |
|---|
| 68 |
%{_prefix}/share/%{name} |
|---|
| 69 |
|
|---|
| 70 |
%changelog |
|---|
| 71 |
* Sat Mar 22 2003 Hans Petter Jansson <hpj@copyleft.no> |
|---|
| 72 |
- Wrote initial spec file. |
|---|