repoforge.spec.in 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # $Id$
  2. %if %{_arch} != %{_build_arch}
  3. %define cross_compile 1
  4. %else
  5. %define cross_compile 0
  6. %endif
  7. %ifarch %{ix86}
  8. %define cross_compile 0
  9. %endif
  10. #undefine _enable_debug_packages
  11. # Version
  12. %define major _unique_source_major_
  13. %define minor _unique_source_minor_
  14. Name: repoforge
  15. Summary: Helper tools for distributive creation.
  16. Version: %{major}.%{minor}
  17. Release: vniins3
  18. License: %{_license}
  19. Vendor: %{_vendor}
  20. Group: %{_group_tools}
  21. BuildRoot: /var/tmp/%{name}-root
  22. Requires: make
  23. Source0: _unique_source_name_
  24. %description
  25. Helper tools for building distributive.
  26. It allows to use subversion (or another control version systems) to store SRPM packages and
  27. makes easier the development and patching.
  28. %prep
  29. %setup -q
  30. %build
  31. %if %{cross_compile}==1
  32. export LDFLAGS=" $LDFLAGS -L$TARGET_ROOTFS/lib "
  33. %endif
  34. make VERSION=%{version}
  35. %install
  36. rm -rf ${RPM_BUILD_ROOT}
  37. make install \
  38. INSTALL_FAKE_ROOT=${RPM_BUILD_ROOT} \
  39. TARGET_DATA_DIR=%{_datadir} \
  40. TARGET_BIN_DIR=%{_bindir} \
  41. VERSION=%{version}
  42. %post
  43. #/sbin/ldconfig
  44. %preun
  45. %postun
  46. #/sbin/ldconfig
  47. %clean
  48. rm -rf ${RPM_BUILD_ROOT}
  49. %files
  50. %defattr(-,root,root)
  51. %dir %{_datadir}/%{name}
  52. %{_datadir}/%{name}/*
  53. %dir %{_bindir}
  54. %attr(0755,root,root) %{_bindir}/rf
  55. %dir %{_datadir}/pkgconfig
  56. %attr(0644,root,root) %config(noreplace) %{_datadir}/pkgconfig/*
  57. #%config(noreplace) %{_mcfgdir}/mswitch.conf
  58. %changelog
  59. * Tue Jul 01 2008 Serj Kalichev (serj.kalichev@gmail.com) vniins3
  60. - New directory structure;
  61. - Targets pepair, copy etc.
  62. * Tue Jun 05 2008 Serj Kalichev (serj.kalichev@gmail.com) vniins2
  63. - New concept using rf utility.
  64. * Mon May 19 2008 Serj Kalichev (serj.kalichev@gmail.com) vniins1
  65. - First version.