Group :: Sistema/Bibliotecas
RPM: libopenobex
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# -*- rpm-spec -*-
# $Id: libopenobex,v 1.6 2003/12/12 13:00:26 grigory Exp $
%define realname openobex
%def_disable static
Summary: OpenOBEX - Free implementation of the Object Exchange protocol
Name: lib%realname
Version: 1.3
Release: alt1
License: LGPL
Group: System/Libraries
Packager: Pavlov Konstantin <thresh at altlinux.ru>
URL: http://openobex.sourceforge.net
Source: ftp://download.sourceforge.net/pub/sourceforge/openobex/%realname-%version.tar.gz
BuildRequires: libbluez-devel libusb-devel pkg-config xmlto
%if_enabled static
BuildRequires: glibc-devel-static
%endif
%package devel
Summary: Development files of OpenOBEX libraries
Group: Development/C
Requires: %name = %version-%release
%if_enabled static
%package devel-static
Summary: Static development files of OpenOBEX libraries
Group: Development/C
Requires: %name-devel = %version-%version
%endif
%description
OpenOBEX - Free implementation of the Object Exchange protocol.
This package contains Open OBEX shared libraries.
%description devel
OpenOBEX - Free implementation of the Object Exchange protocol.
This package containns development files of Open OBEX library.
%if_enabled static
%description devel-static
OpenOBEX - Free implementation of the Object Exchange protocol.
This package contains static development files of Open OBEX library.
%endif
%prep
%setup -q -n %realname-%version
%build
#autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS" ./configure \
--prefix=%_prefix \
--libdir=%_libdir \
%{subst_enable static}
%make_build
cd doc
%make_build openobex.sgml
xmlto -o openobex html openobex.sgml
cd ..
%install
%make_install DESTDIR="%buildroot" install
mkdir -p %buildroot%_docdir/%realname-%version/devel
cp -R doc/openobex %buildroot%_docdir/%realname-%version/devel
cp {AUTHORS,ChangeLog,README} %buildroot%_docdir/%realname-%version
ln -sf /usr/share/license/GPL-2 %buildroot%_docdir/%realname-%version/COPYING
ln -sf /usr/share/license/LGPL-2.1 %buildroot%_docdir/%realname-%version/COPYING.LIB
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%_docdir/%realname-%version/
%exclude %_docdir/%realname-%version/devel
%_libdir/lib%{realname}*.so.*
%files devel
%_pkgconfigdir/%realname.pc
%_includedir/*
%_libdir/lib%realname.so
%_datadir/aclocal/%realname.m4
%_docdir/%realname-%version/devel
%if_enabled static
%files devel-static
%_libdir/lib%{realname}*.a
%endif
%changelog
…
Todas as alterações você pod ver aqui
# $Id: libopenobex,v 1.6 2003/12/12 13:00:26 grigory Exp $
%define realname openobex
%def_disable static
Summary: OpenOBEX - Free implementation of the Object Exchange protocol
Name: lib%realname
Version: 1.3
Release: alt1
License: LGPL
Group: System/Libraries
Packager: Pavlov Konstantin <thresh at altlinux.ru>
URL: http://openobex.sourceforge.net
Source: ftp://download.sourceforge.net/pub/sourceforge/openobex/%realname-%version.tar.gz
BuildRequires: libbluez-devel libusb-devel pkg-config xmlto
%if_enabled static
BuildRequires: glibc-devel-static
%endif
%package devel
Summary: Development files of OpenOBEX libraries
Group: Development/C
Requires: %name = %version-%release
%if_enabled static
%package devel-static
Summary: Static development files of OpenOBEX libraries
Group: Development/C
Requires: %name-devel = %version-%version
%endif
%description
OpenOBEX - Free implementation of the Object Exchange protocol.
This package contains Open OBEX shared libraries.
%description devel
OpenOBEX - Free implementation of the Object Exchange protocol.
This package containns development files of Open OBEX library.
%if_enabled static
%description devel-static
OpenOBEX - Free implementation of the Object Exchange protocol.
This package contains static development files of Open OBEX library.
%endif
%prep
%setup -q -n %realname-%version
%build
#autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS" ./configure \
--prefix=%_prefix \
--libdir=%_libdir \
%{subst_enable static}
%make_build
cd doc
%make_build openobex.sgml
xmlto -o openobex html openobex.sgml
cd ..
%install
%make_install DESTDIR="%buildroot" install
mkdir -p %buildroot%_docdir/%realname-%version/devel
cp -R doc/openobex %buildroot%_docdir/%realname-%version/devel
cp {AUTHORS,ChangeLog,README} %buildroot%_docdir/%realname-%version
ln -sf /usr/share/license/GPL-2 %buildroot%_docdir/%realname-%version/COPYING
ln -sf /usr/share/license/LGPL-2.1 %buildroot%_docdir/%realname-%version/COPYING.LIB
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%_docdir/%realname-%version/
%exclude %_docdir/%realname-%version/devel
%_libdir/lib%{realname}*.so.*
%files devel
%_pkgconfigdir/%realname.pc
%_includedir/*
%_libdir/lib%realname.so
%_datadir/aclocal/%realname.m4
%_docdir/%realname-%version/devel
%if_enabled static
%files devel-static
%_libdir/lib%{realname}*.a
%endif
%changelog
…
Todas as alterações você pod ver aqui