~ubuntu-branches/ubuntu/feisty/comedilib/feisty

« back to all changes in this revision

Viewing changes to comedilib.spec

  • Committer: Bazaar Package Importer
  • Author(s): David Schleef
  • Date: 2003-09-23 18:11:12 UTC
  • Revision ID: james.westby@ubuntu.com-20030923181112-sat05jyh702rb1at
Tags: upstream-0.7.21
ImportĀ upstreamĀ versionĀ 0.7.21

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Summary: Data Acquisition library for the Comedi DAQ driver.
 
2
Name: comedilib
 
3
Version: 0.7.21
 
4
Release: 1
 
5
License: LGPL
 
6
Group: System Environment/Kernel
 
7
URL: http://www.comedi.org/
 
8
Source: http://www.comedi.org/comedi/download/comedilib-0.7.21.tar.gz
 
9
BuildRoot: /var/tmp/%{name}-buildroot
 
10
Prereq: /sbin/ldconfig
 
11
BuildRequires: python
 
12
provides: comedilib
 
13
 
 
14
%description
 
15
Comedilib is the library for the Comedi data acquisition driver
 
16
for Linux.  It allows Linux processes to acquire data from
 
17
supported DAQ cards, such as those from National Instruments.
 
18
 
 
19
%package devel
 
20
Summary: Libraries/include files for Comedi
 
21
Group: Development/Libraries
 
22
 
 
23
%description devel
 
24
Comedilib is a library for using Comedi, a driver interface for data
 
25
acquisition hardware.
 
26
 
 
27
%prep
 
28
%setup -q
 
29
 
 
30
%build
 
31
#called when the rpm is built
 
32
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
 
33
./configure \
 
34
  --prefix=%{_prefix} \
 
35
  --mandir=%{_mandir} \
 
36
  --datadir=%{_datadir} \
 
37
  --sysconfdir=%{_sysconfdir} \
 
38
  --disable-dependency-tracking
 
39
 
 
40
make
 
41
 
 
42
 
 
43
%install
 
44
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
 
45
 
 
46
%makeinstall
 
47
 
 
48
# Clean out files that should not be part of the rpm. 
 
49
# This is the recommended way of dealing with it for RH8
 
50
#rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
 
51
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 
52
 
 
53
# Move files
 
54
mv $RPM_BUILD_ROOT%{_datadir}/comedilib $RPM_BUILD_ROOT%{_datadir}/comedilib-devel
 
55
 
 
56
%post
 
57
/sbin/ldconfig
 
58
 
 
59
%postun
 
60
/sbin/ldconfig
 
61
 
 
62
%clean
 
63
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
 
64
 
 
65
%files
 
66
%defattr(-,root,root,-)
 
67
%doc AUTHORS COPYING README TODO ChangeLog NEWS
 
68
%{_libdir}/libcomedi.so
 
69
%{_libdir}/libcomedi.so.*
 
70
%{_libdir}/python2.2/site-packages/*.so
 
71
%{_libdir}/python2.2/site-packages/comedi.py
 
72
%{_sbindir}/comedi_*
 
73
%{_bindir}/comedi_*
 
74
%{_mandir}/man7/*
 
75
%{_mandir}/man8/*
 
76
 
 
77
%files devel
 
78
%defattr(-,root,root,-)
 
79
%{_libdir}/libcomedi.a
 
80
%{_includedir}/comedi*.h
 
81
%{_mandir}/man3/*
 
82
%{_datadir}/comedilib-devel/html/*
 
83
 
 
84
%changelog
 
85
* Tue Jun 03 2002 David Schleef <ds@schleef.org>
 
86
- update for new build system
 
87
 
 
88
* Wed Feb 21 2002 Tim Ousley <tim.ousley@ni.com>
 
89
- initial build of comedilib RPM
 
90