summaryrefslogtreecommitdiff
path: root/libcuefile.spec
blob: ef76e82dd38dcd8e483e56524118df58ff2bfd29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# Conditional build:
%bcond_without	static_libs	# don't build static library
#
%define		rev	475
Summary:	Library for working with Cue Sheet (cue) and Table of Contents (toc) files
Name:		libcuefile
Version:	0.0.1.r%{rev}
Release:	2
License:	GPL v2+
Group:		Libraries
Source0:	http://files.musepack.net/source/%{name}_r%{rev}.tar.gz
# Source0-md5:	1a6ac52e1080fd54f0f59372345f1e4e
URL:		http://www.musepack.net/
BuildRequires:	cmake >= 2.4
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Library for working with Cue Sheet (cue) and Table of Contents (toc)
files.

%package devel
Summary:	Header files for %{name}
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}

%description devel
Header files for %{name}.

%package static
Summary:	Static version of the %{name} library
Group:		Development/Libraries
Requires:	%{name}-devel = %{version}-%{release}

%description static
Static version of the %{name} library.

%prep
%setup -q -n libcuefile_r%{rev}

%build
%cmake

%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_includedir}
%{__cp} -r include/cuetools $RPM_BUILD_ROOT%{_includedir}

%clean
rm -rf $RPM_BUILD_ROOT

%post	-p /sbin/ldconfig
%postun	-p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc AUTHORS README
%attr(755,root,root) %{_libdir}/libcuefile.so.*.*.*
%ghost %{_libdir}/libcuefile.so.0

%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libcuefile.so
%{_includedir}/cuetools

%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libcuefile.a
%endif