From: Marcin Krol Date: Mon, 27 Jul 2015 17:35:30 +0000 (+0000) Subject: - from PLD X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=793391eb1029b838630c4a2d156ddfb874309a5b;p=packages%2Fsg3_utils.git - from PLD --- 793391eb1029b838630c4a2d156ddfb874309a5b diff --git a/sg3_utils.spec b/sg3_utils.spec new file mode 100644 index 0000000..ba2ac28 --- /dev/null +++ b/sg3_utils.spec @@ -0,0 +1,116 @@ +Summary: Utilities and test programs for the Linux sg version 3 device driver +Summary(pl.UTF-8): Programy narzędziowe i testowe dla linuksowego sterownika sg w wersji 3 +Name: sg3_utils +Version: 1.40 +Release: 1 +License: GPL v2 (utilities), BSD (library) +Group: Applications/System +Source0: http://sg.danny.cz/sg/p/%{name}-%{version}.tar.xz +# Source0-md5: 4bfdb74d20dd1dac12150c9ba0be6120 +URL: http://sg.danny.cz/sg/sg3_utils.html +BuildRequires: tar >= 1:1.22 +BuildRequires: xz +# see scripts/rescan-scsi-bus.sh /Id: +Provides: rescan-scsi-bus = 1.57 +Provides: sg_utils +Obsoletes: rescan-scsi-bus < 1.57 +Obsoletes: scsiutils +Obsoletes: sg_utils +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%undefine __cxx + +%description +This package contains some utilities and test programs for the Linux +sg (version 3) device driver. This driver is found in the Linux 2.4+ +kernels. + +%description -l pl.UTF-8 +Ten pakiet zawiera trochę programów narzędziowych i testowych dla +sterownika urządzeń sg w wersji 3. Ten sterownik jest obecny w jądrach +Linuksa 2.4+. + +%package devel +Summary: Header files for sgutils2 library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sgutils2 +License: BSD +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for sgutils2 library. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki sgutils2. + +%package static +Summary: Static sgutils2 library +Summary(pl.UTF-8): Statyczna biblioteka sgutils2 +License: BSD +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static version of sgutils2 library. + +%description static -l pl.UTF-8 +Statyczna wersja biblioteki sgutils2. + +%prep +%setup -q + +cp -p scripts/README README.scripts + +%build +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +install scripts/rescan-scsi-bus.sh $RPM_BUILD_ROOT%{_bindir} + +install -d $RPM_BUILD_ROOT/lib/udev/rules.d +install scripts/*.rules $RPM_BUILD_ROOT/lib/udev/rules.d + +# no external dependencies +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsgutils2.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc AUTHORS BSD_LICENSE COPYING COVERAGE CREDITS ChangeLog README README.scripts README.sg_start TODO +%attr(755,root,root) %{_bindir}/rescan-scsi-bus.sh +%attr(755,root,root) %{_bindir}/scsi_* +%attr(755,root,root) %{_bindir}/sg_* +%attr(755,root,root) %{_bindir}/sginfo +%attr(755,root,root) %{_bindir}/sgm_dd +%attr(755,root,root) %{_bindir}/sgp_dd +%attr(755,root,root) %{_libdir}/libsgutils2.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libsgutils2.so.2 +/lib/udev/rules.d/55-scsi-sg3_id.rules +/lib/udev/rules.d/58-scsi-sg3_symlink.rules +%{_mandir}/man8/rescan-scsi-bus.sh.8* +%{_mandir}/man8/scsi_*.8* +%{_mandir}/man8/sg3_utils.8* +%{_mandir}/man8/sg_*.8* +%{_mandir}/man8/sginfo.8* +%{_mandir}/man8/sgm_dd.8* +%{_mandir}/man8/sgp_dd.8* + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libsgutils2.so +%{_includedir}/scsi/sg_*.h + +%files static +%defattr(644,root,root,755) +%{_libdir}/libsgutils2.a