X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdetect.git;a=blobdiff_plain;f=detect.spec;h=5599e0d4ab6a3d00c1ebbeece7318a5db45a0933;hp=fb441ab69d7e593106a2d1e18d40ab0ced9ae305;hb=HEAD;hpb=90d5f9b2c2ab0a2f8add312b251578011d5de6a3 diff --git a/detect.spec b/detect.spec index fb441ab..5599e0d 100644 --- a/detect.spec +++ b/detect.spec @@ -1,24 +1,27 @@ Summary: Hardware detection library -Summary(pl): Biblioteka wykrywaj±ca sprzêt +Summary(pl.UTF-8): Biblioteka wykrywająca sprzęt Name: detect Version: 0.9.72 -Release: 1 +Release: 3 License: GPL Group: Applications/System Source0: ftp://ftp.linux-mandrake.com/pub/harddrake/SOURCES/%{name}-%{version}.tar.bz2 -Patch0: %{name}-sound.patch.bz2 +# Source0-md5: 0e001355ad217ce907c5ce95673ab4a4 +Patch0: %{name}-sound.patch Patch1: %{name}-po.patch.bz2 -Patch2: %{name}-ppc.patch.bz2 -Patch3: %{name}-ppc2.patch.bz2 -Patch4: %{name}-ia64-io-h.patch.bz2 -Patch5: %{name}-kver-ppc.patch.bz2 -Patch6: %{name}-0.9.72-alpha.patch.bz2 -Patch7: %{name}-0.9.72-cpu-detect-ppc.patch.bz2 +# Patch1-md5: b01b0b1f10895628ab0f40daa855d2e9 +Patch2: %{name}-ppc.patch +Patch3: %{name}-ppc2.patch +Patch4: %{name}-ia64-io-h.patch +Patch5: %{name}-kver-ppc.patch +Patch6: %{name}-0.9.72-alpha.patch +Patch7: %{name}-0.9.72-cpu-detect-ppc.patch +Patch8: %{name}-acam.patch URL: http://www.linux-mandrake.com/harddrake/ BuildRequires: autoconf BuildRequires: automake BuildRequires: bison -BuildRequires: gettext-devel +BuildRequires: gettext-tools %ifarch %{ix86} BuildRequires: isapnptools-devel %endif @@ -26,7 +29,6 @@ BuildRequires: libtool BuildRequires: texinfo %ifarch %{ix86} Requires: isapnptools >= 1.21 -Requires: detect-lst %endif Requires: %{name}-libs = %{version} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -37,15 +39,15 @@ learn. The following hardware can be detected: CPU, Memory, Disk & partitions, Ethernet cards, Floppy drives, Modem, Mouse, SCSI, Sound cards, Video cards, Scanners. -%description -l pl -libdetect to biblioteka do wykrywania sprzêtu. Jej API jest ³atwe do -nauczenia. Mo¿e wykryæ nastêpuj±cy sprzêt: procesor, pamiêæ, dyski i -partycje, karty sieciowe, stacje dysków, modemy, myszy, SCSI, karty -d¼wiêkowe, karty graficzne, skanery. +%description -l pl.UTF-8 +libdetect to biblioteka do wykrywania sprzętu. Jej API jest łatwe do +nauczenia. Może wykryć następujący sprzęt: procesor, pamięć, dyski i +partycje, karty sieciowe, stacje dysków, modemy, myszy, SCSI, karty +dźwiękowe, karty graficzne, skanery. %package libs Summary: The detect library itself, necessary to run the detect utility -Summary(pl): W³a¶ciwa biblioteka, niezbêdna do dzia³ania narzêdzia detect +Summary(pl.UTF-8): Właściwa biblioteka, niezbędna do działania narzędzia detect Group: Libraries Obsoletes: libdetect @@ -56,17 +58,17 @@ partitions, Ethernet cards, Floppy drives, Modem, Mouse, SCSI, Sound cards, Video cards, Scanners. This package contains the detect library itself, necessary to run the detect utility. -%description libs -l pl -libdetect to biblioteka do wykrywania sprzêtu. Jej API jest ³atwe do -nauczenia. Mo¿e wykryæ nastêpuj±cy sprzêt: procesor, pamiêæ, dyski i -partycje, karty sieciowe, stacje dysków, modemy, myszy, SCSI, karty -d¼wiêkowe, karty graficzne, skanery. Ten pakiet zawiera w³a¶ciw± -bibliotekê, niezbêdn± do dzia³ania narzêdzia wykrywaj±cego (polecenia +%description libs -l pl.UTF-8 +libdetect to biblioteka do wykrywania sprzętu. Jej API jest łatwe do +nauczenia. Może wykryć następujący sprzęt: procesor, pamięć, dyski i +partycje, karty sieciowe, stacje dysków, modemy, myszy, SCSI, karty +dźwiękowe, karty graficzne, skanery. Ten pakiet zawiera właściwą +bibliotekę, niezbędną do działania narzędzia wykrywającego (polecenia detect). %package libs-devel Summary: Header files for developing apps which will use detect -Summary(pl): Pliki nag³ówkowe do tworzenia programów u¿ywaj±cych detect +Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów używających detect Group: Development/Libraries Requires: detect-libs = %{version} Obsoletes: detect-devel @@ -75,23 +77,23 @@ Obsoletes: libdetect-devel %description libs-devel Header files for developing apps which will use detect library. -%description libs-devel -l pl -Pliki nag³ówkowe do tworzenia programów u¿ywaj±cych biblioteki detect. +%description libs-devel -l pl.UTF-8 +Pliki nagłówkowe do tworzenia programów używających biblioteki detect. %package libs-static Summary: Static detect library -Summary(pl0: Statyczna biblioteka detect +Summary(pl.UTF-8): Statyczna biblioteka detect Group: Development/Libraries -Requires: %{name}-devel = %{version} +Requires: %{name}-libs-devel = %{version} %description libs-static Static version of detect library. -%description libs-static -l pl +%description libs-static -l pl.UTF-8 Statyczna wersja biblioteki detect. %prep -%setup -q -n detect +%setup -q -n %{name} %patch0 -p1 %patch1 -p1 %patch2 -p1 @@ -104,6 +106,8 @@ Statyczna wersja biblioteki detect. %ifarch alpha %patch6 -p1 %endif +%patch8 -p1 +ma acconfig.h config.h.in %build rm -f missing @@ -113,28 +117,16 @@ CFLAGS="%{rpmcflags} -I%{_includedir}/isapnp" %{__aclocal} %{__autoconf} %{__automake} -autoheader +%{__autoheader} %configure cat po/Makefile.in > po/Makefile %{__make} %install rm -rf $RPM_BUILD_ROOT -%makeinstall -#make install \ -# prefix=$RPM_BUILD_ROOT%{prefix} \ -# mandir=$RPM_BUILD_ROOT%{_mandir} \ -# libdir=$RPM_BUILD_ROOT%{_libdir} \ -# sbindir=$RPM_BUILD_ROOT%{_sbindir} \ -# datadir=$RPM_BUILD_ROOT%{_datadir} \ -# includedir=$RPM_BUILD_ROOT%{_includedir} - -#not installed by make install script - -cd $RPM_BUILD_ROOT%{prefix}/lib && { -ln -s libdetect.so.0.0.0 libdetect.so.0 -ln -s libdetect.so.0.0.0 libdetect.so -} + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT %find_lang detect @@ -146,18 +138,19 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO VERSION docs/FAQ +%doc AUTHORS BUGS ChangeLog NEWS README docs/FAQ %attr(755,root,root) %{_sbindir}/detect %files libs -f detect.lang %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/libdetect.so.* +%attr(755,root,root) %{_libdir}/lib*.so.*.* +%{_datadir}/detect %files libs-devel %defattr(644,root,root,755) %doc docs/{Programming,API,ISA-Structure,PCI-Structure} -%attr(755,root,root) %{_libdir}/libdetect.la -%attr(755,root,root) %{_libdir}/libdetect.so +%attr(755,root,root) %{_libdir}/lib*.so +%{_libdir}/lib*.la %{_includedir}/detect.h %files libs-static