]> git.pld-linux.org Git - packages/discover.git/blob - discover.spec
- oops, typo fix
[packages/discover.git] / discover.spec
1 # TODO
2 # - shared linking?
3 # - do sth with source1
4 # - docbook-to-man isn't present in pld, use sth else?
5 # - update Group
6 Summary:        discover - set of libraries and utilities for gathering and reporting information about a system's hardware
7 Summary(pl):    discover - zbiór bibliotek oraz narzêdzi do zbierania oraz raportowania informacji o systemie
8 name:           discover
9 Version:        2.0.7
10 Release:        0.1
11 License:        GPL
12 Group:          Applications
13 Source0:        http://archive.progeny.com/progeny/discover/%{name}-%{version}.tar.gz
14 # Source0-md5:  49d971828fee06a5d9cde8526ef497ea
15 Source1:        http://archive.progeny.com/progeny/discover/%{name}-data-2.2005.02.13.tar.gz
16 # Source1-md5:  6c95ebd652b32d0e0daa546eb3dc4911
17 URL:            http://platform.progeny.com/discover/
18 BuildRequires:  curl-devel
19 BuildRequires:  curl-static
20 BuildRequires:  db-devel
21 BuildRequires:  db-static
22 #BuildRequires: docbook-utils
23 BuildRequires:  expat-devel
24 BuildRequires:  expat-static
25 BuildRequires:  heimdal-devel
26 BuildRequires:  heimdal-static
27 BuildRequires:  libidn-devel
28 BuildRequires:  libidn-static
29 BuildRequires:  openssl-devel
30 BuildRequires:  openssl-static
31 BuildRequires:  zlib-devel
32 BuildRequires:  zlib-static
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 Discover 2.0 is a cross-platform hardware detection system, using
37 system-dependent modules (selected at build time) for detecting the
38 hardware on the system, and provides system-independent interfaces for
39 querying XML data sources about this hardware. Data files are also
40 available.
41
42 Discover 2.0 is a complete redesign and rewrite of Discover 1.0,
43 supporting the association of arbitrary data with specific hardware
44 devices. As an improvement to Discover 1.0, which was limited to
45 reporting Linux kernel modules and XFree86 server module names,
46 Discover 2.0 allows the specification of any data (that can be
47 expressed in XML format) to any software interface.
48
49 %package devel
50 Summary:        Header files for discover library
51 Summary(pl):    Pliki nag³ówkowe biblioteki discover
52 Group:          Development/Libraries
53 Requires:       %{name} = %{version}-%{release}
54
55 %description devel
56 This is the package containing the header files for discover library.
57
58 %description -l pl devel
59 Ten pakiet zawiera pliki nag³ówkowe dla biblioteki discover.
60
61 %prep
62 %setup -q -a1
63
64 %build
65 %configure \
66         --enable-shared=yes \
67         --enable-static=no \
68
69 # bad deps. build hack. fails otherwise
70 %{__make} -C buildtools
71 %{__make} -C doc \
72         DOCBOOKTOMAN=db2man || :
73 # another bug
74 %{__make} -C discover discover.o
75
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 %{__make} install \
82         DESTDIR=$RPM_BUILD_ROOT
83
84 rm -rf api-reference
85 mv $RPM_BUILD_ROOT%{_docdir}/discover/api-reference .
86 rm -rf _doc
87 mv $RPM_BUILD_ROOT/usr/share/doc/discover _doc
88
89 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
90 mv $RPM_BUILD_ROOT/etc/{init.d/*,rc.d/init.d}
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %files
99 %defattr(644,root,root,755)
100 %doc _doc/*
101 %{_sysconfdir}/discover-modprobe.conf
102 %{_sysconfdir}/discover.conf.d/00discover
103 %attr(754,root,root) /etc/rc.d/init.d/discover
104 %attr(755,root,root) %{_libdir}/libdiscover.so.*.*.*
105 %attr(755,root,root) %{_bindir}/discover
106 %attr(755,root,root) %{_sbindir}/discover-modprobe
107 %{_mandir}/man1/discover.1*
108 %{_mandir}/man5/discover-modprobe.conf.5*
109 %{_mandir}/man5/discover.conf.5*
110 %{_mandir}/man8/discover-modprobe.8*
111
112 %files devel
113 %defattr(644,root,root,755)
114 %doc api-reference
115 %attr(755,root,root) %{_bindir}/discover-config
116 %attr(755,root,root) %{_bindir}/discover-static
117 %attr(755,root,root) %{_bindir}/discover-xml
118 %{_includedir}/discover
119 %{_libdir}/libdiscover.la
120 %dir %{_datadir}/discover
121 %dir %{_datadir}/discover/dtd
122 %{_datadir}/discover/dtd/conffile.dtd
123 %{_datadir}/discover/dtd/discover.dtd
124 %{_mandir}/man1/discover-config.1*
This page took 0.075375 seconds and 3 git commands to generate.