|
|
acc348a |
Name: qcad
|
|
|
16bbdf7 |
Version: 2.0.5.0
|
|
|
7301322 |
Release: 11%{?dist}
|
|
|
1817ece |
Summary: Simple 2D CAD program
|
|
|
acc348a |
|
|
|
acc348a |
Group: Applications/Engineering
|
|
|
14b44b9 |
License: GPLv2
|
|
|
16bbdf7 |
Source: http://www.ribbonsoft.com/archives/qcad/qcad-2.0.5.0-1-community.src.tar.gz
|
|
|
acc348a |
Source1: http://www.ribbonsoft.com/archives/qcad/qcad-manual-en-2.0.4.0-1.html.zip
|
|
|
acc348a |
Patch: qcad-qass.patch
|
|
|
ff4e832 |
Patch1: qcad-assistant.patch
|
|
|
ff4e832 |
Patch2: qcad-manual-bugs.patch
|
|
|
c6c7128 |
Patch3: qcad-64bit.patch
|
|
|
16bbdf7 |
Patch4: qcad-nopedantic.patch
|
|
|
f04f269 |
Patch5: qcad-arc.patch
|
|
|
74f904b |
Patch6: qcad-gcc43.patch
|
|
|
acc348a |
URL: http://www.ribbonsoft.com/qcad.html
|
|
|
16bbdf7 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
5f69c23 |
|
|
|
5f69c23 |
BuildRequires: qt3-devel
|
|
|
5f69c23 |
BuildRequires: python-devel, desktop-file-utils
|
|
|
ff4e832 |
# Help viewer is Qt Assistant in qt-devel package.
|
|
|
ff4e832 |
#Requires: /usr/bin/assistant
|
|
|
acc348a |
Requires(post): desktop-file-utils
|
|
|
acc348a |
Requires(postun): desktop-file-utils
|
|
|
acc348a |
|
|
|
16bbdf7 |
|
|
|
acc348a |
%description
|
|
|
acc348a |
QCad is an application for computer aided drafting in two
|
|
|
acc348a |
dimensions. With QCad you can create technical drawings such as plans
|
|
|
acc348a |
for buildings, interiors or mechanical parts. QCad works under Linux,
|
|
|
acc348a |
Unix Systems, Mac OS X and Windows. The source code of QCad is
|
|
|
acc348a |
released under the GPL (Open Source).
|
|
|
acc348a |
|
|
|
16bbdf7 |
|
|
|
acc348a |
%prep
|
|
|
16bbdf7 |
%setup -q -n %{name}-%{version}-1-community.src
|
|
|
16bbdf7 |
%setup -q -T -D -a 1 -n %{name}-%{version}-1-community.src
|
|
|
acc348a |
%patch -p1
|
|
|
ff4e832 |
%patch1 -p1 -b .assistanterror
|
|
|
2571499 |
# no backup file here, so it doesn't get packaged
|
|
|
2571499 |
%patch2 -p0
|
|
|
c6c7128 |
%patch3 -p1 -b .64bit
|
|
|
16bbdf7 |
%patch4 -p1 -b .nopedantic
|
|
|
f04f269 |
%patch5 -p1 -b .arc
|
|
|
74f904b |
%patch6 -p1 -b .gcc43
|
|
|
16bbdf7 |
|
|
|
acc348a |
|
|
|
acc348a |
%build
|
|
|
acc348a |
[ -n "$QTDIR" ] || . %{_sysconfdir}/profile.d/qt.sh
|
|
|
acc348a |
(
|
|
|
acc348a |
cd scripts
|
|
|
acc348a |
# perl -pi -e "s|^export MAKE=.*|export MAKE=\'make CFLAGS=\"$RPM_OPT_FLAGS\" CXXFLAGS=\"$RPM_OPT_FLAGS\"\'|" build_qcad.sh
|
|
|
acc348a |
./build_qcad.sh
|
|
|
acc348a |
)
|
|
|
ff6eef8 |
find -name '*.ts' -exec lrelease '{}' ';'
|
|
|
ff6eef8 |
find -name '*.qm' -exec cp '{}' qcad/qm ';'
|
|
|
acc348a |
|
|
|
16bbdf7 |
|
|
|
acc348a |
%install
|
|
|
acc348a |
rm -rf $RPM_BUILD_ROOT
|
|
|
acc348a |
|
|
|
acc348a |
%define pkgdatadir %{_datadir}/qcad
|
|
|
acc348a |
mkdir -p $RPM_BUILD_ROOT%{pkgdatadir}
|
|
|
acc348a |
mkdir -p $RPM_BUILD_ROOT%{pkgdatadir}/library
|
|
|
acc348a |
mkdir -p $RPM_BUILD_ROOT%{pkgdatadir}/doc
|
|
|
acc348a |
|
|
|
16bbdf7 |
cp -fr qcad-manual-en-2.0.4.0-1.html/* $RPM_BUILD_ROOT%{pkgdatadir}/doc
|
|
|
acc348a |
|
|
|
acc348a |
cd qcad
|
|
|
acc348a |
cp -fr fonts $RPM_BUILD_ROOT%{pkgdatadir}
|
|
|
acc348a |
cp -fr patterns $RPM_BUILD_ROOT%{pkgdatadir}
|
|
|
acc348a |
cp -fr qm $RPM_BUILD_ROOT%{pkgdatadir}
|
|
|
acc348a |
|
|
|
acc348a |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
|
|
acc348a |
cp -f src/xpm/qcad.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
|
|
acc348a |
|
|
|
acc348a |
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
acc348a |
cp -f qcad $RPM_BUILD_ROOT%{_bindir}
|
|
|
acc348a |
|
|
|
acc348a |
cat > qcad.desktop <
|
|
|
acc348a |
[Desktop Entry]
|
|
|
acc348a |
Name=QCad
|
|
|
acc348a |
GenericName=2D CAD drawing
|
|
|
acc348a |
Comment=A simple 2D CAD program
|
|
|
acc348a |
Exec=qcad
|
|
|
acc348a |
Icon=qcad.xpm
|
|
|
acc348a |
Terminal=false
|
|
|
acc348a |
Type=Application
|
|
|
acc348a |
MimeType=image/vnd.dxf
|
|
|
acc348a |
Encoding=UTF-8
|
|
|
acc348a |
X-Desktop-File-Install-Version=0.4
|
|
|
acc348a |
StartupNotify=true
|
|
|
acc348a |
StartupWMClass=qcad
|
|
|
acc348a |
EOF
|
|
|
acc348a |
|
|
|
acc348a |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
|
|
acc348a |
desktop-file-install --vendor fedora \
|
|
|
acc348a |
--add-category X-Fedora \
|
|
|
acc348a |
--add-category Application \
|
|
|
acc348a |
--add-category Graphics \
|
|
|
acc348a |
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
acc348a |
qcad.desktop
|
|
|
acc348a |
|
|
|
16bbdf7 |
|
|
|
acc348a |
%clean
|
|
|
acc348a |
rm -rf $RPM_BUILD_ROOT
|
|
|
acc348a |
|
|
|
16bbdf7 |
|
|
|
acc348a |
%post
|
|
|
acc348a |
%{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
|
|
acc348a |
|
|
|
16bbdf7 |
|
|
|
acc348a |
%postun
|
|
|
acc348a |
%{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
|
|
acc348a |
|
|
|
16bbdf7 |
|
|
|
acc348a |
%files
|
|
|
acc348a |
%defattr(-,root,root,-)
|
|
|
16bbdf7 |
%doc qcad/README qcad/data
|
|
|
acc348a |
%{_bindir}/*
|
|
|
acc348a |
%{_datadir}/qcad
|
|
|
acc348a |
%{_datadir}/applications/*
|
|
|
acc348a |
%{_datadir}/pixmaps/*
|
|
|
acc348a |
|
|
|
16bbdf7 |
|
|
|
acc348a |
%changelog
|
|
|
7301322 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5.0-11
|
|
|
7301322 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
7301322 |
|
|
|
56950ba |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5.0-10
|
|
|
56950ba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
56950ba |
|
|
|
14b44b9 |
* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.5.0-9
|
|
|
14b44b9 |
- fix license tag
|
|
|
14b44b9 |
|
|
|
74f904b |
* Fri Feb 22 2008 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-8
|
|
|
74f904b |
- patch to compile with GCC 4.3
|
|
|
74f904b |
|
|
|
6302e68 |
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.5.0-7
|
|
|
6302e68 |
- Autorebuild for GCC 4.3
|
|
|
6302e68 |
|
|
|
f04f269 |
* Wed Jan 23 2008 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-6
|
|
|
f04f269 |
- added patch to add arc type tangential to menu
|
|
|
f04f269 |
|
|
|
69b46b8 |
* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-5
|
|
|
69b46b8 |
- Rebuild for FE6
|
|
|
69b46b8 |
|
|
|
67d7fe2 |
* Fri Feb 17 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-4
|
|
|
67d7fe2 |
- Rebuild for Fedora Extras 5
|
|
|
67d7fe2 |
|
|
|
ff6eef8 |
* Thu Nov 24 2005 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-3
|
|
|
ff6eef8 |
- generate and include qm files
|
|
|
ff6eef8 |
|
|
|
16bbdf7 |
* Wed Nov 23 2005 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0
|
|
|
16bbdf7 |
- New Version 2.0.5.0
|
|
|
16bbdf7 |
|
|
|
c65c832 |
* Wed May 25 2005 Jeremy Katz <katzj@redhat.com> - 2.0.4.0-5.fc4
|
|
|
c6c7128 |
- fix build on 64bit arches (#158650)
|
|
|
c6c7128 |
|
|
|
80a972b |
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 2.0.4.0-4.fc4
|
|
|
80a972b |
- rebuild on all arches
|
|
|
80a972b |
|
|
|
f611c4e |
* Tue Apr 5 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.0.4.0-3.fc4
|
|
|
f611c4e |
- Add missing line in qcad-assistant.patch which prevents orphans.
|
|
|
f611c4e |
|
|
|
ff4e832 |
* Mon Feb 14 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.0.4.0-2
|
|
|
ff4e832 |
- Remove /usr/bin/assistant (-> qt-devel) dependency, replace with
|
|
|
ff4e832 |
patches to open a warning dialog in case of Qt Assistant error
|
|
|
ff4e832 |
conditions. Add a related patch for the English manual which
|
|
|
ff4e832 |
removes references to two missing images.
|
|
|
ff4e832 |
|
|
|
448025e |
* Sat Feb 12 2005 Gerard Milmeister <gemi@bluewin.ch> - 2.0.4.0-1
|
|
|
acc348a |
- Added documentation
|
|
|
acc348a |
- Fixed code for calling Qt Assistant: qcad-qass.patch
|
|
|
acc348a |
|
|
|
448025e |
* Mon Nov 15 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.4.0-0.fdr.2
|
|
|
acc348a |
- Added mime type to desktop file
|
|
|
acc348a |
|
|
|
448025e |
* Fri Oct 1 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.4.0-0.fdr.1
|
|
|
acc348a |
- New Version 2.0.4.0
|
|
|
acc348a |
|
|
|
448025e |
* Sat Jun 5 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.3.3-0.fdr.1
|
|
|
acc348a |
- New Version 2.0.3.3
|
|
|
acc348a |
|
|
|
448025e |
* Sun Apr 25 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.3.1-0.fdr.2
|
|
|
acc348a |
- Set QTDIR from qt.sh
|
|
|
acc348a |
|
|
|
448025e |
* Sun Apr 11 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.3.1-0.fdr.1
|
|
|
acc348a |
- New Version 2.0.3.1
|
|
|
acc348a |
|
|
|
448025e |
* Sat Feb 28 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.2.0-0.fdr.1
|
|
|
acc348a |
- New Version 2.0.2.0
|
|
|
acc348a |
|
|
|
448025e |
* Fri Dec 12 2003 Gerard Milmeister <gemi@bluewin.ch> - 2.0.1.3-0.fdr.1
|
|
|
acc348a |
- New Version 2.0.1.3
|
|
|
acc348a |
|
|
|
448025e |
* Wed Nov 26 2003 Gerard Milmeister <gemi@bluewin.ch> - 2.0.1.2-1.fdr.2
|
|
|
acc348a |
- Respect RPM_OPT_FLAGS
|
|
|
acc348a |
|
|
|
448025e |
* Wed Nov 26 2003 Gerard Milmeister <gemi@bluewin.ch> - 2.0.1.2-0.fdr.1
|
|
|
acc348a |
- New Version 2.0.1.2
|
|
|
acc348a |
|
|
|
448025e |
* Tue Oct 21 2003 Gerard Milmeister <gemi@bluewin.ch> - 2.0.1.1-1.fdr.1
|
|
|
acc348a |
- First Fedora release
|