SPECS: mISDNuser.spec - adapterized, modified for PLD
marcus
marcus at pld-linux.org
Sun Dec 31 10:06:31 CET 2006
Author: marcus Date: Sun Dec 31 09:06:31 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- adapterized, modified for PLD
---- Files affected:
SPECS:
mISDNuser.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/mISDNuser.spec
diff -u SPECS/mISDNuser.spec:1.1 SPECS/mISDNuser.spec:1.2
--- SPECS/mISDNuser.spec:1.1 Sun Dec 31 09:44:44 2006
+++ SPECS/mISDNuser.spec Sun Dec 31 10:06:26 2006
@@ -1,107 +1,92 @@
-# Don't build the debugging utils by default.
-%bcond_with utils
+# $Revision$, $Date$
-Name: mISDN
+%define mISDNuser_version %(echo %{version} |tr . _)
+
+Summary: Userspace part of Modular ISDN stack
+Name: mISDNuser
Version: 1.0.3
Release: 1
-Summary: Userspace part of Modular ISDN stack
-
-Group: System Environment/Libraries
License: LGPL
+Group: Libraries
URL: http://www.isdn4linux.de/mISDN/
-Source0: http://www.misdn.org/downloads/releases/mISDNuser-1_0_3.tar.gz
-# From mISDN-1.0.4
-Source1: mISDNif.h
-Source2: mISDN.rules
-Patch0: mISDN-build.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-Requires(pre): fedora-usermgmt
-Requires(postun): fedora-usermgmt
+Source0: http://www.misdn.org/downloads/releases/%{name}-1_0_3.tar.gz
+Patch0: %{name}-build.patch
+BuildRequires: mISDN-devel
+Requires: kernel(mISDN)
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
+%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.
%package devel
Summary: Development files Modular ISDN stack
-Group: System Environment/Libraries
+Group: Libraries
Requires: mISDN = %{version}-%{release}
+%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.
+
%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.
+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_0_3
+%setup -q -n %{name}-%{mISDNuser_version}
%patch0 -p0
-mkdir include/linux
-cp %SOURCE1 include/linux
rm -rf voip
%build
-make CFLAGS="-I`pwd`/include $RPM_OPT_FLAGS" MISDNDIR=`pwd`
-
+%{__make} CFLAGS="-I`pwd`/include %{rpmcflags}" 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
-mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d
-install -m0644 %SOURCE2 $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/mISDN.rules
+%{__make} install INSTALL_PREFIX=$RPM_BUILD_ROOT MISDNDIR=`pwd` LIBDIR=%_libdir
%clean
rm -rf $RPM_BUILD_ROOT
-%post
+%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
+%defattr(644,root,root,755)
+%attr(755,root,root) %_libdir/*.so.*
+%exclude %{_bindir}/*
%files devel
-%defattr(-,root,root,-)
+%defattr(644,root,root,755)
%_includedir/mISDNuser
%_libdir/*.so
%exclude %_libdir/*.a
-%if 0%{?with_utils}
%files utils
-%defattr(-,root,root,-)
-%_bindir/*
-%endif
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.2 2006/12/31 09:06:26 marcus
+- adapterized, modified for PLD
+
* Sat Dec 16 2006 David Woodhouse <dwmw2 at infradead.org> 1.0.3-1
- Update to 1.0.3-1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/mISDNuser.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list