]>
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 |
d42a2535 | 8 | Version: 1.0.0.pl00 |
65a58c01 | 9 | Release: 1 |
55f21068 | 10 | License: GPL v2+ |
65a58c01 | 11 | Group: Libraries |
e3a0f9de | 12 | Source0: http://files.libburnia-project.org/releases/%{name}-%{version}.tar.gz |
d42a2535 | 13 | # Source0-md5: d6e560de0d5c7bef412c8ac403261bea |
e3a0f9de JB |
14 | URL: http://libburnia.pykix.org/ |
15 | BuildRequires: autoconf >= 2.50 | |
faa2d0d9 | 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 | |
d42a2535 | 53 | %setup -q -n %{name}-1.0.0 |
65a58c01 | 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) | |
ef3a5ccb | 78 | %doc AUTHORS CONTRIBUTORS COPYRIGHT ChangeLog README |
e3a0f9de JB |
79 | %attr(755,root,root) %{_bindir}/cdrskin |
80 | %attr(755,root,root) %{_libdir}/libburn.so.*.*.* | |
59d35b6e | 81 | %attr(755,root,root) %ghost %{_libdir}/libburn.so.4 |
e3a0f9de | 82 | %{_mandir}/man1/cdrskin.1* |
65a58c01 | 83 | |
84 | %files devel | |
85 | %defattr(644,root,root,755) | |
e3a0f9de JB |
86 | %attr(755,root,root) %{_libdir}/libburn.so |
87 | %{_libdir}/libburn.la | |
88 | %{_includedir}/libburn | |
59d35b6e | 89 | %{_pkgconfigdir}/libburn-1.pc |
65a58c01 | 90 | |
f4c858e9 | 91 | %if %{with static_libs} |
65a58c01 | 92 | %files static |
93 | %defattr(644,root,root,755) | |
e3a0f9de | 94 | %{_libdir}/libburn.a |
faa2d0d9 | 95 | %endif |