]> git.pld-linux.org Git - packages/psplot.git/blob - psplot.spec
- small fix in %install
[packages/psplot.git] / psplot.spec
1
2 Name:           psplot
3 Version:        0.1
4 Release:        1
5 URL:            http://www.nova.edu/ocean/psplot.html
6 Source0:        ftp://student.ifpan.edu.pl/%{name}/%{name}-%{version}.tar.gz
7 Source1:        %{name}-Makefile
8 Summary:        A Fortran-callable Postscript plotting library
9 License:        Freeware
10 Group:          Libraries
11 Group(de):      Libraries
12 Group(es):      Bibliotecas
13 Group(fr):      Librairies
14 Group(pl):      Biblioteki
15 Group(pt_BR):   Bibliotecas
16 Group(ru):      âÉÂÌÉÏÔÅËÉ
17 Group(uk):      â¦Â̦ÏÔÅËÉ
18 Buildrequires:  gcc-g77
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 The psplot library consists of Fortran-callable subroutines which can
23 be combined in a calling program to produce Postscript files. Since
24 the focus of the library is to produce technical drawing, many of the
25 'artistic' features of Postscript have not beed addressed. This
26 package is a shared library.
27
28 %package devel
29 Summary:        A Fortran-callable Postscript plotting library - header files
30 Group:          Development/Libraries
31 Group(de):      Entwicklung/Libraries
32 Group(es):      Desarrollo/Bibliotecas
33 Group(fr):      Development/Librairies
34 Group(pl):      Programowanie/Biblioteki
35 Group(pt_BR):   Desenvolvimento/Bibliotecas
36 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
37 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
38 Requires:       %{name} = %{version}
39
40 %description devel
41 Header files for the psplot library.
42
43 %package static
44 Summary:        A Fortran-callable Postscript plotting library - static version
45 Group:          Development/Libraries
46 Group(de):      Entwicklung/Libraries
47 Group(es):      Desarrollo/Bibliotecas
48 Group(fr):      Development/Librairies
49 Group(pl):      Programowanie/Biblioteki
50 Group(pt_BR):   Desenvolvimento/Bibliotecas
51 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
52 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
53 Requires:       %{name}-devel = %{version}
54
55 %description static
56 Static psplot libraries.
57
58 %prep
59 %setup -q -n %{name}
60
61 %build
62 cp %{SOURCE1} Makefile
63 %{__make} "CFLAGS=%{rpmcflags}"
64 mv libpsplot.so libpsplot.so.%{version}
65 ln -s libpsplot.so.%{version} libpsplot.so
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT%{_libdir}
70 install libpsplot.so.%{version} $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so.%{version}
71 cp -a libpsplot.so $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so
72 install libpsplot.a $RPM_BUILD_ROOT%{_libdir}
73
74 gzip -9nf grmana4.ps *.txt *.for 
75
76 %post   -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
78
79 %clean
80 #rm -rf $RPM_BUILD_ROOT
81
82 %files
83 %defattr(644,root,root,755)
84 %attr(755,root,root) %{_libdir}/lib%{name}.so.*.*
85 %files devel
86 %defattr(644,root,root,755)
87 %doc *.gz
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_libdir}/lib%{name}.so
90 %files static
91 %defattr(644,root,root,755)
92 %{_libdir}/lib%{name}.a
This page took 0.077971 seconds and 3 git commands to generate.