|
@@ -1,8 +1,10 @@
|
|
|
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
+
|
|
|
Name: libpciaccess
|
|
|
Summary: PCI access library
|
|
|
Summary(ja): PCI アクセスライブラリ
|
|
|
Version: 0.12.1
|
|
|
-Release: 1%{?_dist_release}
|
|
|
+Release: 2%{?_dist_release}
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
License: MIT
|
|
@@ -33,6 +35,29 @@ Requires: pkgconfig
|
|
|
%description devel
|
|
|
Development package for libpciaccess.
|
|
|
|
|
|
+
|
|
|
+# compat32
|
|
|
+%package -n compat32-%{name}
|
|
|
+Summary: PCI access library
|
|
|
+Summary(ja): PCI アクセスライブラリ
|
|
|
+Group: System Environment/Libraries
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+
|
|
|
+%description -n compat32-%{name}
|
|
|
+libpciaccess is a library for portable PCI access routines across multiple
|
|
|
+operating systems.
|
|
|
+
|
|
|
+%package -n compat32-%{name}-devel
|
|
|
+Summary: PCI access library development package
|
|
|
+Summary(ja): PCI access library 開発パッケージ
|
|
|
+Group: Development/Libraries
|
|
|
+Requires: %{name}-devel = %{version}-%{release}
|
|
|
+Requires: pkgconfig
|
|
|
+
|
|
|
+%description -n compat32-%{name}-devel
|
|
|
+Development package for libpciaccess.
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
%patch1 -p1 -b .wc
|
|
@@ -66,7 +91,22 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_libdir}/libpciaccess.so
|
|
|
%{_libdir}/pkgconfig/pciaccess.pc
|
|
|
|
|
|
+# compat32
|
|
|
+%if %{build_compat32}
|
|
|
+%files -n compat32-%{name}
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_libdir}/libpciaccess.so.*
|
|
|
+
|
|
|
+%files -n compat32-%{name}-devel
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_libdir}/libpciaccess.so
|
|
|
+%{_libdir}/pkgconfig/pciaccess.pc
|
|
|
+%endif
|
|
|
+
|
|
|
%changelog
|
|
|
+* Sat Jul 09 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.1-2
|
|
|
+- create compat32 sub packages
|
|
|
+
|
|
|
* Sat Feb 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.1-1
|
|
|
- new upstream release
|
|
|
|