]> git.pld-linux.org Git - packages/wvdial.git/commitdiff
- added link patch (fixes build with -as-needed) master
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 31 Dec 2014 15:00:04 +0000 (16:00 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 31 Dec 2014 15:00:04 +0000 (16:00 +0100)
- use optflags, pl fix, more verbose files

wvdial-link.patch [new file with mode: 0644]
wvdial.spec

diff --git a/wvdial-link.patch b/wvdial-link.patch
new file mode 100644 (file)
index 0000000..0d1f0c6
--- /dev/null
@@ -0,0 +1,11 @@
+--- wvdial-1.61/Makefile.in.orig       2008-10-22 22:01:09.000000000 +0200
++++ wvdial-1.61/Makefile.in    2014-12-31 15:52:42.812661627 +0100
+@@ -34,7 +34,7 @@
+       wvdialmon.o
+ wvdial wvdialconf papchaptest pppmon: \
+-  LDFLAGS+=-luniconf -lwvstreams -lwvutils -lwvbase
++  LIBS+=-luniconf -lwvstreams -lwvutils -lwvbase
+ wvdial wvdialconf papchaptest pppmon: wvdial.a
index 0826131c6879a9f960becb0cb51c0245c98fef09..28992850408cf5db6ac944a2c9064162b3587f88 100644 (file)
@@ -3,10 +3,11 @@ Summary(pl.UTF-8):    Heurystyczny "autowydzwaniacz" dla połączeń PPP
 Name:          wvdial
 Version:       1.61
 Release:       2
 Name:          wvdial
 Version:       1.61
 Release:       2
-License:       LGPL
+License:       LGPL v2
 Group:         Networking/Daemons
 Source0:       http://wvstreams.googlecode.com/files/%{name}-%{version}.tar.gz
 # Source0-md5: acd3b2050c9b65fff2aecda6576ee7bc
 Group:         Networking/Daemons
 Source0:       http://wvstreams.googlecode.com/files/%{name}-%{version}.tar.gz
 # Source0-md5: acd3b2050c9b65fff2aecda6576ee7bc
+Patch0:                %{name}-link.patch
 URL:           http://alumnit.ca/wiki/index.php?page=WvDial
 BuildRequires: libstdc++-devel
 BuildRequires: pkgconfig
 URL:           http://alumnit.ca/wiki/index.php?page=WvDial
 BuildRequires: libstdc++-devel
 BuildRequires: pkgconfig
@@ -20,21 +21,28 @@ almost any ISP's server without special configuration. You need to
 input the username, password, and phone number, and then WvDial will
 negotiate the PPP connection using any mechanism needed.
 
 input the username, password, and phone number, and then WvDial will
 negotiate the PPP connection using any mechanism needed.
 
-Install wvdial if you need a utility to configure your modem and set
-up a PPP connection.
-
 %description -l pl.UTF-8
 %description -l pl.UTF-8
-WvDial automatycznie wyszukuje i konfiguruje modem, i może sie
+WvDial automatycznie wyszukuje i konfiguruje modem, i potrafi się
 zalogować do praktycznie każdego serwera dostawcy usług internetowych
 zalogować do praktycznie każdego serwera dostawcy usług internetowych
-(ISP). Potrzebujesz podać nazwę użytkownika, hasło i numer telefonu, a
+(ISP). Trzeba wprowadzić nazwę użytkownika, hasło i numer telefonu, a
 WvDial wynegocjuje połączenie PPP używając potrzebnych mechanizmów.
 
 %prep
 %setup -q
 WvDial wynegocjuje połączenie PPP używając potrzebnych mechanizmów.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 
 %build
-%configure
-%{__make} -j1
+# not autoconf generated, no arguments used
+./configure
+%{__make} -j1 \
+       CC="%{__cc}" \
+       CXX="%{__cxx}" \
+       CPPOPTS="%{rpmcppflags}" \
+       COPTS="%{rpmcflags}" \
+       CXXOPTS="%{rpmcppflags}" \
+       VERBOSE=1 \
+       WVSTREAMS_LIB=. \
+       enable_debug=no
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -49,7 +57,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 
 %files
 %defattr(644,root,root,755)
-%doc README CHANGES FAQ TODO MENUS
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man?/*
-%config %{_sysconfdir}/ppp/peers/*
+%doc CHANGES ChangeLog FAQ MENUS README TODO
+%attr(755,root,root) %{_bindir}/wvdial
+%attr(755,root,root) %{_bindir}/wvdialconf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/peers/wvdial
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/peers/wvdial-pipe
+%{_mandir}/man1/wvdial.1*
+%{_mandir}/man1/wvdialconf.1*
+%{_mandir}/man5/wvdial.conf.5*
This page took 0.087936 seconds and 4 git commands to generate.