mirror of
https://abf.rosa.ru/djam/mISDN.git
synced 2025-02-23 05:33:02 +00:00
130 lines
3.8 KiB
RPMSpec
130 lines
3.8 KiB
RPMSpec
# Don't build the debugging utils by default.
|
|
%bcond_with utils
|
|
|
|
Name: mISDN
|
|
Version: 1.1.5
|
|
Release: 4%{?dist}
|
|
Summary: Userspace part of Modular ISDN stack
|
|
|
|
Group: System Environment/Libraries
|
|
License: LGPLv2+
|
|
URL: http://www.misdn.org/
|
|
Source0: http://www.misdn.org/downloads/releases/mISDNuser-1_1_5.tar.gz
|
|
# From mISDN-1.1.5
|
|
Source1: mISDNif.h
|
|
Source2: mISDNdebugtool.h
|
|
Source3: mISDN.rules
|
|
Patch0: mISDN-build.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Requires(pre): fedora-usermgmt
|
|
Requires(postun): fedora-usermgmt
|
|
|
|
Requires(post): /sbin/ldconfig
|
|
Requires(postun): /sbin/ldconfig
|
|
|
|
%package devel
|
|
Summary: Development files Modular ISDN stack
|
|
Group: System Environment/Libraries
|
|
Requires: mISDN = %{version}-%{release}
|
|
|
|
%package utils
|
|
Summary: Debugging utilities for Modular ISDN stack
|
|
Group: Applications/System
|
|
|
|
%description
|
|
mISDN (modular ISDN) is intended to be the new ISDN stack for the
|
|
Linux 2.6 kernel, from the maintainer of the existing isdn4linux
|
|
code. This package contains the userspace libraries required to
|
|
interface directly to mISDN.
|
|
|
|
%description devel
|
|
mISDN (modular ISDN) is intended to be the new ISDN stack for the
|
|
Linux 2.6 kernel, from the maintainer of the existing isdn4linux
|
|
code. This package contains the development files for userspace
|
|
libraries required to interface to mISDN, needed for compiling
|
|
applications which use mISDN directly such as OpenPBX.
|
|
|
|
%description utils
|
|
mISDN (modular ISDN) is intended to be the new ISDN stack for the
|
|
Linux 2.6 kernel, from the maintainer of the existing isdn4linux
|
|
code. This package contains test utilities for mISDN.
|
|
|
|
%prep
|
|
%setup -q -n mISDNuser-1_1_5
|
|
%patch0 -p0
|
|
mkdir include/linux
|
|
cp %SOURCE1 include/linux
|
|
cp %SOURCE2 include/linux
|
|
rm -rf voip
|
|
|
|
%build
|
|
make CFLAGS="-I`pwd`/include $RPM_OPT_FLAGS" MISDNDIR=`pwd`
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install INSTALL_PREFIX=$RPM_BUILD_ROOT MISDNDIR=`pwd` LIBDIR=%_libdir
|
|
mkdir $RPM_BUILD_ROOT/%{_includedir}/mISDNuser/linux
|
|
install -m0644 %SOURCE1 $RPM_BUILD_ROOT/%{_includedir}/mISDNuser/linux/mISDNif.h
|
|
install -m0644 %SOURCE2 $RPM_BUILD_ROOT/%{_includedir}/mISDNuser/linux/mISDNdebugtool.h
|
|
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d
|
|
install -m0644 %SOURCE3 $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/mISDN.rules
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
/usr/sbin/fedora-groupadd 31 -r misdn &>/dev/null || :
|
|
/usr/sbin/fedora-useradd 31 -r -s /sbin/nologin -d / -M \
|
|
-c 'Modular ISDN' -g misdn misdn &>/dev/null || :
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
test "$1" != 0 || /usr/sbin/fedora-userdel misdn &>/dev/null || :
|
|
test "$1" != 0 || /usr/sbin/fedora-groupdel misdn &>/dev/null || :
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%_libdir/*.so.*
|
|
%doc COPYING.LIB LICENSE
|
|
%config(noreplace) %{_sysconfdir}/udev/rules.d/mISDN.rules
|
|
%exclude %_bindir/*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%_includedir/mISDNuser
|
|
%_libdir/*.so
|
|
%exclude %_libdir/*.a
|
|
|
|
%if 0%{?with_utils}
|
|
%files utils
|
|
%defattr(-,root,root,-)
|
|
%_bindir/*
|
|
%endif
|
|
|
|
%changelog
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.5-2
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Wed Aug 22 2007 David Woodhouse <dwmw2@infradead.org> 1.1.5-1
|
|
- Update to 1.1.5
|
|
|
|
* Wed May 30 2007 David Woodhouse <dwmw2@infradead.org> 1.1.3-1
|
|
- Update to 1.1.3
|
|
|
|
* Fri Feb 23 2007 David Woodhouse <dwmw2@infradead.org> 1.1.0-1
|
|
- Update to 1.1.0
|
|
|
|
* Sat Dec 16 2006 David Woodhouse <dwmw2@infradead.org> 1.0.3-1
|
|
- Update to 1.0.3
|
|
|
|
* Tue Oct 17 2006 David Woodhouse <dwmw2@infradead.org> 0-1.cvs20061010
|
|
- Initial import
|