summaryrefslogtreecommitdiff
path: root/spin.spec
blob: 6c791056f0ff178d796c22d05170ca92b4908f24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Summary:	On-the-fly, LTL model checking with SPIN
Summary(pl.UTF-8):	Sprawdzanie modeli LTL w locie przy użyciu SPIN
Name:		spin
Version:	6.2.3
%define		_ver	%(echo %{version} | tr -d .)
Release:	1
License:	Spin Public license
Group:		Development/Tools
Source0:	http://spinroot.com/spin/Src/%{name}%{_ver}.tar.gz
# Source0-md5:	99b8ad8e996f71e852d87f957fda9ae2
Source1:	ispin.desktop
URL:		http://spinroot.com/spin/whatispin.html
BuildRequires:	yacc
Requires:	tcl
Requires:	tk
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Spin is a popular software tool that can be used for the formal
verification of distributed software systems. The tool was developed
at Bell Labs in the original Unix group of the Computing Sciences
Research Center, starting in 1980. The software has been available
freely since 1991, and continues to evolve to keep pace with new
developments in the field. In April 2002 the tool was awarded the
prestigious System Software Award for 2001 by the ACM.

http://cm.bell-labs.com/cm/cs/what/spin/spin_license.html

%description -l pl.UTF-8
Spin to popularne narzędzie, którego można używać do formalnego
sprawdzania systemów programów rozproszonych. Narzędzie było rozwijane
w Bell Labs w oryginalnej grupie Uniksa z Computing Sciences Research
Center począwszy od 1980 roku. Jest dostępne za darmo od 1991 i nadal
dotrzymuje kroku. We wrześniu 2002 narzędzie to otrzymało prestiżową
nagrodę System Software Award 2001 roku od ACM.

http://cm.bell-labs.com/cm/cs/what/spin/spin_license.html

%package ispin
Summary:	Graphical user interface to Spin
Summary(pl.UTF-8):	Graficzny interfejs użytkownika do Spina
Group:		Development/Tools
Requires:	%{name} = %{version}-%{release}
Obsoletes:	spin-xspin

%description ispin
Xspin is graphical user interface to Spin, written in Tcl/Tk.

%description ispin -l pl.UTF-8
Xspin to graficzny interfejs użytkownika do Spina, napisany w Tcl/Tk.

%prep
%setup -q -c

%build
cd Spin/Src*
%{__make} -j1 CFLAGS="-ansi -D_POSIX_SOURCE %{rpmcflags}"

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_examplesdir}/%{name}-%{version}} \
	$RPM_BUILD_ROOT%{_desktopdir}

install Spin/Src*/spin $RPM_BUILD_ROOT%{_bindir}
install Spin/Man/spin.1 $RPM_BUILD_ROOT%{_mandir}/man1
cp -a Spin/{Samples,Test} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}

install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/ispin.desktop

echo "#!/usr/bin/wish -f" > $RPM_BUILD_ROOT%{_bindir}/ispin
tail -n +4 Spin/iSpin/ispin.tcl >> $RPM_BUILD_ROOT%{_bindir}/ispin

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc Spin/README.html Spin/Doc/*
%attr(755,root,root) %{_bindir}/spin
%{_mandir}/man1/*
%{_examplesdir}/%{name}-%{version}

%files ispin
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/ispin
%{_desktopdir}/ispin.desktop