Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Paste Description for Shiv - Sample spec

BASEDIR incorrect in the SVR4 package for SFEgeany-i386.pkg

Shiv - Sample spec
Sunday, August 19th, 2007 at 3:24:13pm UTC 

  1. # ===========================================================================
  2. #                    Spec File for Geany
  3. # ===========================================================================
  4. %include Solaris.inc
  5.  
  6. # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  7. # Software specific variable definitions
  8. # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9. %define src_name        geany
  10. %define src_version     0.11
  11. %define pkg_release     1
  12.  
  13. # %{_topdir} is by default set to RPM_BUILD_ROOT
  14. # Default path for RPM_BUILD_ROOT is /var/tmp/pkgbuild-{username}
  15. # Install the software here as part of package building steps
  16.  
  17. # ===========================================================================
  18. #                    SVR4 required definitions
  19. # ===========================================================================
  20. SUNW_Pkg: SFE%{src_name}-%{base_arch}
  21.  
  22. # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  23. # Tag definitions
  24. # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  25. Name:           %{src_name}
  26. Summary:        Geany - Light weight text editor/IDE
  27. Version:        %{src_version}
  28. Release:        %{pkg_release}
  29. License:        GPLv2
  30. Group:          Development/Tools
  31. Source:         http://files.uvena.de/geany/%{src_name}-%{version}.tar.bz2
  32. Patch:          geany-01-V0.11.sunpro.diff
  33. Vendor:         Enrico Troger,Nick Treleaven,Frank Lanitz
  34. URL:            http://geany.uvena.de/
  35. Packager:       Shivakumar GN
  36. BuildRoot:            %{_tmppath}/%{src_name}-%{version}-build
  37.  
  38. #Ideally these should be included for requires: glib2, gtk2, pango
  39. #Requires:     
  40. #BuildRequires:
  41.  
  42. %description
  43. Geany is a small and fast editor with basic features of an integrated development environment.
  44.  
  45. Some features:
  46. - syntax highlighting
  47. - code completion
  48. - code folding
  49. - call tips
  50. - folding
  51. - many supported filetypes like C, Java, PHP, HTML, Python, Perl, Pascal
  52. - symbol lists
  53.  
  54. # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  55. # Packages to build
  56. # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  57.  
  58. %package -n SFEgeany-l10n
  59. Summary:                 %{summary} - l10n files
  60. SUNW_BaseDir:            %{_basedir}
  61. Requires:                %{name}
  62.  
  63. %package -n SFEgeany-docs
  64. Summary:                 %{summary} - documentation, man pages
  65. SUNW_BaseDir:            %{_basedir}
  66.  
  67. Requires:                %{name}
  68.  
  69. # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  70. # Prep-Section
  71. # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  72. %prep
  73. %setup -q -n %{src_name}-%{version}
  74. ./configure --prefix=%{_prefix}
  75.  
  76. %patch0 -p 1
  77.  
  78. # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  79. # Build-Section
  80. # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  81. %build
  82.  
  83. CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
  84. if test "x$CPUS" = "x" -o $CPUS = 0; then
  85.      CPUS=1
  86. fi
  87.  
  88. export CFLAGS="%optflags"
  89. export CXXFLAGS="%cxx_optflags"
  90. export LDFLAGS="%_ldflags"
  91.  
  92. make -j$CPUS
  93.  
  94. %install
  95. make install DESTDIR=$RPM_BUILD_ROOT
  96.  
  97. %clean
  98. rm -rf $RPM_BUILD_ROOT
  99.  
  100. %files
  101. %defattr(0755,root,bin)
  102. %dir %attr (0755, root, bin) %{_bindir}
  103. %{_bindir}/*
  104. %dir %attr (0755, root, sys) %{_datadir}
  105. %{_datadir}/applications
  106. %{_datadir}/geany
  107. %{_datadir}/pixmaps
  108.  
  109. %files -n SFEgeany-l10n
  110. %defattr (-, root, bin)
  111. %dir %attr (0755, root, sys) %{_datadir}
  112. %attr (-, root, other) %{_datadir}/locale
  113.  
  114. %files -n SFEgeany-docs
  115. %defattr (-, root, sys)
  116. %dir %attr (0755, root, sys) %{_datadir}
  117. %{_datadir}/doc
  118. %{_datadir}/man

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right