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