]> git.pld-linux.org Git - packages/capi4k-utils.git/blobdiff - capi4k-utils.spec
- rel 3
[packages/capi4k-utils.git] / capi4k-utils.spec
index 8c3435f0a2bba45385f7773f1640e393e37fdac7..434dd74a8557cb254f374d0b935e5cd0b2f01392 100644 (file)
@@ -1,16 +1,22 @@
+
+%bcond_with    capifax   # capifax has some error and won't build right now
+
 Summary:       CAPI 2.0 libraries and configuration tools
 Summary(de):   CAPI 2.0 Werkzeuge für verschiedene ISDN Karten
 Summary(pl):   Biblioteki i narzêdzia konfiguracyjne CAPI 2.0
 Name:          capi4k-utils
-Version:       2004.03.31
-Release:       1
+Version:       2004.10.06
+Release:       3
 License:       GPL
 Group:         Applications/Communications
-Source0:       ftp://ftp.in-berlin.de/pub/capi4linux/%{name}-2004-03-31.tar.gz
+Source0:       ftp://ftp.in-berlin.de/pub/capi4linux/%{name}-2004-10-06.tar.gz
+# Source0-md5: 54992ff362ca44629fdf59773a6864cd
 Source1:       ftp://ftp.in-berlin.de/pub/capi4linux/CHANGES
+# Source1-md5: 054b9f2bf1b0c0fc1eb5010ca0c9380d
 Source10:      capi.conf
 Source11:      capi.init
 Patch0:                %{name}-make.patch
+Patch1:                %{name}-amd64.patch
 URL:           ftp://ftp.in-berlin.de/pub/capi4linux/
 BuildRequires: libtool
 BuildRequires: ppp-plugin-devel
@@ -74,6 +80,7 @@ Static versions of capi libraries.
 %description static -l pl
 Statyczne wersje bibliotek capi.
 
+%if %{with capifax}
 %package capifax
 Summary:       CAPI 2.0 fax tool
 Summary(de):   CAPI 2.0 Fax Programm
@@ -99,6 +106,8 @@ Podstawowe programy do wysy
 PORADA: Je¶li zamierzasz korzystaæ z innego pakietu do obs³ugi faksów
         (np. capisuite lub hylafax) to nie potrzebujesz tego pakietu.
 
+%endif
+
 %package remotecapi
 Summary:       CAPI 2.0 remote tool
 Summary(de):   CAPI 2.0 Fernsteuerungsprogramm
@@ -128,7 +137,7 @@ Summary:    capiplugin for pppd-%{ppp_ver}
 Summary(pl):   Wtyczka capi dla pppd w wersji %{ppp_ver}
 Group:         Applications/Communications
 Requires:      %{name} = %{version}-%{release}
-Requires:      ppp = %{ppp_ver}
+Requires:      ppp = 3:%{ppp_ver}
 
 %description -n ppp-plugin-capi
 capiplugin for pppd-%{ppp_ver}.
@@ -139,13 +148,17 @@ Wtyczka capi dla pppd w wersji %{ppp_ver}.
 %prep
 %setup -q -n %{name}
 %patch0 -p1
+%if "%{_lib}" == "lib64"
+%patch1 -p1
+%endif
 
 cat > .config << END
 CONFIG_BINDIR='%{_bindir}'
 CONFIG_SBINDIR='%{_sbindir}'
 CONFIG_MANDIR='%{_mandir}'
 CONFIG_AVMCAPICTRL=y
-CONFIG_CAPIFAX=y
+CONFIG_LIBDIR='%{_libdir}'
+%{?with_capifax:CONFIG_CAPIFAX=y}
 CONFIG_RCAPID=y
 CONFIG_PPPDCAPIPLUGIN=y
 END
@@ -222,9 +235,11 @@ exit 0
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
+%if %{with capifax}
 %files capifax
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/capifax*
+%endif
 
 %files remotecapi
 %defattr(644,root,root,755)
This page took 0.080517 seconds and 4 git commands to generate.