File libmp3splt.spec of Package libmp3splt

155
 
1
# vim: set ts=4 sw=4 et:
2
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
3
#
4
# All modifications and additions to the file contributed by third parties
5
# remain the property of their copyright owners, unless otherwise agreed
6
# upon. The license for this file, and modifications and additions to the
7
# file, is the same license as for the pristine package itself (unless the
8
# license for the pristine package is not an Open Source License, in which
9
# case the license is the MIT License). An "Open Source License" is a
10
# license that conforms to the Open Source Definition (Version 1.9)
11
# published by the Open Source Initiative.
12
13
# Please submit bugfixes or comments via http://bugs.opensuse.org/
14
15
%define soname 0
16
17
Name:           libmp3splt
18
Version:        0.9.2
19
Release:        0.pm.1
20
Summary:        Library to split MP3 and Ogg Files
21
Source:         http://prdownloads.sourceforge.net/mp3splt/libmp3splt-%{version}.tar.gz
22
Source99:       libmp3splt-rpmlintrc
23
URL:            http://mp3splt.sourceforge.net/mp3splt_page/home.php
24
Group:          System/Libraries
25
License:        GPL-2.0+
26
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
27
BuildRequires:  libogg-devel libvorbis-devel
28
BuildRequires:  mad-devel libid3tag-devel zlib-devel
29
BuildRequires:  pcre-devel
30
BuildRequires:  gcc make glibc-devel pkgconfig
31
BuildRequires:  autoconf automake libtool
32
Recommends:     %{name}%{soname}-mp3 = %{version}
33
Recommends:     %{name}%{soname}-ogg = %{version}
34
35
%description
36
Library to split mp3 and ogg files selecting a begin and an end time position,
37
without decoding. It's very useful to split large mp3/ogg to make smaller
38
files or to split entire albums to obtain original tracks.
39
40
%package -n %{name}%{soname}
41
Summary:        Library to split MP3 and Ogg Files
42
Group:          System/Libraries
43
Recommends:     %{name}-ogg = %{version}-%{release}
44
Recommends:     %{name}-mp3 = %{version}-%{release}
45
Obsoletes:      libmp3splt < %{version}
46
Provides:       libmp3splt = %{version}
47
Obsoletes:      libmp3split < %{version}-%{release}
48
Provides:       libmp3split = %{version}-%{release}
49
50
%description -n %{name}%{soname}
51
Library to split mp3 and ogg files selecting a begin and an end time position,
52
without decoding. It's very useful to split large mp3/ogg to make smaller
53
files or to split entire albums to obtain original tracks.
54
55
%package -n %{name}%{soname}-mp3
56
Summary:        MP3 Support Plugin for %{name}
57
Group:          System/Libraries
58
Requires:       %{name}%{soname} = %{version}-%{release}
59
Obsoletes:      libmp3splt-mp3 < %{version}
60
Provides:       libmp3splt-mp3 = %{version}
61
62
%description -n %{name}%{soname}-mp3
63
%{name} is a ibrary to split mp3 and ogg files selecting a begin and an end
64
time position, without decoding. It's very useful to split large mp3/ogg to
65
make smaller files or to split entire albums to obtain original tracks.
66
67
This package contains the MP3 support plugin.
68
69
%package -n %{name}%{soname}-ogg
70
Summary:        Ogg Support Plugin for %{name}
71
Group:          System/Libraries
72
Requires:       %{name}%{soname} = %{version}-%{release}
73
Obsoletes:      libmp3splt-ogg < %{version}
74
Provides:       libmp3splt-ogg = %{version}
75
76
%description -n %{name}%{soname}-ogg
77
%{name} is a ibrary to split mp3 and ogg files selecting a begin and an end
78
time position, without decoding. It's very useful to split large mp3/ogg to
79
make smaller files or to split entire albums to obtain original tracks.
80
81
This package contains the Ogg/Vorbis support plugin.
82
83
%package -n libmp3splt-devel
84
Summary:        Library to Split MP3 and Ogg Files
85
Group:          Development/Libraries/C and C++
86
Requires:       %{name}%{soname} = %{version}-%{release}
87
Requires:       libogg-devel libvorbis-devel
88
Requires:       mad-devel libid3tag-devel zlib-devel
89
Requires:       pcre-devel pkgconfig
90
91
%description -n libmp3splt-devel
92
Library to split mp3 and ogg files selecting a begin and an end time position,
93
without decoding. It's very useful to split large mp3/ogg to make smaller
94
files or to split entire albums to obtain original tracks.
95
96
%prep
97
%setup -q -n "libmp3splt-%{version}"
98
#__sed -ri 's|^(VERSION *= *).*$|\1 %{version}|' po/Makevars
99
100
%build
101
export CFLAGS="%{optflags} -fno-strict-aliasing"
102
export CPPFLAGS="$CFLAGS"
103
export CXXFLAGS="$CFLAGS"
104
105
[ -e ./configure ] || NOCONFIGURE=1 ./autogen.sh
106
107
%configure \
108
    --disable-doxygen_doc \
109
110
%__make %{?_smp_flags}
111
112
%install
113
%makeinstall
114
115
%__rm -f "%{buildroot}%{_libdir}/libmp3splt".{a,la}
116
117
%__rm "%{buildroot}%{_libdir}/libmp3splt%{soname}"/*.a
118
%__rm "%{buildroot}%{_libdir}/libmp3splt%{soname}"/*.la
119
120
pushd "%{buildroot}%{_datadir}/locale"
121
%__mv fr_FR fr
122
%__mv de_DE de
123
popd
124
125
%find_lang "libmp3splt%{soname}"
126
127
%post   -n libmp3splt%{soname} -p /sbin/ldconfig
128
%postun -n libmp3splt%{soname} -p /sbin/ldconfig
129
130
%clean
131
%{?buildroot:%__rm -rf "%{buildroot}"}
132
133
%files -n %{name}%{soname} -f libmp3splt%{soname}.lang
134
%defattr(-,root,root)
135
%doc AUTHORS ChangeLog COPYING NEWS README
136
%{_libdir}/libmp3splt.so.%{soname}
137
%{_libdir}/libmp3splt.so.%{soname}.*
138
%dir %{_libdir}/libmp3splt%{soname}
139
140
%files -n %{name}%{soname}-mp3
141
%defattr(-,root,root)
142
%{_libdir}/libmp3splt%{soname}/libsplt_mp3.so*
143
144
%files -n %{name}%{soname}-ogg
145
%defattr(-,root,root)
146
%{_libdir}/libmp3splt%{soname}/libsplt_ogg.so*
147
148
%files -n libmp3splt-devel
149
%defattr(-,root,root)
150
%{_includedir}/libmp3splt
151
%{_libdir}/libmp3splt.so
152
%{_libdir}/pkgconfig/libmp3splt.pc
153
154
%changelog
155