]> git.pld-linux.org Git - packages/dnsmasq.git/commitdiff
- translations; dhcp support enabled; rel 2
authorzbyniu <zbyniu@pld-linux.org>
Mon, 1 May 2006 02:15:05 +0000 (02:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dnsmasq.spec -> 1.52

dnsmasq.spec

index 788a500c1354f82086d8a0514b4020663dc8324b..1e8c4d62bbad9dcd377e3ed6fb2966ce1c1829e9 100644 (file)
@@ -2,14 +2,16 @@ Summary:      A lightweight caching nameserver
 Summary(pl):   Lekki buforuj±cy serwer nazw (DNS)
 Name:          dnsmasq
 Version:       2.30
 Summary(pl):   Lekki buforuj±cy serwer nazw (DNS)
 Name:          dnsmasq
 Version:       2.30
-Release:       1
+Release:       2
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
 # Source0-md5: 91db9ef2c63269debf7794783074b751
 Source1:       %{name}.init
 Source2:       %{name}.config
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
 # Source0-md5: 91db9ef2c63269debf7794783074b751
 Source1:       %{name}.init
 Source2:       %{name}.config
+Patch0:                %{name}-sh.patch
 URL:           http://www.thekelleys.org.uk/dnsmasq/
 URL:           http://www.thekelleys.org.uk/dnsmasq/
+BuildRequires: gettext-devel
 BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
 Requires:      rc-scripts
 BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
 Requires:      rc-scripts
@@ -36,11 +38,13 @@ po
 
 %prep
 %setup -q
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 
 %build
-%{__make} \
+%{__make} all-i18n \
        CC="%{__cc}" \
        CC="%{__cc}" \
-       CFLAGS="%{rpmcflags}"
+       CFLAGS="%{rpmcflags} -DHAVE_ISC_READER" \
+       PREFIX=%{_prefix}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -48,10 +52,14 @@ install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d,%{_mandir
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dnsmasq
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dnsmasq
-install src/dnsmasq $RPM_BUILD_ROOT%{_sbindir}
-install man/dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8
 install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
 
 install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
 
+%{__make} install-i18n \
+       DESTDIR=$RPM_BUILD_ROOT \
+       PREFIX=%{_prefix}
+
+%find_lang %{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -65,7 +73,7 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del dnsmasq
 fi
 
        /sbin/chkconfig --del dnsmasq
 fi
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc CHANGELOG FAQ *.html
 %attr(754,root,root) /etc/rc.d/init.d/dnsmasq
 %defattr(644,root,root,755)
 %doc CHANGELOG FAQ *.html
 %attr(754,root,root) /etc/rc.d/init.d/dnsmasq
This page took 0.122249 seconds and 4 git commands to generate.