]>
Commit | Line | Data |
---|---|---|
fe70fcfe | 1 | # Conditional build: |
f4c858e9 | 2 | %bcond_without static_libs # don't build static library |
fe70fcfe | 3 | # |
65a58c01 | 4 | Summary: Library for reading and writing optical discs |
325e239f | 5 | Summary(pl.UTF-8): Biblioteka służąca do odczytywania i zapisywania dysków optycznych |
65a58c01 | 6 | Name: libburn |
4307e0d6 | 7 | Version: 0.2 |
65a58c01 | 8 | Release: 1 |
9 | License: GPL | |
10 | Group: Libraries | |
11 | Source0: http://icculus.org/burn/releases/%{name}-%{version}.tar.gz | |
4307e0d6 | 12 | # Source0-md5: fcf42dd1a5ed137b96a60e1cc2141d18 |
65a58c01 | 13 | URL: http://icculus.org/burn/ |
faa2d0d9 | 14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
16 | BuildRequires: libtool | |
65a58c01 | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | Libburn is an open-source library for reading, mastering and writing | |
21 | optical discs. | |
22 | ||
325e239f JR |
23 | %description -l pl.UTF-8 |
24 | Libburn jest wolnodostępną biblioteką służącą do odczytywania, | |
25 | zarządzania i zapisywania dysków optycznych. | |
65a58c01 | 26 | |
27 | %package devel | |
28 | Summary: Header files for libburn library | |
325e239f | 29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libburn |
65a58c01 | 30 | Group: Development/Libraries |
c4616897 | 31 | Requires: %{name} = %{version}-%{release} |
65a58c01 | 32 | |
33 | %description devel | |
34 | Header files for libburn library. | |
35 | ||
325e239f JR |
36 | %description devel -l pl.UTF-8 |
37 | Pliki nagłówkowe biblioteki libburn. | |
65a58c01 | 38 | |
39 | %package static | |
40 | Summary: Static libburn library | |
325e239f | 41 | Summary(pl.UTF-8): Statyczna biblioteka libburn |
65a58c01 | 42 | Group: Development/Libraries |
c4616897 | 43 | Requires: %{name}-devel = %{version}-%{release} |
65a58c01 | 44 | |
45 | %description static | |
46 | Static libburn library. | |
47 | ||
325e239f | 48 | %description static -l pl.UTF-8 |
65a58c01 | 49 | Statyczna biblioteka libburn. |
50 | ||
51 | %prep | |
52 | %setup -q | |
53 | ||
54 | %build | |
faa2d0d9 | 55 | %{__libtoolize} |
56 | %{__aclocal} | |
57 | %{__autoconf} | |
58 | %{__automake} | |
59 | %configure \ | |
f4c858e9 | 60 | %{!?with_static_libs:--disable-static} |
65a58c01 | 61 | %{__make} |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post -p /sbin/ldconfig | |
73 | %postun -p /sbin/ldconfig | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %doc README TODO | |
78 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
79 | ||
80 | %files devel | |
81 | %defattr(644,root,root,755) | |
82 | %attr(755,root,root) %{_libdir}/lib*.so | |
83 | %{_libdir}/lib*.la | |
84 | %{_includedir}/%{name} | |
85 | %{_pkgconfigdir}/*.pc | |
86 | ||
f4c858e9 | 87 | %if %{with static_libs} |
65a58c01 | 88 | %files static |
89 | %defattr(644,root,root,755) | |
90 | %{_libdir}/lib*.a | |
faa2d0d9 | 91 | %endif |