source: projects/specs/tags/6_0_REL/t/twolame/twolame-vl.spec @ 521

Revision 521, 3.3 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1Name:           twolame
2Version:        0.3.12
3Release:        1%{?_dist_release}
4Summary:        TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME
5Group:          Applications/Multimedia
6License:        LGPLv2+
7URL:            http://www.twolame.org/
8Source:         http://downloads.sourceforge.net/twolame/%{name}-%{version}.tar.gz
9BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
10BuildRequires:  libsndfile-devel
11
12%description
13TwoLAME is an optimised MPEG Audio Layer 2 encoding library based on tooLAME,
14which in turn is based heavily on
15- the ISO dist10 code
16- improvement to algorithms as part of the LAME project (www.sulaco.org/mp3)
17
18This package contains the command line frontend.
19                                                                               
20%package devel
21Summary:        Development tools for TwoLAME applications
22Group:          Development/Libraries
23Requires:       %{name} = %{version}-%{release}
24Requires:       pkgconfig
25
26%description devel
27This package contains the header files and documentation
28needed to develop applications with TwoLAME.
29
30%prep
31%setup -q
32# convert manpage to UTF8
33pushd doc
34iconv -f iso8859-1 -t utf8 %{name}.1 > \
35    %{name}.1.utf && mv %{name}.1.utf %{name}.1
36# fix HTML docs line endings
37for file in html/*.html ; do
38    tr -d '\r' <$file >$file.unix && mv $file.unix $file
39done
40popd
41
42%build
43#autoreconf -f -i
44%configure --disable-static
45
46# remove rpath from libtool
47sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
48sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
49
50%{__make} %{?_smp_mflags}
51
52%install
53%__rm -rf $RPM_BUILD_ROOT
54%{__make} DESTDIR=$RPM_BUILD_ROOT install
55
56# remove unpackaged files
57%__rm $RPM_BUILD_ROOT%{_libdir}/*.la
58%__rm -rf $RPM_BUILD_ROOT%{_docdir}
59
60%clean
61%__rm -rf $RPM_BUILD_ROOT
62
63%post -p /sbin/ldconfig
64
65%postun -p /sbin/ldconfig
66
67%files
68%defattr(644,root,root,755)
69%doc AUTHORS COPYING ChangeLog README TODO
70%attr(755,root,root) %{_bindir}/%{name}
71%{_libdir}/lib%{name}.so.*
72%{_mandir}/man1/%{name}.1*
73
74%files devel
75%defattr(644,root,root,755)
76%doc doc/api.txt doc/html doc/psycho.txt doc/vbr.txt
77%{_libdir}/pkgconfig/%{name}.pc
78%{_libdir}/lib%{name}.so
79%{_includedir}/%{name}.h
80
81%changelog
82* Wed Jan 21 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.3.12-1
83- initial build
84
85* Mon Aug 04 2008 kwizart < kwizart at gmail.com > - 0.3.12-3
86- Remove rpath with the "patch libtool" method instead of autoreconf
87
88* Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.3.12-2
89- rebuild
90
91* Sun Jan 13 2008 Dominik Mierzejewski <rpm@greysector.net> 0.3.12-1
92- updated to 0.3.12
93- updated source URL
94- split off libs to avoid multilib conflicts
95- move docs processing to prep to avoid problems with shortcut builds
96- update license tag
97
98* Thu May 03 2007 Dominik Mierzejewski <rpm@greysector.net> 0.3.10-1
99- updated to 0.3.10
100- removed redundant BRs
101
102* Wed Nov 01 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.8-1
103- updated to 0.3.8
104- rebuild autofiles to get rid of rpath
105- disable static library build
106- fix manpage encoding
107- fix HTML docs line endings
108
109* Sun Mar 12 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.6-1
110- updated to 0.3.6
111
112* Tue Jan 24 2006 Dominik Mierzejewski <rpm@greysector.net> 0.3.5-1
113- updated to 0.3.5
114- simplified package layout
115- FE/livna compliance
116
117* Sun Aug 21 2005 Dominik Mierzejewski <rpm@greysector.net>
118- initial package
Note: See TracBrowser for help on using the repository browser.