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