/[packages]/cauldron/squirrelsh/current/SPECS/squirrelsh.spec
ViewVC logotype

Annotation of /cauldron/squirrelsh/current/SPECS/squirrelsh.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 172900 - (hide annotations) (download)
Sun Nov 27 15:11:53 2011 UTC (12 years, 4 months ago) by matteo
File size: 2541 byte(s)
release value increased
1 anaselli 130480 Name: squirrelsh
2     Summary: A cross-platform alternative to system shell
3 matteo 129160 Version: 1.2.5
4 matteo 172900 Release: %mkrel 2
5 matteo 129160 Source0: http://switch.dl.sourceforge.net/project/squirrelsh/Squirrel%20Shell/1.2.5/%{name}-%{version}-src.tar.bz2
6 matteo 172896 Source1: squirrel.xml
7 anaselli 130480 URL: http://squirrelsh.sourceforge.net/
8     Patch0: squirrelsh-configure.patch
9 matteo 131783 Patch1: squirrelsh-configure-mime_in.patch
10 anaselli 130480 Group: Shells
11 matteo 129160 License: GPLv2
12    
13     BuildRequires: libpcre-devel
14 matteo 136305 Requires: grep
15 matteo 129160
16     %description
17     Squirrel Shell is a cross-platform alternative to system shells like
18     sh in Unix-like systems and cmd.exe (command.com) in Microsoft® Windows®.
19     It is based on Squirrel scripting language which has these features:
20     . object-oriented programming;
21     . C++-like syntax;
22     . dynamic typing;
23     . delegation;
24     . generators;
25     . exception handling;
26     . weak references;
27     . more on http://www.squirrel-lang.org.
28 anaselli 130480 Cross-platform nature of Squirrel Shell lets users write one script and use
29     it everywhere instead of writing several scripts for doing the same thing,
30     but in different OSes. Since Squirrel is a generic scripting language, this
31     gives users more power as they aren't limited to functionality, specific to
32     some dedicated purpose.
33 matteo 129160
34     %prep
35     %setup -q
36     %patch0
37 matteo 131783 %patch1
38 matteo 129160
39     %build
40 matteo 131783 %_configure --prefix=%{_prefix} --mime-buildroot=%{buildroot}
41 matteo 129160 %make
42    
43     %install
44 matteo 172896 %__rm -rf %{buildroot}
45 matteo 129160 %makeinstall_std
46 anaselli 130480 %__rm -f doc/%name.1 doc/%name.tex
47 matteo 172896 %__rm -f %{buildroot}%{_sysconfdir}/mime.types
48     %__install -m755 -d -D %{buildroot}%{_datadir}/apps/katepart/syntax
49     %__install -m644 %{S:1} %{buildroot}%{_datadir}/apps/katepart/syntax/
50    
51 matteo 129160 %find_lang %{name}
52    
53     %files -f %{name}.lang
54     %defattr(-,root,root,-)
55     %{_bindir}/squirrelsh
56 anaselli 130480 %doc COPYING* HISTORY README doc
57     %{_mandir}/man1/*
58 matteo 131783 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/magic
59 matteo 136305
60 matteo 172896 %package syntax
61     Summary: Syntax definition file for Kate (version >= 2.3)
62     Requires: katepart
63     Requires: %{name} = %{version}
64     Suggests: kate
65    
66     %description syntax
67     Syntax definition file for Kate (version >= 2.3)
68    
69     %files syntax
70     %{_datadir}/apps/katepart/syntax/squirrel.xml
71    
72    
73 matteo 136305 %post
74     # adding mime type for squirrelsh scripts
75     echo -e "application/x-squirrelshscript\t\tnut" >> %{_sysconfdir}/mime.types
76    
77     %postun
78     # remove mime type that belongs to squirrelsh package
79     # sed leave an empty line after the replacement
80     #%__sed -i 's|application/x-squirrelshscript[[:space:]]*nut||g' %{_sysconfdir}/mime.types
81     %__cat %{_sysconfdir}/mime.types | egrep -v 'application\/x-squirrelshscript' > %{_sysconfdir}/mime.types.new
82     %__mv %{_sysconfdir}/mime.types.new %{_sysconfdir}/mime.types

  ViewVC Help
Powered by ViewVC 1.1.30