]>
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 |
4e03ed7b | 8 | Version: 1.5.2 |
d6a9631d | 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 |
4e03ed7b | 13 | # Source0-md5: 096f4acfba00f1210a84fb7650f7693d |
0b87b5a4 | 14 | URL: http://libburnia-project.org/ |
e3a0f9de | 15 | BuildRequires: autoconf >= 2.50 |
faa2d0d9 | 16 | BuildRequires: automake |
17 | BuildRequires: libtool | |
20304ffc | 18 | BuildRequires: pkgconfig |
65a58c01 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Libburn is an open-source library for reading, mastering and writing | |
23 | optical discs. | |
24 | ||
325e239f JR |
25 | %description -l pl.UTF-8 |
26 | Libburn jest wolnodostępną biblioteką służącą do odczytywania, | |
27 | zarządzania i zapisywania dysków optycznych. | |
65a58c01 | 28 | |
29 | %package devel | |
30 | Summary: Header files for libburn library | |
78c80073 | 31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libburn |
65a58c01 | 32 | Group: Development/Libraries |
c4616897 | 33 | Requires: %{name} = %{version}-%{release} |
65a58c01 | 34 | |
35 | %description devel | |
36 | Header files for libburn library. | |
37 | ||
325e239f JR |
38 | %description devel -l pl.UTF-8 |
39 | Pliki nagłówkowe biblioteki libburn. | |
65a58c01 | 40 | |
41 | %package static | |
42 | Summary: Static libburn library | |
78c80073 | 43 | Summary(pl.UTF-8): Statyczna biblioteka libburn |
65a58c01 | 44 | Group: Development/Libraries |
c4616897 | 45 | Requires: %{name}-devel = %{version}-%{release} |
65a58c01 | 46 | |
47 | %description static | |
48 | Static libburn library. | |
49 | ||
325e239f | 50 | %description static -l pl.UTF-8 |
65a58c01 | 51 | Statyczna biblioteka libburn. |
52 | ||
53 | %prep | |
66b43758 | 54 | %setup -q |
65a58c01 | 55 | |
56 | %build | |
faa2d0d9 | 57 | %{__libtoolize} |
58 | %{__aclocal} | |
59 | %{__autoconf} | |
60 | %{__automake} | |
61 | %configure \ | |
f4c858e9 | 62 | %{!?with_static_libs:--disable-static} |
65a58c01 | 63 | %{__make} |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %post -p /sbin/ldconfig | |
75 | %postun -p /sbin/ldconfig | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
ef3a5ccb | 79 | %doc AUTHORS CONTRIBUTORS COPYRIGHT ChangeLog README |
e3a0f9de JB |
80 | %attr(755,root,root) %{_bindir}/cdrskin |
81 | %attr(755,root,root) %{_libdir}/libburn.so.*.*.* | |
59d35b6e | 82 | %attr(755,root,root) %ghost %{_libdir}/libburn.so.4 |
e3a0f9de | 83 | %{_mandir}/man1/cdrskin.1* |
65a58c01 | 84 | |
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
e3a0f9de JB |
87 | %attr(755,root,root) %{_libdir}/libburn.so |
88 | %{_libdir}/libburn.la | |
89 | %{_includedir}/libburn | |
59d35b6e | 90 | %{_pkgconfigdir}/libburn-1.pc |
65a58c01 | 91 | |
f4c858e9 | 92 | %if %{with static_libs} |
65a58c01 | 93 | %files static |
94 | %defattr(644,root,root,755) | |
e3a0f9de | 95 | %{_libdir}/libburn.a |
faa2d0d9 | 96 | %endif |