Hello community,

here is the log from the commit of package atftp for openSUSE:Factory checked 
in at 2015-03-23 12:18:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/atftp (Old)
 and      /work/SRC/openSUSE:Factory/.atftp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "atftp"

Changes:
--------
--- /work/SRC/openSUSE:Factory/atftp/atftp.changes      2015-02-16 
21:14:48.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.atftp.new/atftp.changes 2015-03-23 
12:18:12.000000000 +0100
@@ -1,0 +2,7 @@
+Wed Mar 18 15:23:17 UTC 2015 - [email protected]
+
+- Do not install service and socket file as executable 
+  * change to 0644
+- Cleanup spec file with spec-cleaner
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ atftp.spec ++++++
--- /var/tmp/diff_new_pack.rVoxIi/_old  2015-03-23 12:18:13.000000000 +0100
+++ /var/tmp/diff_new_pack.rVoxIi/_new  2015-03-23 12:18:13.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package atftp
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,15 +17,14 @@
 
 
 #
-%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
+%define _fwdefdir %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services
 %define pkg_version 0.7
-
 Name:           atftp
+Version:        0.7.0
+Release:        0
 Summary:        Advanced TFTP Server and Client
 License:        GPL-2.0+
 Group:          System/Daemons
-Version:        0.7.0
-Release:        0
 Url:            ftp://ftp.mamalinux.com/pub/atftp/
 Source:         %{name}-%{pkg_version}.tar.bz2
 Source1:        atftpd.init
@@ -51,24 +50,24 @@
 Patch13:        atftp-0.7-default_user_man.patch
 # PATCH-FIX-SUSE update default directory in man (bnc#507011)
 Patch14:        atftp-0.7-default_dir_man.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  pcre-devel
+BuildRequires:  readline-devel
+BuildRequires:  tcpd-devel
+Requires(pre):  %fillup_prereq
+Requires(pre):  pwdutils
+Recommends:     logrotate
+Conflicts:      tftp
 Provides:       tftp(client)
 Provides:       tftp(server)
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %if 0%{?suse_version} >= 1210
 BuildRequires:  systemd-rpm-macros
 %{?systemd_requires}
 %else
-PreReq:         %insserv_prereq 
+Requires(pre): %insserv_prereq
 %endif
-PreReq:         %fillup_prereq
-PreReq:         pwdutils
-BuildRequires:  autoconf
-BuildRequires:  automake
-BuildRequires:  pcre-devel
-BuildRequires:  readline-devel
-BuildRequires:  tcpd-devel
-Conflicts:      tftp
-Recommends:     logrotate
 
 %description
 atftp stands for Advanced Trivial File Transfer Protocol. It is called
@@ -101,22 +100,22 @@
 make %{?_smp_mflags}
 
 %install
-%makeinstall
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
 # SuSE rc
 %if 0%{?suse_version} >= 1210
-%{__install} -D -m 0755 %{S:5} %{buildroot}/%{_unitdir}/atftpd.service
-%{__install} -D -m 0755 %{S:6} %{buildroot}/%{_unitdir}/atftpd.socket
-ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcatftpd
+install -D -m 0644 %{SOURCE5} %{buildroot}/%{_unitdir}/atftpd.service
+install -D -m 0644 %{SOURCE6} %{buildroot}/%{_unitdir}/atftpd.socket
+ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcatftpd
 %else
-%{__install} -D -m 0755 %{S:1} %{buildroot}/etc/init.d/atftpd
-%{__ln_s} -f ../../etc/init.d/atftpd %{buildroot}%{_sbindir}/rcatftpd
+install -D -m 0755 %{SOURCE1} %{buildroot}%{_initddir}/atftpd
+ln -s -f ../..%{_initddir}/atftpd %{buildroot}%{_sbindir}/rcatftpd
 %endif
-%{__install} -D -m 0644 %{S:2} 
%{buildroot}/var/adm/fillup-templates/sysconfig.atftpd
-%{__install} -D -m 0644 %{S:3} %{buildroot}/etc/logrotate.d/%{name}
-%{__mkdir} -p %{buildroot}/%{_fwdefdir}
-%{__install} -m 0644 %{S:4} %{buildroot}/%{_fwdefdir}/atftp
-%{__install} -d -m 0750 %{buildroot}/srv/tftpboot
-%{__install} -d -m 0750 %{buildroot}/var/log/atftpd
+install -D -m 0644 %{SOURCE2} 
%{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.atftpd
+install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
+mkdir -p %{buildroot}/%{_fwdefdir}
+install -m 0644 %{SOURCE4} %{buildroot}/%{_fwdefdir}/atftp
+install -d -m 0750 %{buildroot}/srv/tftpboot
+install -d -m 0750 %{buildroot}%{_localstatedir}/log/atftpd
 
 %pre
 # This group/user is shared with tftp, so please
@@ -127,9 +126,9 @@
 %{_sbindir}/useradd -c "TFTP account" -d /srv/tftpboot -G tftp -g tftp \
   -r -s /bin/false tftp 2>/dev/null || :
 # fix sysconfig to get new defaults on Update
-if [ -f /etc/sysconfig/atftpd ]; then
-  %{__sed} -i -e "s@^\(ATFTPD_OPTIONS=\"--daemon \"\)@#\1@" 
/etc/sysconfig/atftpd
-  %{__sed} -i -e "s@^\(ATFTPD_DIRECTORY=\"/tftpboot\"\)@#\1@" 
/etc/sysconfig/atftpd
+if [ -f %{_sysconfdir}/sysconfig/atftpd ]; then
+  sed -i -e "s@^\(ATFTPD_OPTIONS=\"--daemon \"\)@#\1@" 
%{_sysconfdir}/sysconfig/atftpd
+  sed -i -e "s@^\(ATFTPD_DIRECTORY=\"/tftpboot\"\)@#\1@" 
%{_sysconfdir}/sysconfig/atftpd
 fi
 %if 0%{?suse_version} >= 1210
 %service_add_pre atftpd.service atftpd.socket
@@ -153,7 +152,7 @@
 %service_del_postun atftpd.service atftpd.socket
 %else
 %restart_on_update atftpd
-%{insserv_cleanup}
+%insserv_cleanup
 %endif
 
 %files
@@ -167,16 +166,15 @@
 %{_unitdir}/atftpd.service
 %{_unitdir}/atftpd.socket
 %else
-/etc/init.d/atftpd
+%{_initddir}/atftpd
 %endif
-%config /etc/logrotate.d/%{name}
-/var/adm/fillup-templates/sysconfig.atftpd
+%config %{_sysconfdir}/logrotate.d/%{name}
+%{_localstatedir}/adm/fillup-templates/sysconfig.atftpd
 %{_mandir}/man1/atftp.1.gz
 %{_mandir}/man8/atftpd.8.gz
 %{_mandir}/man8/in.tftpd.8.gz
 %config %{_fwdefdir}/atftp
 %dir %attr(0750,tftp,tftp) /srv/tftpboot
-%dir %attr(0750,tftp,tftp) /var/log/atftpd/
-#ghost %dir /var/run/atftpd
+%dir %attr(0750,tftp,tftp) %{_localstatedir}/log/atftpd/
 
 %changelog

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to