qcad-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. Name: qcad
  2. Version: 2.0.5.0
  3. Release: 1%{?_dist_release}
  4. Summary: Simple 2D CAD program
  5. Summary(ja): シンプルな 2D CAD ソフトウェア
  6. Group: Applications/Graphics
  7. License: GPLv2
  8. Source: http://www.ribbonsoft.com/archives/qcad/qcad-2.0.5.0-1-community.src.tar.gz
  9. Source1: http://www.ribbonsoft.com/archives/qcad/qcad-manual-en-2.0.4.0-1.html.zip
  10. Patch: qcad-qass.patch
  11. Patch1: qcad-assistant.patch
  12. Patch2: qcad-manual-bugs.patch
  13. Patch3: qcad-64bit.patch
  14. Patch4: qcad-nopedantic.patch
  15. Patch5: qcad-arc.patch
  16. Patch6: qcad-gcc43.patch
  17. URL: http://www.ribbonsoft.com/qcad.html
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  19. BuildRequires: qt-devel
  20. BuildRequires: qt-designer
  21. BuildRequires: python-devel
  22. BuildRequires: unzip
  23. # Help viewer is Qt Assistant in qt-devel package.
  24. #Requires: /usr/bin/assistant
  25. Requires(post): desktop-file-utils
  26. Requires(postun):desktop-file-utils
  27. %description
  28. QCad is an application for computer aided drafting in two dimensions.
  29. With QCad you can create technical drawings such as plans for buildings,
  30. interiors or mechanical parts. QCad works under Linux, Unix Systems,
  31. Mac OS X and Windows. The source code of QCad is released under the
  32. GPL (Open Source).
  33. %description -l ja
  34. QCad は 2D の CAD(Computer Assisted Drawing) 用ソフトウェアです。
  35. QCad を使えば、建物や内装、機械部品等の技術的な図面を描くことが
  36. できます。
  37. QCad は Linux や Unix、Mac OS X、Windowsで利用できます。
  38. QCad のソースコードは GPL ライセンスの下でオープンソースソフト
  39. ウェアとしてリリースされています。
  40. %prep
  41. %setup -q -n %{name}-%{version}-1-community.src
  42. %setup -q -T -D -a 1 -n %{name}-%{version}-1-community.src
  43. %patch -p1
  44. %patch1 -p1 -b .assistanterror
  45. # no backup file here, so it doesn't get packaged
  46. %patch2 -p0
  47. %patch3 -p1 -b .64bit
  48. %patch4 -p1 -b .nopedantic
  49. %patch5 -p1 -b .arc
  50. %patch6 -p1 -b .gcc43
  51. %build
  52. [ -n "$QTDIR" ] || . %{_sysconfdir}/profile.d/qt.sh
  53. export PATH="$QTDIR/bin:$PATH"
  54. pushd scripts
  55. ./build_qcad.sh
  56. popd
  57. find -name '*.ts' -exec lrelease '{}' ';'
  58. find -name '*.qm' -exec cp '{}' qcad/qm ';'
  59. %install
  60. rm -rf $RPM_BUILD_ROOT
  61. %define pkgdatadir %{_datadir}/qcad
  62. mkdir -p $RPM_BUILD_ROOT%{pkgdatadir}
  63. mkdir -p $RPM_BUILD_ROOT%{pkgdatadir}/library
  64. mkdir -p $RPM_BUILD_ROOT%{pkgdatadir}/doc
  65. cp -fr qcad-manual-en-2.0.4.0-1.html/* $RPM_BUILD_ROOT%{pkgdatadir}/doc
  66. cd qcad
  67. cp -fr fonts $RPM_BUILD_ROOT%{pkgdatadir}
  68. cp -fr patterns $RPM_BUILD_ROOT%{pkgdatadir}
  69. cp -fr qm $RPM_BUILD_ROOT%{pkgdatadir}
  70. mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
  71. cp -f src/xpm/qcad.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps
  72. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  73. cp -f qcad $RPM_BUILD_ROOT%{_bindir}
  74. cat > qcad.desktop <<EOF
  75. [Desktop Entry]
  76. Name=QCad
  77. Name[ja]=QCad
  78. GenericName=2D CAD drawing
  79. GenericName[ja]=2D CAD ソフトウェア
  80. Comment=A simple 2D CAD program
  81. Comment[ja]=2D CAD 図面を作図します
  82. Exec=qcad
  83. Icon=qcad.xpm
  84. Terminal=false
  85. Type=Application
  86. MimeType=image/vnd.dxf
  87. Encoding=UTF-8
  88. StartupNotify=true
  89. StartupWMClass=qcad
  90. Categories=Application;Graphics
  91. EOF
  92. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  93. install -m644 qcad.desktop $RPM_BUILD_ROOT%{_datadir}/applications
  94. %clean
  95. rm -rf $RPM_BUILD_ROOT
  96. %post
  97. %{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
  98. %postun
  99. %{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
  100. %files
  101. %defattr(-,root,root,-)
  102. %doc qcad/README qcad/data
  103. %{_bindir}/*
  104. %{_datadir}/qcad
  105. %{_datadir}/applications/*
  106. %{_datadir}/pixmaps/*
  107. %changelog
  108. * Sat Jun 05 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.0.5.0-1
  109. - initial build for Vine Linux based on fedora development
  110. - add japanese summary and description
  111. - export $QTDIR/bin to PATH for qmake command
  112. - add BuildRequires: qt-designer unzip
  113. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5.0-11
  114. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  115. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5.0-10
  116. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  117. * Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.5.0-9
  118. - fix license tag
  119. * Fri Feb 22 2008 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-8
  120. - patch to compile with GCC 4.3
  121. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.5.0-7
  122. - Autorebuild for GCC 4.3
  123. * Wed Jan 23 2008 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-6
  124. - added patch to add arc type tangential to menu
  125. * Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-5
  126. - Rebuild for FE6
  127. * Fri Feb 17 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-4
  128. - Rebuild for Fedora Extras 5
  129. * Thu Nov 24 2005 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-3
  130. - generate and include qm files
  131. * Wed Nov 23 2005 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0
  132. - New Version 2.0.5.0
  133. * Wed May 25 2005 Jeremy Katz <katzj@redhat.com> - 2.0.4.0-5.fc4
  134. - fix build on 64bit arches (#158650)
  135. * Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 2.0.4.0-4.fc4
  136. - rebuild on all arches
  137. * Tue Apr 5 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.0.4.0-3.fc4
  138. - Add missing line in qcad-assistant.patch which prevents orphans.
  139. * Mon Feb 14 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.0.4.0-2
  140. - Remove /usr/bin/assistant (-> qt-devel) dependency, replace with
  141. patches to open a warning dialog in case of Qt Assistant error
  142. conditions. Add a related patch for the English manual which
  143. removes references to two missing images.
  144. * Sat Feb 12 2005 Gerard Milmeister <gemi@bluewin.ch> - 2.0.4.0-1
  145. - Added documentation
  146. - Fixed code for calling Qt Assistant: qcad-qass.patch
  147. * Mon Nov 15 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.4.0-0.fdr.2
  148. - Added mime type to desktop file
  149. * Fri Oct 1 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.4.0-0.fdr.1
  150. - New Version 2.0.4.0
  151. * Sat Jun 5 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.3.3-0.fdr.1
  152. - New Version 2.0.3.3
  153. * Sun Apr 25 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.3.1-0.fdr.2
  154. - Set QTDIR from qt.sh
  155. * Sun Apr 11 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.3.1-0.fdr.1
  156. - New Version 2.0.3.1
  157. * Sat Feb 28 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.2.0-0.fdr.1
  158. - New Version 2.0.2.0
  159. * Fri Dec 12 2003 Gerard Milmeister <gemi@bluewin.ch> - 2.0.1.3-0.fdr.1
  160. - New Version 2.0.1.3
  161. * Wed Nov 26 2003 Gerard Milmeister <gemi@bluewin.ch> - 2.0.1.2-1.fdr.2
  162. - Respect RPM_OPT_FLAGS
  163. * Wed Nov 26 2003 Gerard Milmeister <gemi@bluewin.ch> - 2.0.1.2-0.fdr.1
  164. - New Version 2.0.1.2
  165. * Tue Oct 21 2003 Gerard Milmeister <gemi@bluewin.ch> - 2.0.1.1-1.fdr.1
  166. - First Fedora release