当前位置: 技术问答>linux和unix
求助!!!怎么写SPEC文件才可以打多个rpm包!!!
来源: 互联网 发布时间:2015-11-29
本文导语: 详细解释一下啊!!!最好把源码帖出!!!谢谢了!!! | Name: alsa-oss Version: 1.0.10 Release: 3%{?dist} Summary: Alsa OSS Emulation Tools Group: Applications/Multimedia...
详细解释一下啊!!!最好把源码帖出!!!谢谢了!!!
|
Name: alsa-oss
Version: 1.0.10
Release: 3%{?dist}
Summary: Alsa OSS Emulation Tools
Group: Applications/Multimedia
License: GPL
URL: http://www.alsa-project.org/
Source0: ftp://ftp.alsa-project.org/pub/oss-lib/alsa-oss-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: alsa-lib-devel
#Requires:
%description
Alsa OSS Emulation Tool.It can help oss applicatio redirect their
output to alsa.
This package contain a tool called aoss, you can run it like this:
aoss some_oss_application arg1 arg2
%package devel
Summary: Static libraries and header files from the aoss package.
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
Alsa OSS Emulation Tool.It can help oss applicatio redirect their
output to alsa.
This package contain the development headers and libraries, you may not
be interested on this.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING oss-redir/README
%{_bindir}/aoss
%{_libdir}/libalsatoss.so.*
%{_libdir}/libaoss.so.*
%{_mandir}/*
%files devel
%{_includedir}/*
%{_libdir}/libalsatoss.so
%{_libdir}/libalsatoss.a
%{_libdir}/libalsatoss.la
%{_libdir}/libaoss.so
%{_libdir}/libaoss.a
%{_libdir}/libaoss.la
%{_libdir}/libossredir.a
%{_libdir}/libossredir.la
%changelog
* Wed Feb 15 2006 ZC Miao - 1.0.10-3
- add URL for source
* Sat Feb 11 2006 ZC Miao - 1.0.10-2
- fork a devel package
* Sat Feb 11 2006 ZC Miao - 1.0.10-1
- initial build from alsa-oss-1.0.10
Version: 1.0.10
Release: 3%{?dist}
Summary: Alsa OSS Emulation Tools
Group: Applications/Multimedia
License: GPL
URL: http://www.alsa-project.org/
Source0: ftp://ftp.alsa-project.org/pub/oss-lib/alsa-oss-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: alsa-lib-devel
#Requires:
%description
Alsa OSS Emulation Tool.It can help oss applicatio redirect their
output to alsa.
This package contain a tool called aoss, you can run it like this:
aoss some_oss_application arg1 arg2
%package devel
Summary: Static libraries and header files from the aoss package.
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
Alsa OSS Emulation Tool.It can help oss applicatio redirect their
output to alsa.
This package contain the development headers and libraries, you may not
be interested on this.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING oss-redir/README
%{_bindir}/aoss
%{_libdir}/libalsatoss.so.*
%{_libdir}/libaoss.so.*
%{_mandir}/*
%files devel
%{_includedir}/*
%{_libdir}/libalsatoss.so
%{_libdir}/libalsatoss.a
%{_libdir}/libalsatoss.la
%{_libdir}/libaoss.so
%{_libdir}/libaoss.a
%{_libdir}/libaoss.la
%{_libdir}/libossredir.a
%{_libdir}/libossredir.la
%changelog
* Wed Feb 15 2006 ZC Miao - 1.0.10-3
- add URL for source
* Sat Feb 11 2006 ZC Miao - 1.0.10-2
- fork a devel package
* Sat Feb 11 2006 ZC Miao - 1.0.10-1
- initial build from alsa-oss-1.0.10