]> git.pld-linux.org Git - SPECS.git/blob - starlink-ary.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / starlink-ary.spec
1 Summary:        ARY - subroutines for accessing ARRAY data structures
2 Summary(pl.UTF-8):      ARY - funkcje do dostępu do tablicowych struktur danych (ARRAY)
3 Name:           starlink-ary
4 Version:        1.1_8.218
5 Release:        1
6 License:        GPL
7 Group:          Libraries
8 Source0:        ftp://ftp.starlink.rl.ac.uk/pub/ussc/store/ary/ary.tar.Z
9 # Source0-md5:  77c27af971f0f14890ec02473f9d1c3f
10 URL:            http://www.starlink.rl.ac.uk/static_www/soft_further_ARY.html
11 BuildRequires:  gcc-g77
12 BuildRequires:  sed >= 4.0
13 BuildRequires:  starlink-err-devel
14 BuildRequires:  starlink-prm-devel
15 BuildRequires:  starlink-sae-devel
16 Requires:       starlink-sae
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         stardir         /usr/lib/star
20
21 %description
22 The ARY library is a set of routines for accessing Starlink ARRAY data
23 structures built using the Hierarchical Data System (HDS).
24
25 %description -l pl.UTF-8
26 Biblioteka ARY to zbiór funkcji służących do dostępu do struktur
27 danych Starlink ARRAY (tablic) przy użyciu hierarchicznego systemu
28 danych HDS.
29
30 %package devel
31 Summary:        Header files for ARY libraries
32 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek ARY
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35 Requires:       starlink-err-devel
36 Requires:       starlink-prm-devel
37
38 %description devel
39 Header files for ARY libraries.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe bibliotek ARY.
43
44 %package static
45 Summary:        Static Starlink ARY libraries
46 Summary(pl.UTF-8):      Statyczne biblioteki Starlink ARY
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static Starlink ARY libraries.
52
53 %description static -l pl.UTF-8
54 Statyczne biblioteki Starlink ARY.
55
56 %prep
57 %setup -q -c
58
59 sed -i -e "s/ -O'/ %{rpmcflags} -fPIC'/" mk
60 sed -i -e "s/\\('-L\\\$(STAR_\\)LIB) /\\1SHARE) /;s/-lerr /-lerr_standalone /;s/-lhds_adam/-lhds/;s/-lchr_adam -lprm_adam/-lchr -lprm/" makefile
61
62 %build
63 SYSTEM=ix86_Linux \
64 BLD_SHR='f() { g77 -shared $$3 -Wl,-soname=$$1 -o $$1 $$2;}; f' \
65 ./mk build \
66         STARLINK=%{stardir} \
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{stardir}/help
71
72 SYSTEM=ix86_Linux \
73 ./mk install \
74         STARLINK=%{stardir} \
75         INSTALL=$RPM_BUILD_ROOT%{stardir}
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
83 %files
84 %defattr(644,root,root,755)
85 %doc ary.news
86 %{stardir}/dates/*
87 %docdir %{stardir}/docs
88 %{stardir}/docs/sun*
89 %{stardir}/help/fac*
90 %attr(755,root,root) %{stardir}/share/*.so
91
92 %files devel
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{stardir}/bin/ary_dev
95 %attr(755,root,root) %{stardir}/bin/ary_link*
96 %{stardir}/include/*
97
98 %files static
99 %defattr(644,root,root,755)
100 %{stardir}/lib/*.a
This page took 1.218967 seconds and 3 git commands to generate.