]> git.pld-linux.org Git - SPECS.git/blob - starlink-par.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / starlink-par.spec
1 Summary:        PAR - ADAM parameter system
2 Summary(pl.UTF-8):      PAR - system parametrów ADAM
3 Name:           starlink-par
4 Version:        2.3.218
5 Release:        1
6 License:        non-commercial use and distribution (see PAR_CONDITIONS)
7 Group:          Libraries
8 Source0:        ftp://ftp.starlink.rl.ac.uk/pub/ussc/store/par/par.tar.Z
9 # Source0-md5:  6ab7ae3d35eb4fad52bbd59d75a78cbf
10 URL:            http://www.starlink.rl.ac.uk/static_www/soft_further_PAR.html
11 BuildRequires:  gcc-g77
12 BuildRequires:  sed >= 4.0
13 BuildRequires:  starlink-err-devel
14 BuildRequires:  starlink-sae-devel
15 Requires:       starlink-sae
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         stardir         /usr/lib/star
19
20 %description
21 PAR is a library of Fortran subroutines that provides convenient
22 mechanisms for applications to exchange information with the outside
23 world, through input-output channels called parameters. Parameters
24 enable a user to control an application's behaviour. PAR supports
25 numeric, character, and logical parameters, and is currently
26 implemented only on top of the ADAM parameter system.
27
28 The PAR library permits parameter values to be obtained, without or
29 with a variety of constraints. Results may be put into parameters to
30 be passed onto other applications. Other facilities include setting a
31 prompt string, and suggested defaults.
32
33 %description -l pl.UTF-8
34 PAR to biblioteka funkcji fortranowych dostarczająca wygodne
35 mechanizmy dla aplikacji do wymiany informacji z zewnętrznym światem
36 poprzez kanały wejścia-wyjścia nazywane parametrami. Parametry
37 pozwalają użytkownikowi sterować zachowaniem aplikacji. PAR obsługuje
38 parametry numeryczne, znakowe i logiczne; aktualnie jest
39 zaimplementowany tylko w oparciu o system parametrów ADAM.
40
41 Biblioteka PAR pozwala na uzyskanie wartości parametrów bez lub z
42 różnymi ograniczeniami. Wyniki mogą być umieszczone w parametrach do
43 przekazania do innych aplikacji. Inne możliwości obejmują ustawianie
44 łańcucha zachęty i sugerowanych wartości domyślnych.
45
46 %package devel
47 Summary:        Header files for PAR library
48 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki PAR
49 Group:          Development/Libraries
50 Requires:       %{name} = %{version}-%{release}
51
52 %description devel
53 Header files for PAR library.
54
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki PAR.
57
58 %package static
59 Summary:        Static Starlink PAR library
60 Summary(pl.UTF-8):      Statyczna biblioteka Starlink PAR
61 Group:          Development/Libraries
62 Requires:       %{name}-devel = %{version}-%{release}
63
64 %description static
65 Static Starlink PAR library.
66
67 %description static -l pl.UTF-8
68 Statyczna biblioteka Starlink PAR.
69
70 %prep
71 %setup -q -c
72
73 sed -i -e "s/ -O'/ %{rpmcflags} -fPIC'/;s/ ld -shared -soname / g77 -shared \\\$\\\$3 -Wl,-soname=/" mk
74 sed -i -e "s/\\('-L\\\$(STAR_\\)LIB) /\\1SHARE) -lsubpar_adam -lerr_adam /" makefile
75
76 %build
77 SYSTEM=ix86_Linux \
78 ./mk build \
79         STARLINK=%{stardir} \
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT%{stardir}/help
84
85 SYSTEM=ix86_Linux \
86 ./mk install \
87         STARLINK=%{stardir} \
88         INSTALL=$RPM_BUILD_ROOT%{stardir}
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post   -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95
96 %files
97 %defattr(644,root,root,755)
98 %doc PAR_CONDITIONS par.news
99 %{stardir}/dates/*
100 %docdir %{stardir}/docs
101 %{stardir}/docs/sun*
102 %{stardir}/help/fac*
103 %attr(755,root,root) %{stardir}/share/*.so
104
105 %files devel
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{stardir}/bin/par_dev
108 %attr(755,root,root) %{stardir}/bin/par_link*
109 %{stardir}/include/*
110
111 %files static
112 %defattr(644,root,root,755)
113 %{stardir}/lib/*.a
This page took 1.041961 seconds and 3 git commands to generate.