]> git.pld-linux.org Git - SPECS.git/blob - libestr.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libestr.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        Some essential string manipulation functions
6 Summary(pl.UTF-8):      Kilka podstawowych funkcji do manipulacji łańcuchami
7 Name:           libestr
8 Version:        0.1.11
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        https://libestr.adiscon.com/files/download/%{name}-%{version}.tar.gz
13 # Source0-md5:  1f25a2332750d4bfacfb314235fedff0
14 URL:            https://libestr.adiscon.com/
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 libestr is a library that contains some essential string manipulation
19 functions.
20
21 %description -l pl.UTF-8
22 libestr jest biblioteką zawierającą kilka podstawowych funkcji do
23 manipulacji łańcuchami.
24
25 %package devel
26 Summary:        Header files for libestr library
27 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libestr
28 Group:          Development/Libraries
29 Requires:       %{name} = %{version}-%{release}
30
31 %description devel
32 Header files for libestr library.
33
34 %description devel -l pl.UTF-8
35 Pliki nagłówkowe biblioteki libestr.
36
37 %package static
38 Summary:        Static libestr library
39 Summary(pl.UTF-8):      Statyczna biblioteka libestr
40 Group:          Development/Libraries
41 Requires:       %{name}-devel = %{version}-%{release}
42
43 %description static
44 Static libestr library.
45
46 %description static -l pl.UTF-8
47 Statyczna biblioteka libestr.
48
49 %prep
50 %setup -q
51
52 %build
53 %configure \
54         --disable-silent-rules \
55         %{!?with_static_libs:--disable-static}
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT
63
64 # no external dependencies, pkgconfig file present
65 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libestr.la
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %post   -p /sbin/ldconfig
71 %postun -p /sbin/ldconfig
72
73 %files
74 %defattr(644,root,root,755)
75 %doc AUTHORS ChangeLog
76 %attr(755,root,root) %{_libdir}/libestr.so.*.*.*
77 %attr(755,root,root) %ghost %{_libdir}/libestr.so.0
78
79 %files devel
80 %defattr(644,root,root,755)
81 %attr(755,root,root) %{_libdir}/libestr.so
82 %{_includedir}/libestr.h
83 %{_pkgconfigdir}/libestr.pc
84
85 %if %{with static_libs}
86 %files static
87 %defattr(644,root,root,755)
88 %{_libdir}/libestr.a
89 %endif
This page took 0.058781 seconds and 3 git commands to generate.