]> git.pld-linux.org Git - SPECS.git/blob - starlink-ndf.spec
SPECS updated Sat 31 Jul 20:27:02 CEST 2021
[SPECS.git] / starlink-ndf.spec
1 Summary:        NDF - NDF (N-dimensional Data Format) data structure routines
2 Summary(pl.UTF-8):      NDF - funkcje do struktur danych NDF (N-wymiarowego formatu danych)
3 Name:           starlink-ndf
4 Version:        1.5_8.218
5 Release:        2
6 License:        non-commercial use and distribution (see NDF_CONDITIONS)
7 Group:          Libraries
8 Source0:        ftp://ftp.starlink.rl.ac.uk/pub/ussc/store/ndf/ndf.tar.Z
9 # Source0-md5:  33103b5672be45d20a33727b055ef139
10 URL:            http://www.starlink.rl.ac.uk/static_www/soft_further_NDF.html
11 BuildRequires:  gcc-g77
12 BuildRequires:  sed >= 4.0
13 BuildRequires:  starlink-ary-devel
14 BuildRequires:  starlink-ast-devel
15 BuildRequires:  starlink-par-devel
16 BuildRequires:  starlink-sae-devel
17 Requires:       starlink-sae
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         stardir         /usr/lib/star
21
22 %description
23 The Extensible N-Dimensional Data Format (NDF) is a format for storing
24 bulk data in the form of N-dimensional arrays of numbers. It is
25 typically used for storing spectra, images and similar datasets with
26 higher dimensionality. The NDF format is based on the Hierarchical
27 Data System HDS and is extensible; not only does it provide a
28 comprehensive set of standard ancillary items to describe the data, it
29 can also be extended indefinitely to handle additional user-defined
30 information of any type.
31
32 %description -l pl.UTF-8
33 NDF (N-Dimensional Data Format - n-wymiarowy format danych) to format
34 służący do przechowywania danych w postaci n-wymiarowych tablic liczb.
35 Jest zwykle używany do przechowywania widm, obrazów i podobnych
36 zbiorów danych o większej liczbie wymiarów. Format NDF jest oparty na
37 hierarchicznym systemie danych HDS i jest rozszerzalny; nie tylko
38 dostarcza kompletnego zbioru standardowych elementów pomocniczych do
39 opisu danych, ale może być także nieskończenie rozszerzany do obsługi
40 dodatkowych zdefiniowanych przez użytkownika informacji dowolnego
41 typu.
42
43 %package devel
44 Summary:        Header files for NDF libraries
45 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek NDF
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}-%{release}
48 Requires:       starlink-ary-devel
49 Requires:       starlink-ast-devel
50 Requires:       starlink-par-devel
51
52 %description devel
53 Header files for NDF libraries.
54
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe bibliotek NDF.
57
58 %package static
59 Summary:        Static Starlink NDF libraries
60 Summary(pl.UTF-8):      Statyczne biblioteki Starlink NDF
61 Group:          Development/Libraries
62 Requires:       %{name}-devel = %{version}-%{release}
63
64 %description static
65 Static Starlink NDF libraries.
66
67 %description static -l pl.UTF-8
68 Statyczne biblioteki Starlink NDF.
69
70 %prep
71 %setup -q -c
72
73 sed -i -e "s/ -O2\\? / %{rpmcflags} /;s/ ld -shared -soname / g77 -shared \\\$\\\$3 -Wl,-soname=/" mk
74 sed -i -e "s/\\('-L\\\$(STAR_\\)LIB) /\\1SHARE) /;s/-lerr /-lerr_standalone -last /;s/-lerr_adam /&-last -lpar_adam -ltask_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 NDF_CONDITIONS ndf.news
99 %{stardir}/dates/*
100 %docdir %{stardir}/docs
101 %{stardir}/docs/ssn*
102 %{stardir}/docs/sun*
103 %{stardir}/help/fac*
104 %attr(755,root,root) %{stardir}/share/*.so
105
106 %files devel
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{stardir}/bin/ndf_dev
109 %attr(755,root,root) %{stardir}/bin/ndf_link*
110 %{stardir}/include/*
111
112 %files static
113 %defattr(644,root,root,755)
114 %{stardir}/lib/*.a
This page took 0.493331 seconds and 3 git commands to generate.