]> git.pld-linux.org Git - packages/libudfread.git/blob - libudfread.spec
new (version 1.1.0)
[packages/libudfread.git] / libudfread.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        UDF reader library
6 Name:           libudfread
7 Version:        1.1.0
8 Release:        1
9 License:        LGPL v2+
10 Group:          Libraries
11 Source0:        https://code.videolan.org/videolan/libudfread/-/archive/%{version}/%{name}-%{version}.tar.bz2
12 # Source0-md5:  0502fc712c55ee507c8657742f998141
13 URL:            https://code.videolan.org/videolan/libudfread
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  libtool
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 This library allows reading UDF filesystems, like raw devices and
21 image files. The library is created and maintained by VideoLAN Project
22 and is used by projects like VLC and Kodi.
23
24 %package devel
25 Summary:        Header files for libudfread library
26 Group:          Development/Libraries
27 Requires:       %{name} = %{version}-%{release}
28
29 %description devel
30 Header files for libudfread library.
31
32 %package static
33 Summary:        Static libudfread library
34 Group:          Development/Libraries
35 Requires:       %{name}-devel = %{version}-%{release}
36
37 %description static
38 Static libudfread library.
39
40 %prep
41 %setup -q
42
43 %build
44 %{__libtoolize}
45 %{__aclocal} -I m4
46 %{__autoconf}
47 %{__autoheader}
48 %{__automake}
49 %configure \
50         --disable-silent-rules \
51         %{__enable_disable static_libs static}
52
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %post   -p /sbin/ldconfig
67 %postun -p /sbin/ldconfig
68
69 %files
70 %defattr(644,root,root,755)
71 %doc ChangeLog
72 %attr(755,root,root) %{_libdir}/libudfread.so.*.*.*
73 %attr(755,root,root) %ghost %{_libdir}/libudfread.so.0
74
75 %files devel
76 %defattr(644,root,root,755)
77 %attr(755,root,root) %{_libdir}/libudfread.so
78 %{_includedir}/udfread
79 %{_pkgconfigdir}/udfread.pc
80
81 %if %{with static_libs}
82 %files static
83 %defattr(644,root,root,755)
84 %{_libdir}/libudfread.a
85 %endif
This page took 0.108966 seconds and 3 git commands to generate.