]> git.pld-linux.org Git - packages/plotutils.git/blob - plotutils.spec
s-/usr/sbin-%{_sbindir}-
[packages/plotutils.git] / plotutils.spec
1 %define LIBPLOT_VERSION 2.0
2
3 Summary:        GNU Plotutils -- plotting utilities
4 Summary(pl):    Narzêdzia do wykresów
5 Name:           plotutils
6 Version:        2.2
7 Release:        1
8 Copyright:      GPL
9 Group:          Applications/Graphics
10 Group(pl):      Aplikacje/Grafika
11 Source:         %{name}-%{version}.tar.gz
12 URL:            http://www.gnu.org/software/plotutils/plotutils.html
13 Requires:       libplot
14 BuildPrereq:    libstdc++
15 BuildRoot:      /tmp/%{name}-%{version}-root
16
17 %description
18 GNU plotutils (plotting utilities) package,
19 graphics under the X Window System.  The Web page for the package is:
20 http://www.gnu.org/software/plotutils/plotutils.html
21
22 %description -l pl
23 GNU Plotutils to pakiet zawieraj±cy narzêdzia do tworzenia wykresów.
24 Umo¿liwiaj± one wy¶wietlanie wykresów w oknie X Window i zapisywanie
25 w formatach takich jak .pnm .gif .ai .ps .fig .pcl .hpgl .tek
26 http://www.gnu.org/software/plotutils/plotutils.html
27
28 ################################################################
29 %package libplot
30 Summary:        Libplot plotting library - from plotutils package
31 Summary(pl):    Libplot -- Biblioteka do kre¶lenia z pakietu plotutils
32 Group:          Development/Libraries
33 Group(pl):      Programowanie/Biblioteki
34 Version:        %{LIBPLOT_VERSION}
35
36 %description libplot
37 GNU libplot: a function library for exporting two-dimensional
38 vector graphics files, and for displaying animated vector.
39
40 %description -l pl libplot
41 GNU libplot: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej lub
42 wy¶wietlania animowanych obrazów wektorowych pod X Window.
43
44 ##################################################################
45 %package libplot-devel
46 Summary:        Libplot header files
47 Summary(pl):    Pliki nag³ówkowe dla libplot
48 Group:          Development/Libraries
49 Group(pl):      Programowanie/Biblioteki
50 Version:        %{LIBPLOT_VERSION}
51
52 %description -l pl libplot-devel
53 Pliki nag³ówkowe dla libplot
54
55 #################################################################
56 %package libplot-static
57 Summary:        Libplot static libraries
58 Summary(pl):    Biblioteki statyczne libplot
59 Group:          Development/Libraries
60 Group(pl):      Programowanie/Biblioteki
61 Requires:       plotutils-libplot-devel = %{LIBPLOT_VERSION}
62 Version:        %{LIBPLOT_VERSION}
63
64 %description libplot-static
65 libplot static libraries
66
67 %description -l pl libplot-static
68 biblioteka statyczna libplot
69
70 ##################################
71 %prep
72 %setup -q
73
74 %build
75 autoconf
76 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
77 CXXFLAGS="$RPM_OPT_FLAGS" \
78 ./configure %{_target} \
79         --prefix=/usr 
80 make
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 make install \
85         prefix=$RPM_BUILD_ROOT/usr
86
87 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so
88
89 gzip -9nf $RPM_BUILD_ROOT%{_datadir}/{info/*.info*,man/man1/*} \
90         AUTHORS COMPAT COPYING KNOWN_BUGS NEWS ONEWS README ChangeLog \
91         PROBLEMS THANKS TODO \
92         libplot\README*
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post
98 /sbin/ldconfig
99 /sbin/install-info %{_infodir}/%{name}.info.gz /etc/info-dir
100
101 %preun
102 if [ "$1" = "0" ]; then
103         /sbin/install-info --delete %{_infodir}/%{name}.info.gz /etc/info-dir
104 fi
105
106 %postun -p /sbin/ldconfig
107
108 #######################################
109 %files
110 %defattr(644,root,root,755)
111 %doc *.gz doc
112 %attr(755,root,root) %{_bindir}/*
113 %{_infodir}/*.info*
114 %{_mandir}/man1/*
115 %{_datadir}/libplot
116 %{_datadir}/ode
117 %{_datadir}/tek2plot
118
119 #####################################
120 %files libplot
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/lib*.so.*.*
123
124 #####################################
125 %files libplot-devel
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/lib*.so
128 %doc libplot/README*.gz
129 %{_includedir}/*
130
131 #####################################
132 %files libplot-static
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/lib*.a
135     
136
137 %changelog
138 * Sat May 15 1999 Rafa³ Kleger-Rudomin <klakier@pg.gda.pl>
139 - Added plotutils-libplot, -devel, -static 
140 * Fri May 14 1999 Rafa³ Kleger-Rudomin <klakier@pg.gda.pl>
141 - Initial version for PLD.
This page took 0.090195 seconds and 4 git commands to generate.