isdn4k-utils/isdn4k-utils.spec

164 lines
6.1 KiB
RPMSpec
Raw Permalink Normal View History

%define pkgver %(echo %version | cut -d. -f3-5 | tr . -)
Name: isdn4k-utils
Version: 3.27
Release: 1mamba
Summary: Bundled Utilities for configuring an using ISDN4Linux
Group: Applications/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.isdn4linux.de/
Source: git://git.misdn.eu/isdn4k-utils.git/v%{version}/isdn4k-utils-%{version}.tar.bz2
Source1: isdn4k-utils-config
Patch0: %{name}-3.0.2007.11.27-install.patch
Patch1: isdn4k-utils-3.25_20130409-missing_include_from_cvs.patch
Patch2: isdn4k-utils-3.27-gcc-5.patch
Patch3: isdn4k-utils-3.27-glibc-2.23.patch
Patch4: isdn4k-utils-3.27-tcl-8.6.5.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libICE-devel
BuildRequires: libncurses-devel
BuildRequires: libSM-devel
BuildRequires: libtcl
BuildRequires: libX11-devel
BuildRequires: libXaw-devel
BuildRequires: libXext-devel
BuildRequires: libXmu-devel
BuildRequires: libXp-devel
BuildRequires: libXpm-devel
BuildRequires: libXt-devel
## AUTOBUILDREQ-END
Provides: isdnutils
Requires: libcapi20 = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
isdn4k-utils is a collection of various ISDN related utilities. This package contains configuration tools for all ISDN adapters, supported by Linux. Furthermore, several status-monitors are provided as well as some ISDN-based applications. Namely ipppd, a PPP daemon for synchronous PPP over ISDN; vbox, an answering-machine and (for use with AVM-B1 only) capifax, a faxmachine.
%package -n libcapi20
Summary: Main library for isdn2k utils
Group: System/Libraries
%description -n libcapi20
isdn4k-utils is a collection of various ISDN related utilities. This package contains configuration tools for all ISDN adapters, supported by Linux. Furthermore, several status-monitors are provided as well as some ISDN-based applications. Namely ipppd, a PPP daemon for synchronous PPP over ISDN; vbox, an answering-machine and (for use with AVM-B1 only) capifax, a faxmachine.
This package contains the capi2 library needed to have a standard access layer to ISDN devices.
%package -n libcapi20-devel
Summary: Includes and other files to develop capi applications
Group: Development/Libraries
Requires: libcapi20 = %{?epoch:%epoch:}%{version}-%{release}
Provides: isdn4k-utils-devel
Obsoletes: isdn4k-utils-devel
%description -n libcapi20-devel
isdn4k-utils is a collection of various ISDN related utilities. This package contains configuration tools for all ISDN adapters, supported by Linux. Furthermore, several status-monitors are provided as well as some ISDN-based applications. Namely ipppd, a PPP daemon for synchronous PPP over ISDN; vbox, an answering-machine and (for use with AVM-B1 only) capifax, a faxmachine.
This package contains static libraries, include files and other resources you can use to develop capi applications.
%prep
%setup -q
#%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
find . -name Makefile.in -exec sed -i "s|-o 0 -g 0||" {} \;
find . -name Makefile -exec sed -i "s|-o 0 -g 0||" {} \;
find . -name Makefile.in -exec sed -i "s|-o root -g root||" {} \;
cp %{SOURCE1} .config
%build
%make subconfig CONFIG_MANDIR=%{_mandir} CONFIG_LIBDIR=%{_libdir}
%make -j1
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d %{buildroot}/sbin
install -d %{buildroot}%{_docdir}
%makeinstall MANDIR=%{_mandir} mandir=%{_mandir}
mv %{buildroot}%{_prefix}/doc/faq %{buildroot}%{_docdir}/faq
mv %{buildroot}%{_prefix}/doc/vbox %{buildroot}%{_docdir}/vbox
mv %{buildroot}%{_prefix}/man/man1/* %{buildroot}%{_mandir}/man1/
mv %{buildroot}%{_prefix}/man/man8/* %{buildroot}%{_mandir}/man8/
# fix app-defaults system dir installed as a symlink
rm -f %{buildroot}%{_prefix}/lib/X11/app-defaults
install -d -m0755 %{buildroot}%{_prefix}/lib/X11/app-defaults
ln -s %{_sysconfdir}/X11/app-defaults/XISDNLoad %{buildroot}%{_prefix}/lib/X11/app-defaults/XISDNLoads
#% find_lang %{name}
rm -f %{buildroot}%{_mandir}/xmonisdn.1x
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
#-f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/vbox/vboxd.conf
%{_sysconfdir}/vbox/vboxgetty.conf
/sbin/*
%{_bindir}/*
%{_sbindir}/vboxd
%{_sbindir}/vboxgetty
%{_sbindir}/vboxmail
%{_sbindir}/vboxputty
%{_prefix}/lib/X11/app-defaults/XISDNLoads
%{_mandir}/man1/*.1.gz
%{_mandir}/man1/*.1x.gz
%{_mandir}/man4/*.4.gz
%{_mandir}/man5/*.5.gz
%{_mandir}/man7/isdn_cause.7.gz
%{_mandir}/man8/.isdnctrl_conf.8.gz
%{_mandir}/man8/*.8.gz
%{_docdir}/faq/isdn4linux
%{_docdir}/vbox/vbox.*
%doc NEWS README
%files -n libcapi20
%defattr(-,root,root)
%dir %{_sysconfdir}/isdn
%{_sysconfdir}/X11/app-defaults/XISDNLoad
%{_sysconfdir}/isdn/*.conf
%{_sysconfdir}/isdn/stop
%{_sysconfdir}/isdn/isdnlog.*
%{_libdir}/libcapi20.so.*
%{_prefix}/lib/isdn/*
%dir %{_libdir}/capi
%{_libdir}/capi/lib_capi_mod_fritzbox.la
%{_libdir}/capi/lib_capi_mod_fritzbox.so
%{_libdir}/capi/lib_capi_mod_fritzbox.so.*
%{_libdir}/capi/lib_capi_mod_rcapi.la
%{_libdir}/capi/lib_capi_mod_rcapi.so
%{_libdir}/capi/lib_capi_mod_rcapi.so.*
%{_libdir}/capi/lib_capi_mod_std.la
%{_libdir}/capi/lib_capi_mod_std.so
%{_libdir}/capi/lib_capi_mod_std.so.*
%files -n libcapi20-devel
%defattr(-,root,root)
%{_includedir}/X11/bitmaps/net*
%{_includedir}/capi*.h
%{_libdir}/libcapi20.so
%{_libdir}/libcapi20.a
%{_libdir}/libcapi20dyn.a
%{_libdir}/libcapi20.la
%{_libdir}/pkgconfig/capi20.pc
%changelog
* Mon Dec 29 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.27-1mamba
- update to 3.27
* Sat May 18 2013 Automatic Build System <autodist@mambasoft.it> 3.25_20130409-1mamba
- automatic version update by autodist
* Sun Dec 09 2012 Automatic Build System <autodist@mambasoft.it> 3.25_20120630-1mamba
- update to 3.25_20120630
* Thu Jul 16 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.2007.11.27-2mamba
- added libcapi20 and libcapi20-devel subpackages
* Tue May 26 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 27-1mamba
- package created by autospec