]> git.pld-linux.org Git - SPECS.git/blob - libcstring.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / libcstring.spec
1 Summary:        Library to support cross-platform C string functions
2 Summary(pl.UTF-8):      Biblioteka do obsługi wieloplatformowych funkcji na łańcuchach C
3 Name:           libcstring
4 Version:        20150101
5 Release:        3
6 License:        LGPL v3+
7 Group:          Libraries
8 #Source0Download: https://github.com/libyal/libcstring/releases
9 Source0:        https://github.com/libyal/libcstring/archive/%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  79652b81cd3b97a1b4f31442a224b78d
11 URL:            https://github.com/libyal/libcstring/
12 BuildRequires:  autoconf >= 2.59
13 BuildRequires:  automake >= 1.6
14 BuildRequires:  gettext-tools >= 0.18.1
15 BuildRequires:  libtool
16 BuildRequires:  pkgconfig
17 BuildRequires:  sed >= 4.0
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 libcstring is a library for cross-platform C string functions.
22
23 %description -l pl.UTF-8
24 libcstring to wieloplatformowa biblioteka funkcji obsługujących
25 łańcuchy C.
26
27 %package devel
28 Summary:        Header files for libcstring library
29 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libcstring
30 Group:          Development/Libraries
31 Requires:       %{name} = %{version}-%{release}
32
33 %description devel
34 Header files for libcstring library.
35
36 %description devel -l pl.UTF-8
37 Pliki nagłówkowe biblioteki libcstring.
38
39 %package static
40 Summary:        Static libcstring library
41 Summary(pl.UTF-8):      Statyczna biblioteka libcstring
42 Group:          Development/Libraries
43 Requires:       %{name}-devel = %{version}-%{release}
44
45 %description static
46 Static libcstring library.
47
48 %description static -l pl.UTF-8
49 Statyczna biblioteka libcstring.
50
51 %prep
52 %setup -q
53
54 %build
55 %{__gettextize}
56 %{__sed} -i -e 's/ po\/Makefile.in//' configure.ac
57 %{__libtoolize}
58 %{__aclocal}
59 %{__autoconf}
60 %{__autoheader}
61 %{__automake}
62 %configure
63 %{__make}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 # obsoleted by pkg-config
72 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcstring.la
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post   -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
79
80 %files
81 %defattr(644,root,root,755)
82 %doc AUTHORS ChangeLog README
83 %attr(755,root,root) %{_libdir}/libcstring.so.*.*.*
84 %attr(755,root,root) %ghost %{_libdir}/libcstring.so.1
85
86 %files devel
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_libdir}/libcstring.so
89 %{_includedir}/libcstring
90 %{_includedir}/libcstring.h
91 %{_pkgconfigdir}/libcstring.pc
92 %{_mandir}/man3/libcstring.3*
93
94 %files static
95 %defattr(644,root,root,755)
96 %{_libdir}/libcstring.a
This page took 0.712194 seconds and 3 git commands to generate.