Репозитории ALT
5.1: | 0.8.3-alt5 |
4.1: | 0.8.3-alt4 |
4.0: | 0.8.3-alt1 |
3.0: | 0.7.4-alt0.1.test2 |
Группа :: Базы Данных
Пакет: knoda
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_disable static
%def_enable shared
%def_disable debug
%def_disable profile
%def_disable final
%def_disable rpath
%def_with pic
%def_disable embedded
%def_disable qtopia
%def_disable mac
%def_enable mt
%def_enable threading
%def_without arts
#----------------------------------------------------------------------
%define set_disable() %{expand:%%force_disable %{1}} %{expand:%%undefine _enable_%{1}}
%define set_enable() %{expand:%%force_enable %{1}} %{expand:%%undefine _disable_%{1}}
%define set_with() %{expand:%%force_with %{1}} %{expand:%%undefine _with_%{1}}
%define set_without() %{expand:%%force_without %{1}} %{expand:%%undefine _with_%{1}}
%define subst_enable_to() %{expand:%%{?_enable_%{1}:--enable-%{2}}} %{expand:%%{?_disable_%{1}:--disable-%{2}}}
%define subst_with_to() %{expand:%%{?_with_%{1}:--with-%{2}}} %{expand:%%{?_without_%{1}:--without-%{2}}}
%{?_disable_static:%set_enable shared}
%ifarch x86_64
%set_with pic
%endif
Name: knoda
%define lname libhk_kdeclasses
Version: 0.8.3
%define prerel %nil
Release: alt1
Group: Databases
Summary: Database frontend for KDE based on hk_classes
URL: http://%name.org
License: GPL
Source: %name-%version%prerel.tar.bz2
Requires: %lname = %version
# Automatically added by buildreq on Sat Jul 22 2006
BuildRequires: gcc-c++ libfreetype-devel
BuildRequires: libjpeg-devel libmagic-devel libpng-devel libXext-devel
BuildRequires: libXrender-devel libXt-devel python-dev qt3-designer
BuildRequires: libxml2-devel xml-utils xorg-cf-files
BuildRequires: kdelibs-devel >= 3.2
BuildRequires: libhk_classes-devel >= 0.8.2
%{?_with_arts:BuildRequires: libarts-devel}
%description
%name allows you to:
* define and delete databases;
* create, alter and delete tables and indices;
* add, change and delete data in tables;
* define, execute and store sql queries;
* import and export CSV data;
* define and use forms; and
* define reports with PostScript, HTML or user defined output (coming
next).
Its driver concept allows a uniform connection to different database
servers.
%package -n %lname
Group: System/Libraries
Summary: Database classes for %name
%description -n %lname
The hk_kdeclasses 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 %lname-devel
Group: Development/C++
Summary: Development files for %lname
%description -n %lname-devel
The hk_kdeclasses 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.
This package contains headers and other development files for
%lname.
%if_enabled static
%package -n %lname-devel-static
Group: Development/C++
Summary: Static libraries files for %lname
%description -n %lname-devel-static
The hk_kdeclasses 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.
This package contains static libraries for %lname.
%endif
%prep
%setup -q -n %name-%version%prerel
%build
%undefine __libtoolize
%configure \
%{subst_with pic} \
%{subst_enable rpath} \
%if_enabled debug
--enable-debug=full \
%else
--disable-debug \
%endif
%{subst_enable shared} \
%{subst_enable static} \
%{subst_enable profile} \
--disable-pch \
%{subst_enable embedded} \
%{subst_enable qtopia} \
%{subst_enable mac} \
%{subst_enable mt} \
%{subst_enable treading} \
%{subst_with arts} \
%{subst_enable final}
%make_build
%install
%make DESTDIR=%buildroot install
rm -rf %buildroot%_datadir/applnk
install -pD -m 0644 %name/%name.desktop %buildroot/%_desktopdir/kde/%name.desktop
iconv -f cp1251 -t utf-8 >> %buildroot/%_desktopdir/kde/%name.desktop <<__MENU__
Version=1.0
Comment[uk]=нАНКНМЙЮ ДН АЮГХ ДЮМХУ
Comment[ru]=нАНКНВЙЮ Й АЮГЕ ДЮММШУ
__MENU__
bzip2 --best --keep --force -- ChangeLog
%find_lang --with-kde %name
%post
%update_menus
%postun
%clean_menus
%post -n %lname -p %post_ldconfig
%postun -n %lname -p %post_ldconfig
%files -f %name.lang
%doc README AUTHORS ChangeLog.*
%_bindir/*
%_datadir/apps/%name
%_desktopdir/kde/
%_miconsdir/*
%_niconsdir/*
%_iconsdir/locolor/*/apps/*
%files -n %lname
%doc README AUTHORS
%_datadir/apps/hk_kdeclasses
%_datadir/services/hk_kde*.desktop
%_datadir/config/magic/*.magic
%_datadir/mimelnk/application/*.desktop
%_libdir/*.so
%_libdir/kde3/*.so
%_libdir/kde3/*.la
%files -n %lname-devel
%doc ChangeLog.*
%_includedir/*.h
%if_enabled static
%files -n %lname-devel-static
%_libdir/*.a
%_libdir/kde3/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%def_enable shared
%def_disable debug
%def_disable profile
%def_disable final
%def_disable rpath
%def_with pic
%def_disable embedded
%def_disable qtopia
%def_disable mac
%def_enable mt
%def_enable threading
%def_without arts
#----------------------------------------------------------------------
%define set_disable() %{expand:%%force_disable %{1}} %{expand:%%undefine _enable_%{1}}
%define set_enable() %{expand:%%force_enable %{1}} %{expand:%%undefine _disable_%{1}}
%define set_with() %{expand:%%force_with %{1}} %{expand:%%undefine _with_%{1}}
%define set_without() %{expand:%%force_without %{1}} %{expand:%%undefine _with_%{1}}
%define subst_enable_to() %{expand:%%{?_enable_%{1}:--enable-%{2}}} %{expand:%%{?_disable_%{1}:--disable-%{2}}}
%define subst_with_to() %{expand:%%{?_with_%{1}:--with-%{2}}} %{expand:%%{?_without_%{1}:--without-%{2}}}
%{?_disable_static:%set_enable shared}
%ifarch x86_64
%set_with pic
%endif
Name: knoda
%define lname libhk_kdeclasses
Version: 0.8.3
%define prerel %nil
Release: alt1
Group: Databases
Summary: Database frontend for KDE based on hk_classes
URL: http://%name.org
License: GPL
Source: %name-%version%prerel.tar.bz2
Requires: %lname = %version
# Automatically added by buildreq on Sat Jul 22 2006
BuildRequires: gcc-c++ libfreetype-devel
BuildRequires: libjpeg-devel libmagic-devel libpng-devel libXext-devel
BuildRequires: libXrender-devel libXt-devel python-dev qt3-designer
BuildRequires: libxml2-devel xml-utils xorg-cf-files
BuildRequires: kdelibs-devel >= 3.2
BuildRequires: libhk_classes-devel >= 0.8.2
%{?_with_arts:BuildRequires: libarts-devel}
%description
%name allows you to:
* define and delete databases;
* create, alter and delete tables and indices;
* add, change and delete data in tables;
* define, execute and store sql queries;
* import and export CSV data;
* define and use forms; and
* define reports with PostScript, HTML or user defined output (coming
next).
Its driver concept allows a uniform connection to different database
servers.
%package -n %lname
Group: System/Libraries
Summary: Database classes for %name
%description -n %lname
The hk_kdeclasses 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 %lname-devel
Group: Development/C++
Summary: Development files for %lname
%description -n %lname-devel
The hk_kdeclasses 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.
This package contains headers and other development files for
%lname.
%if_enabled static
%package -n %lname-devel-static
Group: Development/C++
Summary: Static libraries files for %lname
%description -n %lname-devel-static
The hk_kdeclasses 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.
This package contains static libraries for %lname.
%endif
%prep
%setup -q -n %name-%version%prerel
%build
%undefine __libtoolize
%configure \
%{subst_with pic} \
%{subst_enable rpath} \
%if_enabled debug
--enable-debug=full \
%else
--disable-debug \
%endif
%{subst_enable shared} \
%{subst_enable static} \
%{subst_enable profile} \
--disable-pch \
%{subst_enable embedded} \
%{subst_enable qtopia} \
%{subst_enable mac} \
%{subst_enable mt} \
%{subst_enable treading} \
%{subst_with arts} \
%{subst_enable final}
%make_build
%install
%make DESTDIR=%buildroot install
rm -rf %buildroot%_datadir/applnk
install -pD -m 0644 %name/%name.desktop %buildroot/%_desktopdir/kde/%name.desktop
iconv -f cp1251 -t utf-8 >> %buildroot/%_desktopdir/kde/%name.desktop <<__MENU__
Version=1.0
Comment[uk]=нАНКНМЙЮ ДН АЮГХ ДЮМХУ
Comment[ru]=нАНКНВЙЮ Й АЮГЕ ДЮММШУ
__MENU__
bzip2 --best --keep --force -- ChangeLog
%find_lang --with-kde %name
%post
%update_menus
%postun
%clean_menus
%post -n %lname -p %post_ldconfig
%postun -n %lname -p %post_ldconfig
%files -f %name.lang
%doc README AUTHORS ChangeLog.*
%_bindir/*
%_datadir/apps/%name
%_desktopdir/kde/
%_miconsdir/*
%_niconsdir/*
%_iconsdir/locolor/*/apps/*
%files -n %lname
%doc README AUTHORS
%_datadir/apps/hk_kdeclasses
%_datadir/services/hk_kde*.desktop
%_datadir/config/magic/*.magic
%_datadir/mimelnk/application/*.desktop
%_libdir/*.so
%_libdir/kde3/*.so
%_libdir/kde3/*.la
%files -n %lname-devel
%doc ChangeLog.*
%_includedir/*.h
%if_enabled static
%files -n %lname-devel-static
%_libdir/*.a
%_libdir/kde3/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь