]> git.pld-linux.org Git - packages/detect.git/commitdiff
- initial release
authorPaweł Gołaszewski <blues@pld-linux.org>
Sun, 21 Jul 2002 18:31:38 +0000 (18:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rewritten spec from MDK - hardware detection

Changed files:
    detect.spec -> 1.1

detect.spec [new file with mode: 0644]

diff --git a/detect.spec b/detect.spec
new file mode 100644 (file)
index 0000000..f8dd707
--- /dev/null
@@ -0,0 +1,142 @@
+Summary:       Hardware detection library
+Name:          detect
+Version:       0.9.72
+Release:       1
+License:       GPL
+Group:         Applications/System
+Source0:       ftp.linux-mandrake.com/pub/harddrake/SOURCES/%{name}-%{version}.tar.bz2
+Patch0:                detect-sound.patch.bz2
+Patch1:                detect-po.patch.bz2
+Patch2:                detect-ppc.patch.bz2
+Patch3:                detect-ppc2.patch.bz2
+Patch4:                detect-ia64-io-h.patch.bz2
+Patch5:                detect-kver-ppc.patch.bz2
+Patch6:                detect-0.9.72-alpha.patch.bz2
+Patch7:                detect-0.9.72-cpu-detect-ppc.patch.bz2
+URL:           http://www.linux-mandrake.com/harddrake/
+%ifarch %{ix86}
+BuildRequires: isapnptools-devel
+%endif
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: bison
+BuildRequires: gettext-devel
+BuildRequires: texinfo
+%ifarch %{ix86} 
+Requires:      isapnptools >= 1.21
+Requires:      detect-lst
+%endif
+Requires:      %{name}-libs = %{version}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Libdetect is a library for hardware detection. The API is easy to learn.
+The following hardware can be detected: CPU, Memory, Disk & partitions, Ethernet cards, Floppy drives, Modem, Mouse, SCSI, Sound cards, Video cards, Scanners.
+
+%package libs
+Summary:       The detect library itself. Necessary to run the detect utility.
+Group:         Libraries
+Provides:      libdetect
+
+%description libs
+Libdetect is a library for hardware detection. The API is easy to learn.
+The following hardware can be detected: CPU, Memory, Disk & 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.
+
+%package libs-devel
+Summary:       Header files and libraries for developing apps which will use detect
+Group:         Development/Libraries
+Requires:      detect-libs = %{version}
+Provides:      detect-devel, libdetect-devel
+Obsoletes:     detect-devel
+
+%description libs-devel
+Detect is a library for hardware detection. The API is easy to learn.
+The following hardware can be detected: CPU, Memory, Disk & partitions, Ethernet cards, Floppy drives, Modem, Mouse, SCSI, Sound cards, Video cards, Scanners.
+
+%package libs-static
+Summary:       Header files and static libraries for developing apps which will use detect
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}
+
+%description libs-static
+Detect is a library for hardware detection. The API is easy to learn.
+he following hardware can be detected: CPU, Memory, Disk & partitions, Ethernet cards, Floppy drives, Modem, Mouse, SCSI, Sound cards, Video cards, Scanners.
+
+%prep
+rm -rf $RPM_BUILD_ROOT
+
+%setup -q -n detect
+%patch0 -p1 
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%ifarch ppc
+%patch5 -p1
+%patch7 -p1
+%endif
+%ifarch alpha
+%patch6 -p1
+%endif
+
+%build
+rm -f missing
+CFLAGS="$RPM_OPT_FLAGS -I/usr/include/isapnp" 
+%{__libtoolize}
+%{__gettextize}
+aclocal
+%{__autoconf}
+%{__automake}
+autoheader
+%configure 
+cat po/Makefile.in > po/Makefile
+make
+
+%install
+%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
+}
+
+
+%find_lang detect
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO VERSION 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.*
+
+%files libs-devel
+%defattr(644,root,root,755)
+%doc docs/{Programming,API,ISA-Structure,PCI-Structure}
+%{_libdir}/libdetect.la
+%{_libdir}/libdetect.so
+%{_includedir}/detect.h
+
+%files libs-static
+%defattr(644,root,root,755)
+%{_libdir}/libdetect.a
This page took 0.115366 seconds and 4 git commands to generate.