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