Group :: System/Configuration/Other
RPM: alterator-browser-qt
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define alterator_cfg %_sysconfdir/alterator
Name: alterator-browser-qt
Version: 2.9.69
Release: alt2
Source:%name-%version.tar
Summary: X11 Qt interface driver for alterator
License: GPL
Group: System/Configuration/Other
Packager: Sergey V Turchin <zerg at altlinux dot org>
Requires: alterator-common >= 2.9-alt0.14
Requires: alterator-icons
PreReq(post,preun): alternatives >= 0.2
Provides: alterator-browser
Provides: alterator-browser-x11
Provides: alterator-browser-qt-light = 2.8-alt1
Obsoletes: alterator-browser-qt-light < 2.8-alt1
Requires: libqt4-core >= %{get_version libqt4-core}
Obsoletes: alterator-look-qt
BuildRequires(pre): libqt4-core
BuildRequires: libalternatives-devel
BuildRequires: fontconfig freetype2 gcc-c++ libqt4-devel libstdc++-devel
%description
X11 Qt interface driver for alterator
%prep
%setup -q
%_qt4dir/bin/qmake -spec default
#sed -i "s|^\s*CFLAGS\s*=.*$|CFLAGS = %optflags -D_REENTRANT \$(DEFINES)|" Makefile
#sed -i "s|^\s*CXXFLAGS\s*=.*$|CXXFLAGS = %optflags -D_REENTRANT \$(DEFINES)|" Makefile
%build
%make_build
%install
%make INSTALL_ROOT=%buildroot install
ln -s %name %buildroot/%_bindir/qtbrowser
mkdir -p %buildroot/%_altdir
cat >%buildroot/%_altdir/%name <<__EOF__
%_bindir/alterator-browser-x11 %_bindir/%name 99
__EOF__
mkdir -p %buildroot/%alterator_cfg
ln -s /dev/null %buildroot/%alterator_cfg/design-browser-qt
mkdir -p %buildroot/%_datadir/%name/design
ln -s %alterator_cfg/design-browser-qt %buildroot/%_datadir/%name/design/current
%post
%post_register_alternatives %name -- %name
%update_alternatives
%preun
%preun_unregister_alternatives %name
%files
%config %_altdir/%name
%ghost %config %alterator_cfg/design-browser-qt
%_bindir/*
%_datadir/%name/
%changelog
…
Full changelog you can see here
%define alterator_cfg %_sysconfdir/alterator
Name: alterator-browser-qt
Version: 2.9.69
Release: alt2
Source:%name-%version.tar
Summary: X11 Qt interface driver for alterator
License: GPL
Group: System/Configuration/Other
Packager: Sergey V Turchin <zerg at altlinux dot org>
Requires: alterator-common >= 2.9-alt0.14
Requires: alterator-icons
PreReq(post,preun): alternatives >= 0.2
Provides: alterator-browser
Provides: alterator-browser-x11
Provides: alterator-browser-qt-light = 2.8-alt1
Obsoletes: alterator-browser-qt-light < 2.8-alt1
Requires: libqt4-core >= %{get_version libqt4-core}
Obsoletes: alterator-look-qt
BuildRequires(pre): libqt4-core
BuildRequires: libalternatives-devel
BuildRequires: fontconfig freetype2 gcc-c++ libqt4-devel libstdc++-devel
%description
X11 Qt interface driver for alterator
%prep
%setup -q
%_qt4dir/bin/qmake -spec default
#sed -i "s|^\s*CFLAGS\s*=.*$|CFLAGS = %optflags -D_REENTRANT \$(DEFINES)|" Makefile
#sed -i "s|^\s*CXXFLAGS\s*=.*$|CXXFLAGS = %optflags -D_REENTRANT \$(DEFINES)|" Makefile
%build
%make_build
%install
%make INSTALL_ROOT=%buildroot install
ln -s %name %buildroot/%_bindir/qtbrowser
mkdir -p %buildroot/%_altdir
cat >%buildroot/%_altdir/%name <<__EOF__
%_bindir/alterator-browser-x11 %_bindir/%name 99
__EOF__
mkdir -p %buildroot/%alterator_cfg
ln -s /dev/null %buildroot/%alterator_cfg/design-browser-qt
mkdir -p %buildroot/%_datadir/%name/design
ln -s %alterator_cfg/design-browser-qt %buildroot/%_datadir/%name/design/current
%post
%post_register_alternatives %name -- %name
%update_alternatives
%preun
%preun_unregister_alternatives %name
%files
%config %_altdir/%name
%ghost %config %alterator_cfg/design-browser-qt
%_bindir/*
%_datadir/%name/
%changelog
…
Full changelog you can see here