]> git.pld-linux.org Git - packages/libudfread.git/blob - libudfread.spec
up to 1.1.1
[packages/libudfread.git] / libudfread.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        UDF reader library
6 Summary(pl.UTF-8):      Biblioteka do odczytu UDF
7 Name:           libudfread
8 Version:        1.1.1
9 Release:        1
10 License:        LGPL v2+
11 Group:          Libraries
12 Source0:        https://code.videolan.org/videolan/libudfread/-/archive/%{version}/%{name}-%{version}.tar.bz2
13 # Source0-md5:  d1cd2d83157bff0dd0bdee741176b9e7
14 URL:            https://code.videolan.org/videolan/libudfread
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 BuildRequires:  libtool >= 2:2
18 BuildRequires:  rpmbuild(macros) >= 1.527
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 This library allows reading UDF filesystems, like raw devices and
23 image files. The library is created and maintained by VideoLAN Project
24 and is used by projects like VLC and Kodi.
25
26 %description -l pl.UTF-8
27 Ta biblioteka pozwala na odczyt systemów plików UDF, takich jak surowe
28 urządzenia oraz pliki obrazów. Biblioteka została stworzona oraz jest
29 utrzymywana przez projekt VideoLAN; jest używana w projektach takich
30 jak VLC czy Kodi.
31
32 %package devel
33 Summary:        Header files for libudfread library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libudfread
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37
38 %description devel
39 Header files for libudfread library.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki libudfread.
43
44 %package static
45 Summary:        Static libudfread library
46 Summary(pl.UTF-8):      Statyczna biblioteka libudfread
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static libudfread library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka libudfread.
55
56 %prep
57 %setup -q
58
59 %build
60 %{__libtoolize}
61 %{__aclocal} -I m4
62 %{__autoconf}
63 %{__autoheader}
64 %{__automake}
65 %configure \
66         --disable-silent-rules \
67         %{__enable_disable static_libs static}
68
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post   -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
84
85 %files
86 %defattr(644,root,root,755)
87 %doc ChangeLog
88 %attr(755,root,root) %{_libdir}/libudfread.so.*.*.*
89 %attr(755,root,root) %ghost %{_libdir}/libudfread.so.0
90
91 %files devel
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libudfread.so
94 %{_includedir}/udfread
95 %{_pkgconfigdir}/libudfread.pc
96
97 %if %{with static_libs}
98 %files static
99 %defattr(644,root,root,755)
100 %{_libdir}/libudfread.a
101 %endif
This page took 0.107054 seconds and 3 git commands to generate.