]>
Commit | Line | Data |
---|---|---|
8465e08e | 1 | # see m4/${libname}.m4 />= for required version of particular library |
37dd0f87 | 2 | %define libbfio_ver 20191230 |
8465e08e JB |
3 | %define libcdata_ver 20190112 |
4 | %define libcerror_ver 20120425 | |
5 | %define libcfile_ver 20160409 | |
6 | %define libclocale_ver 20130406 | |
7 | %define libcnotify_ver 20120425 | |
8 | %define libcpath_ver 20180716 | |
9 | %define libcsplit_ver 20120701 | |
10 | %define libcthreads_ver 20160404 | |
37dd0f87 JB |
11 | %define libhmac_ver 20200104 |
12 | %define libuna_ver 20200711 | |
449af785 JB |
13 | Summary: Library to access optical disc (split) RAW formats |
14 | Summary(pl.UTF-8): Biblioteka służąca do dostępu do surowych (podzielonych) formatów dysków optycznych | |
15 | Name: libodraw | |
37dd0f87 | 16 | Version: 20201003 |
8465e08e | 17 | Release: 1 |
449af785 JB |
18 | License: LGPL v3+ |
19 | Group: Libraries | |
8465e08e JB |
20 | #Source0Download: https://github.com/libyal/libodraw/releases |
21 | Source0: https://github.com/libyal/libodraw/releases/download/%{version}/%{name}-alpha-%{version}.tar.gz | |
37dd0f87 | 22 | # Source0-md5: e69bb3d7390c13511fc88bc566126cf6 |
449af785 JB |
23 | URL: https://github.com/libyal/libodraw/ |
24 | BuildRequires: autoconf >= 2.59 | |
25 | BuildRequires: automake >= 1.6 | |
26 | BuildRequires: bison | |
27 | BuildRequires: flex | |
28 | BuildRequires: gettext-tools >= 0.18.1 | |
8465e08e JB |
29 | BuildRequires: libbfio-devel >= %{libbfio_ver} |
30 | BuildRequires: libcdata-devel >= %{libcdata_ver} | |
31 | BuildRequires: libcerror-devel >= %{libcerror_ver} | |
32 | BuildRequires: libcfile-devel >= %{libcfile_ver} | |
33 | BuildRequires: libclocale-devel >= %{libclocale_ver} | |
34 | BuildRequires: libcnotify-devel >= %{libcnotify_ver} | |
35 | BuildRequires: libcpath-devel >= %{libcpath_ver} | |
36 | BuildRequires: libcsplit-devel >= %{libcsplit_ver} | |
37 | BuildRequires: libcthreads-devel >= %{libcthreads_ver} | |
38 | BuildRequires: libhmac-devel >= %{libhmac_ver} | |
39 | BuildRequires: libuna-devel >= %{libuna_ver} | |
449af785 JB |
40 | BuildRequires: libtool |
41 | BuildRequires: openssl-devel >= 1.0 | |
42 | BuildRequires: pkgconfig | |
8465e08e JB |
43 | Requires: libbfio >= %{libbfio_ver} |
44 | Requires: libcdata >= %{libcdata_ver} | |
45 | Requires: libcerror >= %{libcerror_ver} | |
46 | Requires: libcfile >= %{libcfile_ver} | |
47 | Requires: libclocale >= %{libclocale_ver} | |
48 | Requires: libcnotify >= %{libcnotify_ver} | |
49 | Requires: libcpath >= %{libcpath_ver} | |
50 | Requires: libcsplit >= %{libcsplit_ver} | |
51 | Requires: libcthreads >= %{libcthreads_ver} | |
52 | Requires: libhmac >= %{libhmac_ver} | |
53 | Requires: libuna >= %{libuna_ver} | |
449af785 JB |
54 | Requires: openssl >= 1.0 |
55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
56 | ||
57 | %description | |
58 | libodraw is a library to access optical disc (split) RAW formats. | |
59 | ||
60 | %description -l pl.UTF-8 | |
61 | libodraw to biblioteka służąca do dostępu do surowych (podzielonych) | |
62 | formatów dysków optycznych. | |
63 | ||
64 | %package devel | |
65 | Summary: Header files for libodraw library | |
66 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libodraw | |
67 | Group: Development/Libraries | |
68 | Requires: %{name} = %{version}-%{release} | |
8465e08e JB |
69 | Requires: libbfio-devel >= %{libbfio_ver} |
70 | Requires: libcdata-devel >= %{libcdata_ver} | |
71 | Requires: libcerror-devel >= %{libcerror_ver} | |
72 | Requires: libcfile-devel >= %{libcfile_ver} | |
73 | Requires: libclocale-devel >= %{libclocale_ver} | |
74 | Requires: libcnotify-devel >= %{libcnotify_ver} | |
75 | Requires: libcpath-devel >= %{libcpath_ver} | |
76 | Requires: libcsplit-devel >= %{libcsplit_ver} | |
77 | Requires: libcthreads-devel >= %{libcthreads_ver} | |
78 | Requires: libuna-devel >= %{libuna_ver} | |
449af785 JB |
79 | |
80 | %description devel | |
81 | Header files for libodraw library. | |
82 | ||
83 | %description devel -l pl.UTF-8 | |
84 | Pliki nagłówkowe biblioteki libodraw. | |
85 | ||
86 | %package static | |
87 | Summary: Static libodraw library | |
88 | Summary(pl.UTF-8): Statyczna biblioteka libodraw | |
89 | Group: Development/Libraries | |
90 | Requires: %{name}-devel = %{version}-%{release} | |
91 | ||
92 | %description static | |
93 | Static libodraw library. | |
94 | ||
95 | %description static -l pl.UTF-8 | |
96 | Statyczna biblioteka libodraw. | |
97 | ||
98 | %prep | |
99 | %setup -q | |
449af785 JB |
100 | |
101 | %build | |
102 | %{__gettextize} | |
449af785 JB |
103 | %{__libtoolize} |
104 | %{__aclocal} -I m4 | |
105 | %{__autoconf} | |
106 | %{__autoheader} | |
107 | %{__automake} | |
108 | %configure | |
109 | %{__make} | |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
114 | %{__make} install \ | |
115 | DESTDIR=$RPM_BUILD_ROOT | |
116 | ||
117 | # obsoleted by pkg-config | |
118 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libodraw.la | |
119 | ||
120 | %clean | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %post -p /sbin/ldconfig | |
124 | %postun -p /sbin/ldconfig | |
125 | ||
126 | %files | |
127 | %defattr(644,root,root,755) | |
128 | %doc AUTHORS ChangeLog README | |
129 | %attr(755,root,root) %{_bindir}/odrawinfo | |
130 | %attr(755,root,root) %{_bindir}/odrawverify | |
131 | %attr(755,root,root) %{_libdir}/libodraw.so.*.*.* | |
132 | %attr(755,root,root) %ghost %{_libdir}/libodraw.so.1 | |
133 | %{_mandir}/man1/odrawinfo.1* | |
134 | ||
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
137 | %attr(755,root,root) %{_libdir}/libodraw.so | |
138 | %{_includedir}/libodraw | |
139 | %{_includedir}/libodraw.h | |
140 | %{_pkgconfigdir}/libodraw.pc | |
141 | %{_mandir}/man3/libodraw.3* | |
142 | ||
143 | %files static | |
144 | %defattr(644,root,root,755) | |
145 | %{_libdir}/libodraw.a |