Explorar o código

create compat32 sub packages

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4306 ec354946-7b23-47d6-9f5a-488ba84defc7
Takemikaduchi %!s(int64=13) %!d(string=hai) anos
pai
achega
875c455328
Modificáronse 1 ficheiros con 66 adicións e 1 borrados
  1. 66 1
      u/udev/udev-vl.spec

+ 66 - 1
u/udev/udev-vl.spec

@@ -1,3 +1,5 @@
+%define build_compat32  %{?_with_compat32:1}%{!?_with_compat32:0}
+
 %define debug false
 %define udev_scriptdir /lib/udev
 %define firmwaredir /lib/firmware
@@ -6,7 +8,7 @@ Summary: A userspace implementation of devfs
 Summary(ja): ユーザスペース実装のデバイスファイルシステム
 Name: udev
 Version: 154
-Release: 5%{?_dist_release}
+Release: 6%{?_dist_release}
 License: GPL
 Group: System Environment/Base
 URL: http://kernel.org/pub/linux/utils/kernel/hotplug/
@@ -109,6 +111,44 @@ Requires: libgudev1 = %{version}-%{release}
 This package contains the header and pkg-config files for developing
 glib-based applications using libudev functionality.
 
+# compat32
+%package -n compat32-libudev
+Summary: A userspace implementation of devfs
+Summary(ja): ユーザスペース実装のデバイスファイルシステム
+Group: System Environment/Base
+Requires: libudev = %{version}-%{release}
+
+%description -n compat32-libudev
+The udev package contains an implementation of devfs in 
+userspace using sysfs and netlink.
+
+%package -n compat32-libudev-devel
+Summary: Development files for libudev
+Group: Development/Libraries
+Requires: compat32-libudev = %{version}-%{release}
+
+%description -n compat32-libudev-devel
+This package contains the development files for the library libudev, a
+dynamic library, which provides access to udev device information.
+
+%package -n compat32-libgudev1
+Summary: Libraries for adding libudev support to applications that use glib
+Group: Development/Libraries
+Requires: compat32-libudev >= %{version}-%{release}
+
+%description -n compat32-libgudev1
+This package contains the libraries that make it easier to use libudev
+
+%package -n compat32-libgudev1-devel
+Summary: Header files for adding libudev support to applications that use glib
+Group: Development/Libraries
+Requires: compat32-libudev-devel
+Requires: compat32-libgudev1 = %{version}-%{release}
+
+%description -n compat32-libgudev1-devel
+This package contains the header and pkg-config files for developing
+glib-based applications using libudev functionality.
+
 
 %prep
 %setup -q  
@@ -355,7 +395,32 @@ rm -rf $RPM_BUILD_ROOT
 %attr(0644,root,root) %{_libdir}/pkgconfig/gudev-1.0*
 
 
+%if %{build_compat32}
+%files -n compat32-libudev
+%attr(0755,root,root) /%{_lib}/libudev.so.*
+
+%files -n compat32-libudev-devel
+%defattr(0644,root,root,0755)
+%{_libdir}/libudev.so
+%{_libdir}/pkgconfig/libudev.pc
+%{_datadir}/pkgconfig/udev.pc
+
+%files -n compat32-libgudev1
+%defattr(0644, root, root, 0755)
+%attr(0755,root,root) %{_libdir}/libgudev-1.0.so.*
+
+%files -n compat32-libgudev1-devel
+%defattr(0644, root, root, 0755)
+%doc COPYING
+%attr(0755,root,root) %{_libdir}/libgudev-1.0.so
+%attr(0644,root,root) %{_libdir}/pkgconfig/gudev-1.0*
+%endif
+
+
 %changelog
+* Sat Jul 09 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 154-6
+- create compat32 sub packages
+
 * Tue Apr 05 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 154-3
 - enable static library, add libudev-static subpackage.