Группа :: Система/Библиотеки
Пакет: libxmlkit
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# vim: set ft=spec: -*- rpm-spec -*-
# $Id: libxmlkit,v 1.6 2004/07/19 16:02:38 raorn Exp $
%def_disable static
%define lname libxmlkit
%define dname LibXmlKit
Name: %lname
Version: 0.1.1
Release: alt2.1
Summary: Objective-C wrapper for gnome libxml2
Group: System/Libraries
License: GPL
Url: http://www.asahi-net.or.jp/~em7t-hmd/%dname
Source: %url/%lname-%version.tar.gz
Source1: objc.m4
Patch: %lname-0.1.1-alt-pkgconfig.patch
Patch1: %lname-0.1.1-alt-objc.patch
Patch2: %lname-0.1.1-alt-fuck-libxml2-developers.patch
# Automatically added by buildreq on Wed Jul 14 2004 (-bi)
BuildRequires: doxygen gcc-objc libobjc-devel libxml2-devel zlib-devel
%{?_enable_static:BuildPreReq: glibc-devel-static}
BuildPreReq: autoconf_2.5 >= 2.57, automake_1.7, libtool_1.4
%set_autoconf_version 2.5
%set_automake_version 1.7
%set_libtool_version 1.4
%description
LibXmlKit is Objective-C wrapper of libxml2 library. It is useable
on Unix system (such as FreeBSD, Linux) and MacOS-X.
%package devel
Summary: Development headers for %dname
Group: Development/Objective-C
Requires: %name = %version-%release, libxml2-devel
%description devel
LibXmlKit is Objective-C wrapper of libxml2 library. It is useable
on Unix system (such as FreeBSD, Linux) and MacOS-X.
The %name-devel package contains the include files needed to develop
programs that use the %dname library.
%if_enabled static
%package devel-static
Summary: Static version of %dname library
Group: Development/Objective-C
Requires: %name-devel = %version-%release
%description devel-static
Static version of %dname library
%endif
%prep
%setup -q -n %dname-%version
%__cp -p %SOURCE1 macros/
%patch -p1
%patch1 -p1
%patch2 -p1
%build
%__rm -rf *cache aclocal.m4 libtool
%__libtoolize --copy --force
%__aclocal -I macros
%__autoheader
%__automake --gnu --add-missing --copy
%__autoconf
%{?!_enable_static:export lt_cv_prog_cc_static_works=no}
%configure \
%{subst_enable static}
%make_build
%install
%make_install DESTDIR=%buildroot install
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%doc AUTHORS BUGS NEWS README
%_libdir/%name.so.*
%files devel
%doc doc/api/html/*
%_includedir/%dname
%_libdir/%name.so
%_libdir/pkgconfig/%lname.pc
%_datadir/aclocal/%lname.m4
%if_enabled static
%files devel-static
%_libdir/%name.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь
# $Id: libxmlkit,v 1.6 2004/07/19 16:02:38 raorn Exp $
%def_disable static
%define lname libxmlkit
%define dname LibXmlKit
Name: %lname
Version: 0.1.1
Release: alt2.1
Summary: Objective-C wrapper for gnome libxml2
Group: System/Libraries
License: GPL
Url: http://www.asahi-net.or.jp/~em7t-hmd/%dname
Source: %url/%lname-%version.tar.gz
Source1: objc.m4
Patch: %lname-0.1.1-alt-pkgconfig.patch
Patch1: %lname-0.1.1-alt-objc.patch
Patch2: %lname-0.1.1-alt-fuck-libxml2-developers.patch
# Automatically added by buildreq on Wed Jul 14 2004 (-bi)
BuildRequires: doxygen gcc-objc libobjc-devel libxml2-devel zlib-devel
%{?_enable_static:BuildPreReq: glibc-devel-static}
BuildPreReq: autoconf_2.5 >= 2.57, automake_1.7, libtool_1.4
%set_autoconf_version 2.5
%set_automake_version 1.7
%set_libtool_version 1.4
%description
LibXmlKit is Objective-C wrapper of libxml2 library. It is useable
on Unix system (such as FreeBSD, Linux) and MacOS-X.
%package devel
Summary: Development headers for %dname
Group: Development/Objective-C
Requires: %name = %version-%release, libxml2-devel
%description devel
LibXmlKit is Objective-C wrapper of libxml2 library. It is useable
on Unix system (such as FreeBSD, Linux) and MacOS-X.
The %name-devel package contains the include files needed to develop
programs that use the %dname library.
%if_enabled static
%package devel-static
Summary: Static version of %dname library
Group: Development/Objective-C
Requires: %name-devel = %version-%release
%description devel-static
Static version of %dname library
%endif
%prep
%setup -q -n %dname-%version
%__cp -p %SOURCE1 macros/
%patch -p1
%patch1 -p1
%patch2 -p1
%build
%__rm -rf *cache aclocal.m4 libtool
%__libtoolize --copy --force
%__aclocal -I macros
%__autoheader
%__automake --gnu --add-missing --copy
%__autoconf
%{?!_enable_static:export lt_cv_prog_cc_static_works=no}
%configure \
%{subst_enable static}
%make_build
%install
%make_install DESTDIR=%buildroot install
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%doc AUTHORS BUGS NEWS README
%_libdir/%name.so.*
%files devel
%doc doc/api/html/*
%_includedir/%dname
%_libdir/%name.so
%_libdir/pkgconfig/%lname.pc
%_datadir/aclocal/%lname.m4
%if_enabled static
%files devel-static
%_libdir/%name.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь