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
- # ===========================================================================
- # Spec File for Geany
- # ===========================================================================
- %include Solaris.inc
- # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- # Software specific variable definitions
- # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- %define src_name geany
- %define src_version 0.11
- %define pkg_release 1
- # %{_topdir} is by default set to RPM_BUILD_ROOT
- # Default path for RPM_BUILD_ROOT is /var/tmp/pkgbuild-{username}
- # Install the software here as part of package building steps
- # ===========================================================================
- # SVR4 required definitions
- # ===========================================================================
- SUNW_Pkg: SFE%{src_name}-%{base_arch}
- # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- # Tag definitions
- # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Name: %{src_name}
- Summary: Geany - Light weight text editor/IDE
- Version: %{src_version}
- Release: %{pkg_release}
- License: GPLv2
- Group: Development/Tools
- Source: http://files.uvena.de/geany/%{src_name}-%{version}.tar.bz2
- Patch: geany-01-V0.11.sunpro.diff
- Vendor: Enrico Troger,Nick Treleaven,Frank Lanitz
- URL: http://geany.uvena.de/
- Packager: Shivakumar GN
- BuildRoot: %{_tmppath}/%{src_name}-%{version}-build
- #Ideally these should be included for requires: glib2, gtk2, pango
- #Requires:
- #BuildRequires:
- %description
- Geany is a small and fast editor with basic features of an integrated development environment.
- Some features:
- - syntax highlighting
- - code completion
- - code folding
- - call tips
- - folding
- - many supported filetypes like C, Java, PHP, HTML, Python, Perl, Pascal
- - symbol lists
- # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- # Packages to build
- # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- %package -n SFEgeany-l10n
- Summary: %{summary} - l10n files
- SUNW_BaseDir: %{_basedir}
- Requires: %{name}
- %package -n SFEgeany-docs
- Summary: %{summary} - documentation, man pages
- SUNW_BaseDir: %{_basedir}
- Requires: %{name}
- # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- # Prep-Section
- # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- %prep
- %setup -q -n %{src_name}-%{version}
- ./configure --prefix=%{_prefix}
- %patch0 -p 1
- # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- # Build-Section
- # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- %build
- CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
- if test "x$CPUS" = "x" -o $CPUS = 0; then
- CPUS=1
- fi
- export CFLAGS="%optflags"
- export CXXFLAGS="%cxx_optflags"
- export LDFLAGS="%_ldflags"
- make -j$CPUS
- %install
- make install DESTDIR=$RPM_BUILD_ROOT
- %clean
- rm -rf $RPM_BUILD_ROOT
- %files
- %defattr(0755,root,bin)
- %dir %attr (0755, root, bin) %{_bindir}
- %{_bindir}/*
- %dir %attr (0755, root, sys) %{_datadir}
- %{_datadir}/applications
- %{_datadir}/geany
- %{_datadir}/pixmaps
- %files -n SFEgeany-l10n
- %defattr (-, root, bin)
- %dir %attr (0755, root, sys) %{_datadir}
- %attr (-, root, other) %{_datadir}/locale
- %files -n SFEgeany-docs
- %defattr (-, root, sys)
- %dir %attr (0755, root, sys) %{_datadir}
- %{_datadir}/doc
- %{_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.
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.