Sisyphus
: 16 2017 | : 18231 | : 10583862
en ru br
ALT
S:3.19.1.0-alt2
5.1: 2.0.5.0-alt6
4.1: 2.0.5.0-alt5
4.0: 2.0.5.0-alt5
3.0: 2.0.4.0-alt2
www.altlinux.org/Changes

::
: qcad

             Sources      Gear   Bugs and FR  Repocop 

Name: qcad
Summary: a professional CAD system
Summary(ru_RU.UTF-8): Профессиональная CAD система
Version: 2.0.5.0
Release: alt6
Url: http://www.ribbonsoft.com/qcad.html
License: GPL
Group: Graphics

Packager: Valery Inozemtsev <shrek at altlinux.ru>

Requires: qt3-assistant

Source0: qcad-%version.tar.bz2
Source1: qcad.desktop

Source10: qcad-icons.tar.bz2
Source11: qcad-tango-icons.tar.bz2

Patch0: qcad-2.0.5.0-x86_64.patch
Patch1: qcad-2.0.5.0-alt-qassistant.patch
Patch2: qcad-2.0.5.0-alt-qcaddoc.adp.patch
Patch3: qcad-2.0.5.0-alt-gcc43.patch

# Automatically added by buildreq on Sat Apr 14 2007

BuildRequires: gcc-c++ libqt3-devel python

%description
QCad is a professional CAD System. With QCad you can easily construct and
change drawings with ISO-text and many other features and save them as
DXF-files. These DXF-files are the interface to many CAD-systems such
as AutoCAD(TM) and many others.

%description -l ru_RU.UTF-8
QCad это профессиональная CAD система. С QCad вы можете легко создавать и
изменять рисунки с вставленным текстом и сохранять это в DXF файлы.
Через DXF файлы есть возможность обмениваться данными с другими CAD системами
(например AutoCAD(TM)).

%prep
%setup -q

tar -xjf %SOURCE11

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

subst "s,FULLASSISTANTPATH,%_libdir/qt3/bin," qcad/src/qc_applicationwindow.cpp
subst "s,QCADDOCPATH,%_docdir/%name-%version," qcad/src/qc_applicationwindow.cpp

%build
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
export QTDIR=%_libdir/qt3
export PATH=$PATH:$QTDIR/bin
cd scripts
./build_qcad.sh

cd ..
find -name \*.ts -exec lrelease {} \;

%install
install -pD -m755 qcad/qcad %buildroot%_bindir/%name
mkdir -p %buildroot%_datadir/%name
cp -pR qcad/{fonts,patterns,qm} %buildroot%_datadir/qcad
find -name \*.qm -exec cp -t %buildroot%_datadir/qcad/qm {} \;

for l in $(find %buildroot%_datadir/%name/qm -name \*.qm); do
echo -n $l | sed 's,.*_\(.*\)\.qm,%lang\(\1\) ,' >> %name.lang
echo $l | sed "s,%buildroot,," >> %name.lang
done

install -pD -m644 %SOURCE1 %buildroot%_desktopdir/qcad.desktop
mkdir -p %buildroot%_iconsdir
tar -xjf %SOURCE10 -C %buildroot%_iconsdir

%files -f %name.lang
%doc qcad/doc/*
%_bindir/%name
%dir %_datadir/%name
%dir %_datadir/%name/qm
%_datadir/%name/fonts
%_datadir/%name/patterns
%_desktopdir/%name.desktop
%_iconsdir/hicolor/*/apps/%name.png

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin