]> git.pld-linux.org Git - packages/plotutils.git/blob - plotutils.spec
- changed [ -x ... ] && to [ ! -x ... ] ||
[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:        2
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 BuildRequires:  libstdc++
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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_platform} \
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 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
100
101 %postun 
102 /sbin/ldconfig
103 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
104
105 #######################################
106 %files
107 %defattr(644,root,root,755)
108 %doc *.gz doc
109 %attr(755,root,root) %{_bindir}/*
110 %{_infodir}/*.info*
111 %{_mandir}/man1/*
112 %{_datadir}/libplot
113 %{_datadir}/ode
114 %{_datadir}/tek2plot
115
116 #####################################
117 %files libplot
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/lib*.so.*.*
120
121 #####################################
122 %files libplot-devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/lib*.so
125 %doc libplot/README*.gz
126 %{_includedir}/*
127
128 #####################################
129 %files libplot-static
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/lib*.a
132     
This page took 0.834374 seconds and 4 git commands to generate.