[snoopy] Update to 2.2.6

Mosaab Alzoubi moceap at fedoraproject.org
Sun Mar 22 13:33:45 UTC 2015


commit 7a52ecb4133385480fff47cb384a177e57f2b71d
Author: Mosaab Alzoubi <moceap at hotmail.com>
Date:   Sun Mar 22 16:33:20 2015 +0300

    Update to 2.2.6

 .gitignore    |  1 +
 README.Fedora | 28 --------------------
 snoopy.spec   | 82 +++++++++++++++++++++++++++++++++++++++--------------------
 sources       |  2 +-
 4 files changed, 57 insertions(+), 56 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 10f7f53..eb4afca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ snoopy-1.7.1.tar.gz
 /snoopy-1.7.10.tar.gz
 /snoopy-1.8.0.tar.gz
 /snoopy-1.9.0.tar.gz
+/snoopy-3aa5c7124a3861427f7d17cbccbb1deb37329e08.tar.gz
diff --git a/snoopy.spec b/snoopy.spec
index 14641a4..10cf320 100644
--- a/snoopy.spec
+++ b/snoopy.spec
@@ -1,49 +1,77 @@
+%global commit 3aa5c7124a3861427f7d17cbccbb1deb37329e08
+
 Name:           snoopy
-Version:        1.9.0
-Release:        3%{?dist}
+Version:        2.2.6
+Release:        1%{?dist}
 Summary:        A preload library to send shell commands to syslog
-
-Group:          System Environment/Libraries
 License:        GPLv2+
 URL:            https://github.com/a2o/snoopy
-Source0:        https://github.com/a2o/snoopy/archive/snoopy-%{version}.tar.gz
-Source1:        README.Fedora
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0:        https://github.com/a2o/snoopy/archive/%{commit}/snoopy-%{commit}.tar.gz
 
 %description
-Snoopy is designed to aid a sysadmin by providing a log of commands 
-executed. Snoopy is completely transparent to the user and applications.
-It is linked into programs to provide a wrapper around calls to execve().
-Logging is done via syslog.  
+Snoopy is designed to aid a sysadmin by providing a log of commands executed. Snoopy is completely transparent to the user and applications. It is linked into programs to provide a wrapper around calls to execve(). Logging is done via syslog.
+
+%package devel
+Summary:        Development files for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Development files for %{name}.
 
 %prep
-%setup -q -n snoopy-snoopy-%{version}
-cp -p %{SOURCE1} .
+%setup -q -n %{name}-%{commit}
 
 %build
-%configure --libdir=/%{_lib}
+sh autogen.sh
+%configure --libdir=%{_libdir}
 make %{?_smp_mflags}
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
 
 %install
-rm -rf %{buildroot}
-# Make install does not respect DESTDIR.
-# so do by hand.
-#mkdir -p %{buildroot}/%{_lib}
-#install -m 755 snoopy.so %{buildroot}/%{_lib}/snoopy.so
-make install DESTDIR=%{buildroot}
+%make_install
 
-%clean
-rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_sysconfdir}
+install -m 0644 etc/snoopy.ini %{buildroot}%{_sysconfdir}/snoopy.ini
+
+rm %{buildroot}%{_libdir}/libsnoopy.la
+
+mkdir -p %{buildroot}%{_includedir}/%{name}
+install -c -m 644 src/*.h %{buildroot}%{_includedir}/%{name}
 
 %files
-%defattr(-,root,root,-)
-/%{_lib}/snoopy.so
-%doc COPYING README.md ChangeLog README.Fedora README.filtering
+%doc COPYING README.md ChangeLog
+%license COPYING
+%{_libdir}/libsnoopy*
+%{_bindir}/snoopy-test-output
+%{_sbindir}/snoopy-enable
+%{_sbindir}/snoopy-disable
+%{_sysconfdir}/snoopy.ini
+
+%files devel
+%{_includedir}/*
 
 %changelog
+* Sun Mar 22 2015 Mosaab Alzoubi <moceap at hotmail.com> - 2.2.6-1
+- Update to 2.2.6
+- Clean spec up
+- Add -devel package
+- Use Github source guidline
+- Remove old guideline tags
+- Remove la lib
+- Remove old %%clean way
+- Remove README.Fedora due to its included in tools
+- Add %%license macro
+- Use %%make_install
+- Right way for ldconfig
+- Right way for lib macro
+- Fix lines length of %%descriotion
+- Use snoopy.ini
+
 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.9.0-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
diff --git a/sources b/sources
index 43a9433..628c53e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-809b8503ab795893e0f931cfdac34cbf  snoopy-1.9.0.tar.gz
+3564577da7df8bb326c903b90373b8ea  snoopy-3aa5c7124a3861427f7d17cbccbb1deb37329e08.tar.gz


More information about the scm-commits mailing list