packages liblinc.spec
      Pages: < 1 >  DOWNLOAD      
%define        majversion %(echo %version | cut -d. -f 1-2)

Name:          liblinc
Version:       1.1.1
Release:       2mamba
Summary:       Library for writing networked clients and servers
Group:         System/Libraries
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
URL:           http://www.gnome.org
Source:        http://ftp.gnome.org/pub/GNOME/sources/linc/%{majversion}/linc-%{version}.tar.bz2
License:       GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libglib-devel
## AUTOBUILDREQ-END
BuildRequires: libxml2 >= 2.5.7
BuildRequires: gtk-doc >= 1.0
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
Library for writing networked clients and servers.

%package devel
Summary:       Devel package for liblinc
Group:         Development/Libraries
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description devel
Library for writing networked clients and servers.

This package contains static libraries and header files need for development.

%prep
%setup -q -n linc-%{version}

%build
%configure \
   --libexecdir=%{_sbindir} \
   --enable-gtk-doc

%make -j1

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall

# remove program that already exists in ORBit package
rm -f %{buildroot}%{_bindir}/linc-cleanup-sockets

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%post   -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/*.so.*
%doc AUTHORS ChangeLog COPYING HACKING MAINTAINERS NEWS README TODO

%files devel
%defattr(-,root,root)
%{_bindir}/linc-*
%{_datadir}/aclocal/linc.m4
%dir %{_datadir}/gtk-doc/html/linc
%{_datadir}/gtk-doc/html/linc/*
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/pkgconfig/linc.pc
%dir %{_includedir}/linc-?.?/linc
%{_includedir}/linc-?.?/linc/*.h

%changelog
* Thu Jan 01 2009 Silvan Calarco <silvan.calarco@...> 1.1.1-2mamba
- specfile updated

* Tue Jun 13 2006 Stefano Cotta Ramusino <stefano.cotta@...> 1.1.1-1qilnx
- update to version 1.1.1 by autospec

* Tue Dec 30 2003 Silvan Calarco <silvan.calarco@...> 1.0.3-1qilnx
- first build