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