Группа :: Система/Библиотеки
Пакет: qt4-settings
Главная Изменения Спек Патчи Загрузить Bugs and FR
%define rname qt
%define major 4
%define minor 2
%define bugfix 0
%define rlz alt0.M24.1
%define qtname %rname%major
%define qtdir %_libdir/%qtname
%define kdename kde4
%define libkdedir %_libdir/%kdename
Name: %rname%major-settings
Version: %major.%minor
Release: %rlz
Group: System/Libraries
Summary: Qt%major settings
Url: http://www.trolltech.com/products/qt.html
License: GPL & QPL
Requires: %rname%major-common
Source0: Trolltech.conf
Source10: qt4-set-QTDIR-environment-sh
Source11: qt4-set-QTDIR-environment-csh
%description
Qt%major settings files
%prep
%setup -q -T -c
%build
%install
install -d -m 0755 %buildroot/%_sysconfdir/%rname%major
install -d -m 0755 %buildroot/%_sysconfdir/xdg
install -d -m 0755 %buildroot/%_sysconfdir/xdg/Trolltech
install -m 644 %SOURCE0 %buildroot/%_sysconfdir/xdg/
ln -s ../..%_sysconfdir/xdg/Trolltech.conf %buildroot/%_sysconfdir/%rname%major/
install -d -m 0755 %buildroot/%_sysconfdir/profile.d/
install -m 0755 %SOURCE10 %buildroot/%_sysconfdir/profile.d/qt%{major}dir.sh
install -m 0755 %SOURCE11 %buildroot/%_sysconfdir/profile.d/qt%{major}dir.csh
for f in %buildroot/%_sysconfdir/profile.d/qt* \
%buildroot/%_sysconfdir/xdg/* %buildroot/%_sysconfdir/xdg/Trolltech/*
do
[ -f "$f" ] || continue
sed -i "s| at QTDIR at |%qtdir|" "$f"
sed -i "s| at LIBKDEDIR at |%libkdedir|" "$f"
done
%files
#%config(noreplace) %_sysconfdir/profile.d/qt%{major}dir.sh
#%config(noreplace) %_sysconfdir/profile.d/qt%{major}dir.csh
%dir %_sysconfdir/xdg/Trolltech
%config(noreplace) %_sysconfdir/xdg/Trolltech.conf
#%dir %_sysconfdir/%rname%major
#%config %_sysconfdir/%rname%major/Trolltech.conf
%changelog
…
Полный changelog можно просмотреть здесь
%define major 4
%define minor 2
%define bugfix 0
%define rlz alt0.M24.1
%define qtname %rname%major
%define qtdir %_libdir/%qtname
%define kdename kde4
%define libkdedir %_libdir/%kdename
Name: %rname%major-settings
Version: %major.%minor
Release: %rlz
Group: System/Libraries
Summary: Qt%major settings
Url: http://www.trolltech.com/products/qt.html
License: GPL & QPL
Requires: %rname%major-common
Source0: Trolltech.conf
Source10: qt4-set-QTDIR-environment-sh
Source11: qt4-set-QTDIR-environment-csh
%description
Qt%major settings files
%prep
%setup -q -T -c
%build
%install
install -d -m 0755 %buildroot/%_sysconfdir/%rname%major
install -d -m 0755 %buildroot/%_sysconfdir/xdg
install -d -m 0755 %buildroot/%_sysconfdir/xdg/Trolltech
install -m 644 %SOURCE0 %buildroot/%_sysconfdir/xdg/
ln -s ../..%_sysconfdir/xdg/Trolltech.conf %buildroot/%_sysconfdir/%rname%major/
install -d -m 0755 %buildroot/%_sysconfdir/profile.d/
install -m 0755 %SOURCE10 %buildroot/%_sysconfdir/profile.d/qt%{major}dir.sh
install -m 0755 %SOURCE11 %buildroot/%_sysconfdir/profile.d/qt%{major}dir.csh
for f in %buildroot/%_sysconfdir/profile.d/qt* \
%buildroot/%_sysconfdir/xdg/* %buildroot/%_sysconfdir/xdg/Trolltech/*
do
[ -f "$f" ] || continue
sed -i "s| at QTDIR at |%qtdir|" "$f"
sed -i "s| at LIBKDEDIR at |%libkdedir|" "$f"
done
%files
#%config(noreplace) %_sysconfdir/profile.d/qt%{major}dir.sh
#%config(noreplace) %_sysconfdir/profile.d/qt%{major}dir.csh
%dir %_sysconfdir/xdg/Trolltech
%config(noreplace) %_sysconfdir/xdg/Trolltech.conf
#%dir %_sysconfdir/%rname%major
#%config %_sysconfdir/%rname%major/Trolltech.conf
%changelog
…
Полный changelog можно просмотреть здесь