sagcad-vl.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. %define version 0.9.6
  2. %define release 1%{?_dist_release}
  3. Summary: SagCAD is CAD/CAM of 2D.
  4. Summary(ja): SagCAD - 2次元 CAD/CAM ソフトウエア
  5. Name: sagcad
  6. Version: %{version}
  7. Release: %{release}
  8. URL: http://sagcad.sourceforge.jp/index.html
  9. Group: Applications/Graphics
  10. License: GPL2
  11. Source: sagcad-%{version}.tar.gz
  12. Source10: sagcad.desktop
  13. Patch10: sagcad-0.9.6-gnome-open.patch
  14. Requires: glib >= 1.2, gtk+ >= 1.2
  15. BuildRequires: gtk+-devel >= 1.2
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. %description
  18. SagCAD is a CAD/CAM of 2D.
  19. Designed for the X Window System, it uses the GTK+ 1.2 libraries.
  20. %description -l ja
  21. SagCAD は 2 次元の CAD/CAM です。
  22. GTK+ 1.2 ライブラリを使い、X Window 上で動作します。
  23. %prep
  24. rm -rf $RPM_BUILD_ROOT
  25. %setup -q
  26. %patch10 -p0 -b .mozilla
  27. %build
  28. if [ ! -f configure ]; then
  29. ./autogen.sh --prefix=%{_prefix}
  30. fi
  31. %configure
  32. %{__make}
  33. %install
  34. %makeinstall
  35. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
  36. cp -f %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/applications/
  37. %clean
  38. [ -n $RPM_BUILD_ROOT -a "SRPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  39. %files
  40. %defattr(-,root,root)
  41. %doc AUTHORS* COPYING* README* TODO*
  42. %doc %{_datadir}/sagcad/doc/*
  43. %attr(755,root,root) %{_datadir}/sagcad/tool/*
  44. %attr(-,root,root) %{_bindir}/sagcad
  45. %{_datadir}/locale/*/LC_MESSAGES/sagcad.mo
  46. %{_datadir}/sagcad/font/*
  47. %{_datadir}/sagcad/example/*
  48. %{_datadir}/applications/
  49. %changelog
  50. * Wed Aug 27 2008 Shu KONNO <owa@bg.wakwak.com> 0.9.6-1vl5
  51. - applied new versioning policy, spec in utf-8
  52. * Wed Jul 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.6-0vl4
  53. - rebuild for VineSeed (4.0)
  54. * Thu May 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.6-0vl2
  55. - rebuild for Vine Linux 3.x
  56. * Thu May 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.6-0vl3
  57. - fixed Kanji code of spec file
  58. - add desktop file
  59. *Thu Feb 12 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.6-0vl1
  60. - initial build for Vine Linux
  61. - add patch10 to use mozilla instead of netscape.