]> git.pld-linux.org Git - SPECS.git/blob - libcsv.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libcsv.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        CSV parser and writer library
6 Summary(pl.UTF-8):      Biblioteka do analizy i zapisu danych CSV
7 Name:           libcsv
8 Version:        3.0.3
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://downloads.sourceforge.net/libcsv/%{name}-%{version}.tar.gz
13 # Source0-md5:  d3307a7bd41d417da798cd80c80aa42a
14 URL:            https://sourceforge.net/projects/libcsv/
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 The CSV library provides a flexible, intuitive interface for parsing
19 and writing CSV data. 
20
21 %description -l pl.UTF-8
22 Biblioteka CSV zapewnia elastyczny, intuicyjny interfejs do analizy i
23 zapisu danych CSV.
24
25 %package devel
26 Summary:        Header file for libcsv library
27 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki libcsv
28 Group:          Development/Libraries
29 Requires:       %{name} = %{version}-%{release}
30
31 %description devel
32 Header file for libcsv library.
33
34 %description devel -l pl.UTF-8
35 Plik nagłówkowy biblioteki libcsv.
36
37 %package static
38 Summary:        Static libcsv library
39 Summary(pl.UTF-8):      Statyczna biblioteka libcsv
40 Group:          Development/Libraries
41 Requires:       %{name}-devel = %{version}-%{release}
42
43 %description static
44 Static libcsv library.
45
46 %description static -l pl.UTF-8
47 Statyczna biblioteka libcsv.
48
49 %prep
50 %setup -q
51
52 %build
53 %configure \
54         %{!?with_static_libs:--disable-static}
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 # no external dependencies
64 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcsv.la
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post   -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
71
72 %files
73 %defattr(644,root,root,755)
74 %doc ChangeLog README
75 %attr(755,root,root) %{_libdir}/libcsv.so.*.*.*
76 %attr(755,root,root) %ghost %{_libdir}/libcsv.so.3
77
78 %files devel
79 %defattr(644,root,root,755)
80 %doc FAQ 
81 %attr(755,root,root) %{_libdir}/libcsv.so
82 %{_includedir}/csv.h
83 %{_mandir}/man3/csv.3*
84
85 %if %{with static_libs}
86 %files static
87 %defattr(644,root,root,755)
88 %{_libdir}/libcsv.a
89 %endif
This page took 0.171133 seconds and 3 git commands to generate.