1 Summary: IMG - simple image data access
2 Summary(pl.UTF-8): IMG - prosty dostęp do danych z obrazów
8 Source0: ftp://ftp.starlink.rl.ac.uk/pub/ussc/store/img/img.tar.Z
9 # Source0-md5: cf2ee9e2c8a6b23314493c57615af049
10 URL: http://www.starlink.rl.ac.uk/static_www/soft_further_IMG.html
11 BuildRequires: gcc-g77
12 BuildRequires: sed >= 4.0
13 BuildRequires: starlink-ndf-devel
14 BuildRequires: starlink-sae-devel
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define stardir /usr/lib/star
20 IMG is a subroutine library for accessing astronomical image data and
21 associated header information. It is designed to be easy to use and
24 %description -l pl.UTF-8
25 IMG to biblioteka funkcji dostępu do danych obrazów astronomicznych i
26 powiązanych informacji z nagłówków. Jest tak zaprojektowana, by była
27 łatwa w użyciu i do zrozumienia.
30 Summary: Header files for IMG library
31 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki IMG
32 Group: Development/Libraries
33 Requires: %{name} = %{version}-%{release}
34 Requires: starlink-ndf-devel
37 Header files for IMG library.
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe biblioteki IMG.
43 Summary: Static Starlink IMG library
44 Summary(pl.UTF-8): Statyczna biblioteka Starlink IMG
45 Group: Development/Libraries
46 Requires: %{name}-devel = %{version}-%{release}
49 Static Starlink IMG library.
51 %description static -l pl.UTF-8
52 Statyczna biblioteka Starlink IMG.
57 sed -i -e "s/ -O / %{rpmcflags} /;s/ ld -shared -soname / g77 -shared \\\$\\\$3 -Wl,-soname=/" mk
58 sed -i -e "s/-L\\\$(STAR_LIB) /-L\\\$(STARLINK)\\/share -lhdspar_adam /" makefile
61 PATH="$PATH:%{stardir}/bin" \
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{stardir}/help
73 INSTALL=$RPM_BUILD_ROOT%{stardir}
76 rm -rf $RPM_BUILD_ROOT
78 %post -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
82 %defattr(644,root,root,755)
85 %docdir %{stardir}/docs
88 %attr(755,root,root) %{stardir}/share/*.so
91 %defattr(644,root,root,755)
92 %attr(755,root,root) %{stardir}/bin/img_dev
93 %attr(755,root,root) %{stardir}/bin/img_link*
97 %defattr(644,root,root,755)