Репозитории ALT

S: | 21.23-alt1.2 |
D: | 14.19-alt1 |
5.1: | 15.26-alt1 |
4.1: | 13.57-alt1 |
Группа :: Система/Ядро и оборудование
Пакет: hwinfo
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_with static
Name: hwinfo
%define lname lib%name
Version: 15.26
Release: alt1
Summary: Hardware detection tool
License: GPL2
Group: System/Kernel and hardware
URL: http://download.opensuse.org/source/factory/repo/oss/suse/src
# http://download.opensuse.org/source/factory/repo/oss/suse/src/%name-%version-1.31.src.rpm
Source: %name-%version.tar
Patch0: %name-14.19-kbd.c-tiocgdev_undefined.patch
Patch1: %name-13.57-as-needed.patch
Patch2: %name-14.19-makefile.patch
Patch3: %name-14.19-alt.patch
Requires: %lname = %version-%release
Packager: Fr. Br. George <george at altlinux.ru>
# Automatically added by buildreq on Thu Sep 25 2008 (-bi)
BuildRequires: doxygen flex hal libhal-devel perl-XML-Parser perl-XML-Writer perl-devel
BuildRequires: rpm-build-licenses
%description
A simple program that lists results from the hardware detection
library.
%package utils
Summary: Hardware Detection utils
Group: System/Kernel and hardware
%description utils
Hardware Detection utils.
%package -n %lname
Summary: Hardware Detection library
Group: System/Libraries
Provides: libhd = %version-%release
%description -n %lname
This library collects information about the hardware installed on a
system.
%package -n %lname-doc
Summary: Documentation for Hardware Detection library
Group: Documentation
BuildArch: noarch
Conflicts: %name-devel < %version-%release
%description -n %lname-doc
Documentation for Hardware Detection library.
%package -n %lname-devel
Summary: Hardware Detection library (development files)
Group: Development/C
Obsoletes: %name-devel < %version-%release
Provides: %name-devel = %version-%release
Provides: libhddev
Requires: %lname = %version-%release
%description -n %lname-devel
Development files for %lname.
%if_with static
%package -n %lname-devel-static
Summary: Hardware Detection static library
Group: Development/C
Requires: %lname-devel = %version-%release
Conflicts: %name-devel < %version-%release
%description -n %lname-devel-static
This static library collects information about the hardware installed
on a system.
%endif
%prep
%setup
%patch0 -p1
%patch1 -p0
%patch2 -p1
%patch3 -p1
%build
%make
%make_build doc
bzip2 --best --keep --force Changelog
%install
%make DESTDIR=%buildroot LIBDIR=%_libdir install
install -d -m 0755 %buildroot{%_man8dir,%_docdir/%lname-%version/html,%_localstatedir/hardware/udi}
install -m 0644 doc/*.8 %buildroot%_man8dir/
install -m 0644 doc/libhd/html/* %buildroot%_docdir/%lname-%version/html/
%{?_with_static:install -m 0644 src/lib*.a %buildroot%_libdir/}
%files
%doc Changelog.* README
%_sbindir/%name
%_man8dir/*
%files utils
%_sbindir/getsysinfo
%_sbindir/mk_isdnhwdb
%_sbindir/check_hd
%_sbindir/convert_hd
%files -n %lname
%_libdir/*.so.*
%dir %_localstatedir/hardware
%dir %_localstatedir/hardware/udi
%_datadir/%name
%files -n %lname-devel
%_libdir/*.so
%_pkgconfigdir/*
%_includedir/*
%files -n %lname-doc
%_docdir/%lname-%version/html
%if_with static
%files -n %lname-devel-static
%_libdir/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь
Name: hwinfo
%define lname lib%name
Version: 15.26
Release: alt1
Summary: Hardware detection tool
License: GPL2
Group: System/Kernel and hardware
URL: http://download.opensuse.org/source/factory/repo/oss/suse/src
# http://download.opensuse.org/source/factory/repo/oss/suse/src/%name-%version-1.31.src.rpm
Source: %name-%version.tar
Patch0: %name-14.19-kbd.c-tiocgdev_undefined.patch
Patch1: %name-13.57-as-needed.patch
Patch2: %name-14.19-makefile.patch
Patch3: %name-14.19-alt.patch
Requires: %lname = %version-%release
Packager: Fr. Br. George <george at altlinux.ru>
# Automatically added by buildreq on Thu Sep 25 2008 (-bi)
BuildRequires: doxygen flex hal libhal-devel perl-XML-Parser perl-XML-Writer perl-devel
BuildRequires: rpm-build-licenses
%description
A simple program that lists results from the hardware detection
library.
%package utils
Summary: Hardware Detection utils
Group: System/Kernel and hardware
%description utils
Hardware Detection utils.
%package -n %lname
Summary: Hardware Detection library
Group: System/Libraries
Provides: libhd = %version-%release
%description -n %lname
This library collects information about the hardware installed on a
system.
%package -n %lname-doc
Summary: Documentation for Hardware Detection library
Group: Documentation
BuildArch: noarch
Conflicts: %name-devel < %version-%release
%description -n %lname-doc
Documentation for Hardware Detection library.
%package -n %lname-devel
Summary: Hardware Detection library (development files)
Group: Development/C
Obsoletes: %name-devel < %version-%release
Provides: %name-devel = %version-%release
Provides: libhddev
Requires: %lname = %version-%release
%description -n %lname-devel
Development files for %lname.
%if_with static
%package -n %lname-devel-static
Summary: Hardware Detection static library
Group: Development/C
Requires: %lname-devel = %version-%release
Conflicts: %name-devel < %version-%release
%description -n %lname-devel-static
This static library collects information about the hardware installed
on a system.
%endif
%prep
%setup
%patch0 -p1
%patch1 -p0
%patch2 -p1
%patch3 -p1
%build
%make
%make_build doc
bzip2 --best --keep --force Changelog
%install
%make DESTDIR=%buildroot LIBDIR=%_libdir install
install -d -m 0755 %buildroot{%_man8dir,%_docdir/%lname-%version/html,%_localstatedir/hardware/udi}
install -m 0644 doc/*.8 %buildroot%_man8dir/
install -m 0644 doc/libhd/html/* %buildroot%_docdir/%lname-%version/html/
%{?_with_static:install -m 0644 src/lib*.a %buildroot%_libdir/}
%files
%doc Changelog.* README
%_sbindir/%name
%_man8dir/*
%files utils
%_sbindir/getsysinfo
%_sbindir/mk_isdnhwdb
%_sbindir/check_hd
%_sbindir/convert_hd
%files -n %lname
%_libdir/*.so.*
%dir %_localstatedir/hardware
%dir %_localstatedir/hardware/udi
%_datadir/%name
%files -n %lname-devel
%_libdir/*.so
%_pkgconfigdir/*
%_includedir/*
%files -n %lname-doc
%_docdir/%lname-%version/html
%if_with static
%files -n %lname-devel-static
%_libdir/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь