]> git.pld-linux.org Git - packages/discover.git/blob - discover.spec
- update todo
[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 # - discover-config.1 contains garbage
7 Summary:        discover - set of libraries and utilities for gathering and reporting information about a system's hardware
8 Summary(pl):    discover - zbiór bibliotek oraz narzêdzi do zbierania oraz raportowania informacji o systemie
9 Name:           discover
10 Version:        2.0.7
11 Release:        0.1
12 License:        GPL
13 Group:          Applications
14 Source0:        http://archive.progeny.com/progeny/discover/%{name}-%{version}.tar.gz
15 # Source0-md5:  49d971828fee06a5d9cde8526ef497ea
16 Source1:        http://archive.progeny.com/progeny/discover/%{name}-data-2.2005.02.13.tar.gz
17 # Source1-md5:  6c95ebd652b32d0e0daa546eb3dc4911
18 URL:            http://platform.progeny.com/discover/
19 BuildRequires:  curl-devel
20 BuildRequires:  curl-static
21 BuildRequires:  db-devel
22 BuildRequires:  db-static
23 #BuildRequires: docbook-utils
24 BuildRequires:  expat-devel
25 BuildRequires:  expat-static
26 BuildRequires:  heimdal-devel
27 BuildRequires:  heimdal-static
28 BuildRequires:  libidn-devel
29 BuildRequires:  libidn-static
30 BuildRequires:  openssl-devel
31 BuildRequires:  openssl-static
32 BuildRequires:  zlib-devel
33 BuildRequires:  zlib-static
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 Discover 2.0 is a cross-platform hardware detection system, using
38 system-dependent modules (selected at build time) for detecting the
39 hardware on the system, and provides system-independent interfaces for
40 querying XML data sources about this hardware. Data files are also
41 available.
42
43 Discover 2.0 is a complete redesign and rewrite of Discover 1.0,
44 supporting the association of arbitrary data with specific hardware
45 devices. As an improvement to Discover 1.0, which was limited to
46 reporting Linux kernel modules and XFree86 server module names,
47 Discover 2.0 allows the specification of any data (that can be
48 expressed in XML format) to any software interface.
49
50 %description -l pl
51 Discover 2.0 to wieloplatformowy system wykrywania sprzêtu u¿ywaj±cy
52 zale¿nych od systemu modu³ów (wybieranych w trakcie kompilacji) do
53 wykrywania sprzêtu w systemie i udostêpniaj±cy niezale¿ne od systemu
54 interfejsy do odpytywania o sprzêt ¼róde³ danych XML. Dostêpne s±
55 tak¿e pliki z danymi.
56
57 Discover 2.0 jest ca³kowicie przeprojektowany i przepisany Discover
58 1.0, obs³uguje wi±zanie dowolnych danych z okre¶lonymi urz±dzeniami
59 sprzêtowymi. Jako rozszerzenie w stosunku do wersji 1.0, ograniczonej
60 do informowania o modu³ach j±dra Linuksa i nazwach modu³ów serwera
61 XFree86, Discover 2.0 pozwala na podawanie dowolnych danych (które
62 mo¿na wyraziæ w formacie XML) do dowolnego interfejsu programowego.
63
64 %package devel
65 Summary:        Header files for discover library
66 Summary(pl):    Pliki nag³ówkowe biblioteki discover
67 Group:          Development/Libraries
68 Requires:       %{name} = %{version}-%{release}
69
70 %description devel
71 This is the package containing the header files for discover library.
72
73 %description devel -l pl
74 Ten pakiet zawiera pliki nag³ówkowe dla biblioteki discover.
75
76 %prep
77 %setup -q -a1
78
79 %build
80 %configure \
81         --enable-shared=yes \
82         --enable-static=no \
83
84 # bad deps. build hack. fails otherwise
85 %{__make} -C buildtools
86 %{__make} -C doc \
87         DOCBOOKTOMAN=db2man || :
88 # another bug
89 %{__make} -C discover discover.o
90
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 rm -rf api-reference
100 mv $RPM_BUILD_ROOT%{_docdir}/discover/api-reference .
101 rm -rf _doc
102 mv $RPM_BUILD_ROOT%{_docdir}/discover _doc
103
104 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
105 mv $RPM_BUILD_ROOT/''etc/{init.d/*,rc.d/init.d}
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %post   -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
112
113 %files
114 %defattr(644,root,root,755)
115 %doc _doc/*
116 %{_sysconfdir}/discover-modprobe.conf
117 %dir %{_sysconfdir}/discover.conf.d
118 %{_sysconfdir}/discover.conf.d/00discover
119 %attr(754,root,root) /etc/rc.d/init.d/discover
120 %attr(755,root,root) %{_bindir}/discover
121 %attr(755,root,root) %{_sbindir}/discover-modprobe
122 %attr(755,root,root) %{_libdir}/libdiscover.so.*.*.*
123 %{_mandir}/man1/discover.1*
124 %{_mandir}/man5/discover-modprobe.conf.5*
125 %{_mandir}/man5/discover.conf.5*
126 %{_mandir}/man8/discover-modprobe.8*
127
128 %files devel
129 %defattr(644,root,root,755)
130 %doc api-reference
131 %attr(755,root,root) %{_bindir}/discover-config
132 %attr(755,root,root) %{_bindir}/discover-static
133 %attr(755,root,root) %{_bindir}/discover-xml
134 %attr(755,root,root) %{_libdir}/libdiscover.so
135 %{_libdir}/libdiscover.la
136 %{_includedir}/discover
137 %dir %{_datadir}/discover
138 %dir %{_datadir}/discover/dtd
139 %{_datadir}/discover/dtd/conffile.dtd
140 %{_datadir}/discover/dtd/discover.dtd
141 %{_mandir}/man1/discover-config.1*
This page took 0.121434 seconds and 3 git commands to generate.