Репозитории ALT
5.1: | 0.8.3-alt3 |
4.1: | 0.8.3-alt2.1 |
4.0: | 0.8.3-alt1.0 |
3.0: | 0.7.4-alt0.1.test2 |
Группа :: Система/Библиотеки
Пакет: hk_classes
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
#%undefine __libtoolize
%define objprelink 0
%define static 0
%define test test3
Name: hk_classes
Version: 0.7.4
Release: alt0.1.test2
Packager: Yehuda Ben-Yosef <ilar at altlinux.ru>
Group: System/Libraries
Summary: Database classes for KNoda
License: GPL
URL: http://hk-classes.sourceforge.net
Source0: %name-%version-test2a.tar.bz2
# Automatically added by buildreq on Fri Jun 10 2005
BuildRequires: gcc-c++ gcc-g77 glib2-devel libMySQL-devel libsqlite3-devel
BuildRequires: libstdc++-devel libunixODBC-devel pkgconfig python-base python-dev python-modules-compiler
BuildRequires: python-modules-encodings sqlite-devel
%if %objprelink
BuildRequires: objprelink
%endif
%description
the hk_classes are a set of non-visual routines which allow you to develop
database frontend applications as easy as possible.
You need also a database driver to run applications. A driver for Mysql is
included in this library
and will be automatically installed if configure finds a working mysql
installation on your computer.
%package -n lib%name
Group: System/Libraries
Summary: Database classes for KNoda
Provides: %name = %version-%release
Obsoletes: %name
%description -n lib%name
the hk_classes are a set of non-visual routines which allow you to develop
database frontend applications as easy as possible.
You need also a database driver to run applications. A driver for Mysql is
included in this library
and will be automatically installed if configure finds a working mysql
installation on your computer.
%package -n lib%name-devel
Group: Development/C++
Summary: Development files for lib%name
Requires: lib%name = %version-%release
#
%description -n lib%name-devel
This package contains headers and other development files for lib%name
%if %static
%package -n lib%name-devel-static
Group: Development/C++
Summary: Database classes for KNoda
Requires: lib%name-devel = %version-%release
#
%description -n lib%name-devel-static
This package contains static libraries for development with lib%name
%endif
%add_findprov_lib_path %_libdir/%name
%prep
%setup -q -n %name-%version-test2a
%build
%__subst 's,\.la\>,.so,' configure
%if %static
%configure \
--enable-shared \
--enable-static
%else
%configure \
--enable-shared \
--disable-static
%endif
%if %objprelink
%make_build CXX=g++prelink
%else
%make_build
%endif
%install
%make DESTDIR=%buildroot install
#%set_verify_elf_method relaxed
%find_lang %name
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%files -n lib%name
%doc README AUTHORS
%_bindir/*
%dir %_libdir/%name
%_libdir/%name/*.so.*
%_libdir/%name/lib%name.so
%dir %_libdir/%name/drivers
%_libdir/%name/drivers/*.so.*
%_libdir/%name/drivers/*.so
%_libdir/python2.4/site-packages/*.so
%_libdir/python2.4/site-packages/*.p*
%_mandir/man1/*
%files -n lib%name-devel
%_includedir/*
%_libdir/%name/*.la
%_libdir/%name/drivers/*.la
%if %static
%files -n lib%name-devel-static
%_libdir/%name/*.a
%_libdir/%name/drivers/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%define objprelink 0
%define static 0
%define test test3
Name: hk_classes
Version: 0.7.4
Release: alt0.1.test2
Packager: Yehuda Ben-Yosef <ilar at altlinux.ru>
Group: System/Libraries
Summary: Database classes for KNoda
License: GPL
URL: http://hk-classes.sourceforge.net
Source0: %name-%version-test2a.tar.bz2
# Automatically added by buildreq on Fri Jun 10 2005
BuildRequires: gcc-c++ gcc-g77 glib2-devel libMySQL-devel libsqlite3-devel
BuildRequires: libstdc++-devel libunixODBC-devel pkgconfig python-base python-dev python-modules-compiler
BuildRequires: python-modules-encodings sqlite-devel
%if %objprelink
BuildRequires: objprelink
%endif
%description
the hk_classes are a set of non-visual routines which allow you to develop
database frontend applications as easy as possible.
You need also a database driver to run applications. A driver for Mysql is
included in this library
and will be automatically installed if configure finds a working mysql
installation on your computer.
%package -n lib%name
Group: System/Libraries
Summary: Database classes for KNoda
Provides: %name = %version-%release
Obsoletes: %name
%description -n lib%name
the hk_classes are a set of non-visual routines which allow you to develop
database frontend applications as easy as possible.
You need also a database driver to run applications. A driver for Mysql is
included in this library
and will be automatically installed if configure finds a working mysql
installation on your computer.
%package -n lib%name-devel
Group: Development/C++
Summary: Development files for lib%name
Requires: lib%name = %version-%release
#
%description -n lib%name-devel
This package contains headers and other development files for lib%name
%if %static
%package -n lib%name-devel-static
Group: Development/C++
Summary: Database classes for KNoda
Requires: lib%name-devel = %version-%release
#
%description -n lib%name-devel-static
This package contains static libraries for development with lib%name
%endif
%add_findprov_lib_path %_libdir/%name
%prep
%setup -q -n %name-%version-test2a
%build
%__subst 's,\.la\>,.so,' configure
%if %static
%configure \
--enable-shared \
--enable-static
%else
%configure \
--enable-shared \
--disable-static
%endif
%if %objprelink
%make_build CXX=g++prelink
%else
%make_build
%endif
%install
%make DESTDIR=%buildroot install
#%set_verify_elf_method relaxed
%find_lang %name
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%files -n lib%name
%doc README AUTHORS
%_bindir/*
%dir %_libdir/%name
%_libdir/%name/*.so.*
%_libdir/%name/lib%name.so
%dir %_libdir/%name/drivers
%_libdir/%name/drivers/*.so.*
%_libdir/%name/drivers/*.so
%_libdir/python2.4/site-packages/*.so
%_libdir/python2.4/site-packages/*.p*
%_mandir/man1/*
%files -n lib%name-devel
%_includedir/*
%_libdir/%name/*.la
%_libdir/%name/drivers/*.la
%if %static
%files -n lib%name-devel-static
%_libdir/%name/*.a
%_libdir/%name/drivers/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь