rox-clib-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. %define name rox-clib
  2. %define oname ROX-CLib
  3. %define dvlname %{name}-devel
  4. %define libdir %{_prefix}/lib
  5. Summary: Shared code for ROX applications
  6. Name: %{name}
  7. Version: 2.1.10
  8. Release: 1%{?_dist_release}
  9. Source0: http://www.kerofin.demon.co.uk/rox/%{oname}-%{version}.tar.gz
  10. URL: http://www.kerofin.demon.co.uk/rox/libs.html#rox-clib2
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. Packager: OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp>
  14. License: GPL
  15. Group: User Interface/Desktops
  16. BuildRoot: %{_tmppath}/%{name}-buildroot
  17. Prefix: %{_prefix}
  18. BuildRequires: gtk2-devel
  19. BuildRequires: libxml2-devel
  20. Requires: rox-filer
  21. %description
  22. ROX-CLib contains shared code which can be used by other ROX applications.
  23. (it's written in C).
  24. %description -l ja
  25. ROX-CLib は ROX 用アプリケーションから使用可能な共有コードを含んだライブラ
  26. リです。(それらは C で書かれています)
  27. %package -n %{name}-%{version}
  28. Group: System/Libraries
  29. Summary: Shared library of ROX-Clib
  30. Requires: %name >= %version-%release
  31. %description -n %{name}-%{version}
  32. ROX-CLib contains shared code which can be used by other ROX applications.
  33. (it's written in C).
  34. %description -n %{name}-%{version} -l ja
  35. ROX-CLib は ROX 用アプリケーションから使用可能な共有コードを含んだライブラ
  36. リです。(それらは C で書かれています)
  37. %package -n %{dvlname}
  38. Group: Development/C
  39. Summary: Headers for the rox C library
  40. Requires: %{dvlname} = %version-%release
  41. Requires: rox-filer
  42. Provides: librox-c-devel = %version-%release
  43. %description -n %{dvlname}
  44. ROX-CLib-devel is Headers for C library which can be used by other ROX applications.
  45. %description -n %{dvlname} -l ja
  46. ROX-CLib-devel は ROX 用アプリケーションから使用可能なライブラリ用ヘッダ集です。
  47. %prep
  48. %setup -q -n %oname
  49. rm -rf .xvpics
  50. %build
  51. export CFLAGS="%optflags"
  52. ./AppRun --compile
  53. %install
  54. rm -rf %{buildroot}
  55. mkdir -p %{buildroot}/%{libdir}
  56. cd ..
  57. cp -r %oname %{buildroot}%{libdir}
  58. rm -rf %{buildroot}/%{libdir}/%oname/src
  59. perl -pi -e "s/lib/%_lib/g" %{buildroot}%{libdir}/%oname/Linux-*/bin/rox_run
  60. perl -pi -e "s!%{_builddir}/%oname/src/../!%{libdir}/%oname/!" \
  61. %{buildroot}/%{libdir}/%oname/Linux-*/lib/librox-clib.la
  62. %clean
  63. rm -rf %{buildroot}
  64. %post -n %name -p /sbin/ldconfig
  65. %postun -n %name -p /sbin/ldconfig
  66. %files
  67. %defattr(-,root,root)
  68. %doc %{libdir}/%oname/Help
  69. %dir %{libdir}/%oname
  70. %{libdir}/%oname/App*
  71. %{libdir}/%oname/.DirIcon
  72. %dir %{libdir}/%oname/Linux*/
  73. %{libdir}/%oname/Linux*/bin
  74. %dir %{libdir}/%oname/Linux*/lib
  75. %{libdir}/%oname/Linux*/lib/librox-clib.so.*
  76. %files -n %{dvlname}
  77. %defattr(-,root,root)
  78. %{libdir}/%oname/Linux*/lib/librox-clib.a
  79. %{libdir}/%oname/Linux*/lib/librox-clib.so
  80. %{libdir}/%oname/Linux*/lib/librox-clib.la
  81. %{libdir}/%oname/Linux*/lib/ROX-CLib.pc
  82. %{libdir}/%oname/Linux*/include
  83. %changelog
  84. * Sat Sep 12 2009 KATO Masashi <mkato@par.odn.ne.jp> 2.1.10-1
  85. - ROX-Filer maintenance team OKATANA(KATO Masashi, TANAKA hiroaki)
  86. - upstream update
  87. - changed system directory to /usr/share/rox-filer
  88. * Sun Aug 6 2006 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.1.8-0vl1, 2
  89. - rebuild for new Requires rox-filer
  90. * Sat Oct 15 2005 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.1.5-0vl1,2
  91. - initial vine package