%define _prefix /opt/freeware %define _defaultdocdir %{_prefix}/doc %define pkgconfig_version 0.15.0 %define glib2_version 2.2.1 Summary: Library for writing network programs Name: linc Version: 1.0.1 Release: 1 Source: ftp://ftp.gnome.org/pub/GNOME/pre-gnome2/sources/linc/%{name}-%{version}.tar.bz2 Patch0: linc-1.0.1-aix.patch Patch1: linc-1.0.1-autotools.patch Group: System Environment/Libraries License: LGPL BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: pkgconfig >= 0.8 BuildRequires: glib2-devel >= 2.0 %description linc is a library that eases the task of writing networked servers and clients. It takes care of connection initiation and maintainance, and the details of varioustransports. It is used by the new ORBit to handle message transmission/receipt. %package devel Summary: Development libraries and header files for linc. Group: Development/Libraries Requires: %{name} = %{version} Requires: pkgconfig >= %{pkgconfig_version} Requires: glib2-devel >= %{glib2_version} %description devel linc is a library that eases the task of writing networked servers and clients. It takes care of connection initiation and maintainance, and the details of varioustransports. It is used by the new ORBit to handle message transmission/receipt. This package contains the header files and libraries needed to write or compile programs that use linc. %prep %setup -q if test x$PATCH = x ; then PATCH=patch ; fi $PATCH -p2 -s < %{_sourcedir}/linc-1.0.1-aix.patch $PATCH -p2 -s < %{_sourcedir}/linc-1.0.1-autotools.patch %build PATH=%{_bindir}:$PATH ./configure --prefix=%{_prefix} PATH=%{_bindir}:$PATH make %install if test "%{buildroot}" != "/"; then rm -rf %{buildroot} fi mkdir -p %{buildroot} PATH=%{_bindir}:$PATH make DESTDIR=%{buildroot} install-strip # make links cd %{buildroot} for dir in bin lib include do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{_prefix}/$dir/* . cd - done %files %defattr(-,root,system) %doc AUTHORS COPYING README NEWS %{_libdir}/*.a /usr/lib/*.a %files devel %defattr(-,root,system) %{_includedir}/* /usr/include/* %{_libdir}/*.la %{_libdir}/pkgconfig/* %{_bindir}/* /usr/bin/* %{_datadir}/aclocal/* %{_datadir}/gtk-doc