* [PATCH] alsa-lib rpm spec update
@ 2003-02-24 12:59 Ronny V. Vindenes
2003-02-25 15:35 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Ronny V. Vindenes @ 2003-02-24 12:59 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 451 bytes --]
Cleanup the alsa-lib rpm spec:
* Use standard rpm macros for build & install
* Split package into alsa-lib and alsa-lib-devel (this is standard and
makes offical packages play nice with 3rd party alsa-lib packages
like those provided by gstreamer)
* Correct which files are installed (so that pkg-config works)
* Set license to LGPL
Tested on Redhat 8.0, hopefully it doesn't break on SuSe or Mandrake
--
Ronny V. Vindenes <sublett@dc-s.com>
[-- Attachment #2: Type: TEXT/PLAIN, Size: 2301 bytes --]
--- alsa-lib.spec.in.orig 2003-02-22 23:38:02.000000000 +0100
+++ alsa-lib.spec.in 2003-02-22 23:43:09.000000000 +0100
@@ -5,18 +5,32 @@
Name: alsa-lib
Version: %ver
Release: %rel
-Copyright: GPL
+License: LGPL
Group: System/Libraries
Source: ftp://ftp.alsa-project.org/pub/lib/alsa-lib-%{ver}.tar.bz2
-BuildRoot: /var/tmp/alsa-lib-%{ver}
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
URL: http://www.alsa-project.org
Requires: alsa-driver
+BuildRequires: alsa-driver
%description
Advanced Linux Sound Architecture (ALSA) - Library
+%package -n alsa-lib-devel
+Summary: ALSA Libraries Development Files
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description -n alsa-lib-devel
+Development files for building applications which use the ALSA libraries.
+
%changelog
+* Sat Feb 22 2003 Ronny V. Vindenes <sublett@dc-s.com>
+- split alsa-lib into alsa-lib and alsa-lib-devel
+- changed which files are installed (now includes alsa.pc)
+- use standard rpm macros for build and install
+- changed BuildRoot from /var/tmp to %{_tmppath}
* Tue Nov 20 2001 Jaroslav Kysela <perex@suse.cz>
@@ -36,31 +50,28 @@
%prep
%setup
%build
-
-./configure --prefix=%_prefix --mandir=%_mandir --datadir=%_datadir \
- --includedir=%_includedir --libdir=%_libdir
+%configure
make
%install
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
-
-mkdir -p $RPM_BUILD_ROOT/%_includedir/alsa
-mkdir -p $RPM_BUILD_ROOT/%_datadir/alsa
-mkdir -p $RPM_BUILD_ROOT/%_datadir/aclocal
-mkdir -p $RPM_BUILD_ROOT/%_libdir
-
-make DESTDIR="$RPM_BUILD_ROOT" install
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+%makeinstall
%clean
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
-
+%{_bindir}/*
+%{_libdir}/*.so.*
+%{_datadir}/alsa
%doc doc/*.txt
-%_includedir/alsa/*.h
-%_libdir/lib*
-%_datadir/aclocal/alsa.m4
-%_datadir/alsa/*
-%_prefix/bin/aserver
+%files -n alsa-lib-devel
+%defattr(-,root,root)
+%{_includedir}/alsa
+%{_includedir}/sys/*
+%{_libdir}/*.la
+%{_libdir}/*.so
+%{_datadir}/aclocal/*
+%{_libdir}/pkgconfig/*
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] alsa-lib rpm spec update
2003-02-24 12:59 [PATCH] alsa-lib rpm spec update Ronny V. Vindenes
@ 2003-02-25 15:35 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2003-02-25 15:35 UTC (permalink / raw)
To: Ronny V. Vindenes; +Cc: alsa-devel
Hi,
At Mon, 24 Feb 2003 13:59:53 +0100 (CET),
Ronny V. Vindenes <s864@lstud.ii.uib.no> wrote:
>
> Cleanup the alsa-lib rpm spec:
> * Use standard rpm macros for build & install
> * Split package into alsa-lib and alsa-lib-devel (this is standard and
> makes offical packages play nice with 3rd party alsa-lib packages
> like those provided by gstreamer)
> * Correct which files are installed (so that pkg-config works)
> * Set license to LGPL
applied to cvs. thanks.
> Tested on Redhat 8.0, hopefully it doesn't break on SuSe or Mandrake
suse and madrake have their own spec files :)
ciao,
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-25 15:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-24 12:59 [PATCH] alsa-lib rpm spec update Ronny V. Vindenes
2003-02-25 15:35 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.