]> git.pld-linux.org Git - packages/gdchart.git/blob - gdchart.spec
- tabs in preamble
[packages/gdchart.git] / gdchart.spec
1 Summary:        GD-based chart library
2 Summary(pl.UTF-8):      Oparta na GD biblioteka do wykresów
3 Name:           gdchart
4 Version:        0.11.5
5 Release:        1
6 License:        BSD-like
7 Group:          Libraries
8 Source0:        http://www.fred.net/brv/chart/%{name}%{version}dev.tar.gz
9 # Source0-md5:  a4af7bc927d8b88934da56fce10a7a3c
10 Patch0:         %{name}-make.patch
11 Patch1:         %{name}-extern.patch
12 URL:            http://www.fred.net/brv/chart/
13 BuildRequires:  freetype-devel >= 2.0.0
14 BuildRequires:  gd-devel(gif) >= 2.0.28
15 BuildRequires:  libjpeg-devel
16 BuildRequires:  libpng-devel
17 BuildRequires:  libtool
18 BuildRequires:  zlib-devel
19 Requires:       gd(gif)
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 GD-based chart library.
24
25 %description -l pl.UTF-8
26 Oparta na GD biblioteka do wykresów.
27
28 %package devel
29 Summary:        Header files for gdchart library
30 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gdchart
31 Group:          Development/Libraries
32 Requires:       %{name} = %{version}-%{release}
33
34 %description devel
35 Header files for gdchart library.
36
37 %description devel -l pl.UTF-8
38 Pliki nagłówkowe biblioteki gdchart.
39
40 %package static
41 Summary:        Static gdchart library
42 Summary(pl.UTF-8):      Statyczna biblioteka gdchart
43 Group:          Development/Libraries
44 Requires:       %{name}-devel = %{version}-%{release}
45
46 %description static
47 Static gdchart library.
48
49 %description static -l pl.UTF-8
50 Statyczna biblioteka gdchart.
51
52 %prep
53 %setup -q -n %{name}%{version}dev
54 %patch0 -p1
55 %patch1 -p1
56
57 %build
58 %{__make} \
59         CC="%{__cc}" \
60         CFLAGS="%{rpmcflags}" \
61         PREFIX_LIB="%{_libdir}"
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT \
68         PREFIX_LIB="%{_libdir}"
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post   -p /sbin/ldconfig
74 %postun -p /sbin/ldconfig
75
76 %files
77 %defattr(644,root,root,755)
78 %doc README.txt
79 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
80
81 %files devel
82 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_libdir}/lib*.so
84 %{_libdir}/lib*.la
85 %{_includedir}/*.h
86
87 %files static
88 %defattr(644,root,root,755)
89 %{_libdir}/lib*.a
This page took 0.06257 seconds and 3 git commands to generate.