Compare commits
No commits in common. "spec-file" and "master" have entirely different histories.
1 changed files with 29 additions and 23 deletions
|
@ -1,14 +1,15 @@
|
||||||
Name: comedilib
|
|
||||||
Summary: Data Acquisition library for the Comedi DAQ driver.
|
Summary: Data Acquisition library for the Comedi DAQ driver.
|
||||||
|
Name: comedilib
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Release: 1%{?dist}
|
Release: 1
|
||||||
License: LGPL
|
License: LGPL
|
||||||
Group: System Environment/Kernel
|
Group: System Environment/Kernel
|
||||||
URL: http://www.comedi.org/
|
URL: http://www.comedi.org/
|
||||||
Source: http://www.comedi.org/comedi/download/comedilib-@VERSION@.tar.gz
|
Source: http://www.comedi.org/comedi/download/comedilib-@VERSION@.tar.gz
|
||||||
BuildRoot: /var/tmp/%{name}-buildroot
|
BuildRoot: /var/tmp/%{name}-buildroot
|
||||||
BuildRequires: python-devel swig
|
Prereq: /sbin/ldconfig
|
||||||
Provides: comedilib
|
BuildRequires: python
|
||||||
|
provides: comedilib
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Comedilib is the library for the Comedi data acquisition driver
|
Comedilib is the library for the Comedi data acquisition driver
|
||||||
|
@ -18,7 +19,6 @@ supported DAQ cards, such as those from National Instruments.
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Libraries/include files for Comedi
|
Summary: Libraries/include files for Comedi
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Comedilib is a library for using Comedi, a driver interface for data
|
Comedilib is a library for using Comedi, a driver interface for data
|
||||||
|
@ -28,18 +28,30 @@ acquisition hardware.
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
#called when the rpm is built
|
||||||
make %{?_smp_mflags}
|
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
|
||||||
|
./configure \
|
||||||
|
--prefix=%{_prefix} \
|
||||||
|
--mandir=%{_mandir} \
|
||||||
|
--datadir=%{_datadir} \
|
||||||
|
--sysconfdir=%{_sysconfdir} \
|
||||||
|
--disable-dependency-tracking
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
|
||||||
# Move files
|
# Clean out files that should not be part of the rpm.
|
||||||
mv $RPM_BUILD_ROOT%{_datadir}/doc/comedilib $RPM_BUILD_ROOT%{_datadir}/doc/comedilib-devel
|
# This is the recommended way of dealing with it for RH8
|
||||||
|
#rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/pcmcia
|
# Move files
|
||||||
rm -rf $RPM_BUILD_ROOT%{_libdir}/libcomedi.la
|
mv $RPM_BUILD_ROOT%{_datadir}/comedilib $RPM_BUILD_ROOT%{_datadir}/comedilib-devel
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
@ -52,33 +64,27 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/libcomedi.la
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS COPYING README ChangeLog NEWS
|
%doc AUTHORS COPYING README TODO ChangeLog NEWS
|
||||||
%{_libdir}/libcomedi.so
|
%{_libdir}/libcomedi.so
|
||||||
%{_libdir}/libcomedi.so.*
|
%{_libdir}/libcomedi.so.*
|
||||||
|
%{_libdir}/python2.2/site-packages/*.so
|
||||||
|
%{_libdir}/python2.2/site-packages/comedi.py
|
||||||
%{_sbindir}/comedi_*
|
%{_sbindir}/comedi_*
|
||||||
%{_bindir}/comedi_*
|
%{_bindir}/comedi_*
|
||||||
%{_mandir}/man1/*
|
|
||||||
%{_mandir}/man7/*
|
%{_mandir}/man7/*
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/libcomedi.a
|
%{_libdir}/libcomedi.a
|
||||||
%{_libdir}/pkgconfig/comedilib.pc
|
|
||||||
|
|
||||||
%{_includedir}/comedi*.h
|
%{_includedir}/comedi*.h
|
||||||
%{_includedir}/comedi*.hpp
|
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
%{_datadir}/doc/comedilib-devel/*
|
%{_datadir}/comedilib-devel/html/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 03 2002 David Schleef <ds@schleef.org>
|
||||||
* Wed Mar 28 2018 Steffen Vogel <post@steffenvogel.de>
|
|
||||||
- fixed spec file for Fedora 27
|
|
||||||
|
|
||||||
* Mon Jun 03 2002 David Schleef <ds@schleef.org>
|
|
||||||
- update for new build system
|
- update for new build system
|
||||||
|
|
||||||
* Thu Feb 21 2002 Tim Ousley <tim.ousley@ni.com>
|
* Wed Feb 21 2002 Tim Ousley <tim.ousley@ni.com>
|
||||||
- initial build of comedilib RPM
|
- initial build of comedilib RPM
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue