SPECS: udev.spec - separated -libs, fixed -devel files (duplicates with lib...
qboosh
qboosh at pld-linux.org
Mon Oct 6 22:46:27 CEST 2008
Author: qboosh Date: Mon Oct 6 20:46:27 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- separated -libs, fixed -devel files (duplicates with libvolume_id-devel)
- added err patch, fixed -initrd build
---- Files affected:
SPECS:
udev.spec (1.248 -> 1.249)
---- Diffs:
================================================================
Index: SPECS/udev.spec
diff -u SPECS/udev.spec:1.248 SPECS/udev.spec:1.249
--- SPECS/udev.spec:1.248 Mon Oct 6 21:10:25 2008
+++ SPECS/udev.spec Mon Oct 6 22:46:22 2008
@@ -4,13 +4,13 @@
# - initrd build with uclibc on amd64 produces non-working binary (illegal instruction from open("/dev/null"))
#
# Conditional build:
-%bcond_without initrd # build without udev-initrd
-%bcond_without uClibc # link initrd version with static uClibc
-%bcond_with klibc # link initrd version with static klibc
+%bcond_without initrd # build without udev-initrd
+%bcond_without uClibc # link initrd version with static uClibc
+%bcond_with klibc # link initrd version with static klibc
%bcond_with dietlibc # link initrd version with static dietlibc (currently broken and unsupported)
-%bcond_with glibc # link initrd version with static glibc
-%bcond_without main # don't compile main package, use for debugging initrd build
-%bcond_without selinux # build without SELinux support
+%bcond_with glibc # link initrd version with static glibc
+%bcond_without main # don't compile main package, use for debugging initrd build
+%bcond_without selinux # build without SELinux support
%ifarch sparc sparc64
%define with_glibc 1
@@ -48,6 +48,7 @@
Source11: start_udev
# misc
Source20: %{name}.blacklist
+Patch0: %{name}-err.patch
URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
BuildRequires: device-mapper-devel
%{?with_selinux:BuildRequires: libselinux-devel >= 1.17.13}
@@ -89,6 +90,7 @@
Summary: A userspace implementation of devfs - core part of udev
Summary(pl.UTF-8): Implementacja devfs w przestrzeni użytkownika - główna część udev
Group: Base
+Requires: %{name}-libs = %{epoch}:%{version}-%{release}
Requires: coreutils
Requires: libvolume_id = %{epoch}:%{version}-%{release}
Requires: uname(release) >= 2.6.15
@@ -112,29 +114,42 @@
Implementacja devfs w przestrzeni użytkownika - statyczna binarka dla
initrd.
+%package libs
+Summary: Shared libudev library
+Summary(pl.UTF-8): Biblioteka współdzielona libudev
+Group: Libraries
+Requires: libselinux >= 1.17.13
+
+%description libs
+Shared libudev library.
+
+%description libs -l pl.UTF-8
+Biblioteka współdzielona libudev.
+
%package devel
-Summary: Header files and develpment documentation for udev
-Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do udev
+Summary: Header file for libudev library
+Summary(pl.UTF-8): Plik nagłówkowy biblioteki libudev
Group: Development/Libraries
-Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: %{name}-libs = %{epoch}:%{version}-%{release}
+Requires: libselinux-devel >= 1.17.13
%description devel
-Header files and develpment documentation for udev.
+Header file for libudev library.
%description devel -l pl.UTF-8
-Pliki nagłówkowe i dokumentacja do udev.
+Plik nagłówkowy biblioteki libudev.
%package static
-Summary: Static udev library
-Summary(pl.UTF-8): Biblioteka statyczna udev
+Summary: Static libudev library
+Summary(pl.UTF-8): Biblioteka statyczna libudev
Group: Development/Libraries
Requires: %{name}-devel = %{epoch}:%{version}-%{release}
%description static
-Static udev library.
+Static libudev library.
%description static -l pl.UTF-8
-Biblioteka statyczna udev.
+Biblioteka statyczna libudev.
%package -n libvolume_id
Summary: libvolume_id library
@@ -174,30 +189,26 @@
%prep
%setup -q
+%patch0 -p1
%build
+%if %{with initrd}
%configure \
+ %{?with_uClibc:CC="%{_target_cpu}-uclibc-gcc"} \
+ %{?with_dietlibc:CC="%{_target_cpu}-dietlibc-gcc"} \
+ %{?with_klibc:CC="%{_bindir}/klcc"} \
%{?debug:--enable-debug} \
--exec-prefix="" \
--libdir=/%{_lib} \
+ --disable-logging \
+ --disable-shared \
+ --enable-static \
--with-libdir-name=%{_lib} \
--with-udev-prefix="" \
- --enable-shared \
- --enable-static \
- --without-selinux \
- --disable-logging
-%if %{with initrd}
-%{__make} \
- %{?with_uClibc:CC="%{_target_cpu}-uclibc-gcc"} \
- %{?with_uClibc:LD="%{_target_cpu}-uclibc-gcc %{rpmldflags} -static"} \
- %{?with_dietlibc:CC="%{_target_cpu}-dietlibc-gcc"} \
- %{?with_dietlibc:LD="%{_target_cpu}-dietlibc-gcc %{rpmldflags} -static"} \
- %{?with_glibc:CC="%{_target_cpu}-pld-linux-gcc"} \
- %{?with_glibc:LD="%{_target_cpu}-pld-linux-gcc %{rpmldflags} -static"} \
- %{?with_klibc:KLCC=%{_bindir}/klcc CC="klcc"} \
- %{?with_klibc:LD="klcc %{rpmldflags} -static"}
+ --without-selinux
+%{__make}
-%{__make} install
+%{__make} install \
DESTDIR=$(pwd)/udev-initrd
%if %{with main}
@@ -210,12 +221,12 @@
%{?debug:--enable-debug} \
--exec-prefix="" \
--libdir=/%{_lib} \
- --with-libdir-name=%{_lib} \
- --with-udev-prefix="" \
+ --enable-logging \
--enable-shared \
--enable-static \
+ --with-libdir-name=%{_lib} \
--with-selinux \
- --enable-logging
+ --with-udev-prefix=""
%{__make}
%endif
@@ -260,7 +271,8 @@
%if %{with initrd}
install -d $RPM_BUILD_ROOT%{_sbindir}
-install initrd-* $RPM_BUILD_ROOT%{_sbindir}
+install udev-initrd/sbin/udevadm $RPM_BUILD_ROOT%{_sbindir}/initrd-udevadm
+install udev-initrd/sbin/udevd $RPM_BUILD_ROOT%{_sbindir}/initrd-udevd
ln -s initrd-udevd $RPM_BUILD_ROOT%{_sbindir}/udevstart.initrd
%endif
@@ -280,8 +292,8 @@
sed -i -e 's#IMPORT{program}="/sbin/#IMPORT{program}="#g' /etc/udev/rules.d/*.rules
sed -i -e 's#/lib/udev/#/lib/udev/#g' /etc/udev/rules.d/*.rules
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%post -n libvolume_id -p /sbin/ldconfig
%postun -n libvolume_id -p /sbin/ldconfig
@@ -325,8 +337,6 @@
%attr(755,root,root) %{_sbindir}/udevd
%attr(755,root,root) %{_sbindir}/udevadm
-%attr(755,root,root) /%{_lib}/libudev.so.*
-
%dir %{_sysconfdir}/udev
%dir %{_sysconfdir}/udev/rules.d
@@ -362,11 +372,16 @@
%{_mandir}/man7/udev.7*
%{_mandir}/man8/*
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) /%{_lib}/libudev.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libudev.so.0
+
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libudev.so
-%{_pkgconfigdir}/*.pc
-%{_includedir}/*.h
+%{_includedir}/libudev.h
+%{_pkgconfigdir}/libudev.pc
%files static
%defattr(644,root,root,755)
@@ -383,7 +398,7 @@
%files -n libvolume_id
%defattr(644,root,root,755)
%attr(755,root,root) /%{_lib}/libvolume_id.so.*.*.*
-%attr(755,root,root) %ghost /%{_lib}/libvolume_id.so.[0-9]
+%attr(755,root,root) %ghost /%{_lib}/libvolume_id.so.1
%files -n libvolume_id-devel
%defattr(644,root,root,755)
@@ -401,6 +416,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.249 2008/10/06 20:46:22 qboosh
+- separated -libs, fixed -devel files (duplicates with libvolume_id-devel)
+- added err patch, fixed -initrd build
+
Revision 1.248 2008/10/06 19:10:25 arekm
- up to 129
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/udev.spec?r1=1.248&r2=1.249&f=u
More information about the pld-cvs-commit
mailing list