Packaging cleanups 48/9648/1 accepted/tizen/ivi/genivi accepted/tizen/ivi/stable accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_common accepted/tizen_generic accepted/tizen_ivi accepted/tizen_ivi_panda accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0.m2 tizen_3.0_ivi tizen_ivi_genivi tizen_ivi_panda accepted/tizen/20130912.185828 accepted/tizen/20130912.194022 accepted/tizen/20130913.025100 accepted/tizen/3.0/common/20161114.111849 accepted/tizen/ivi/20160218.025721 accepted/tizen/ivi/genivi/20140131.032959 accepted/tizen/ivi/panda/20140403.014117 ivi_oct_m2 submit/tizen/20130903.222219 submit/tizen/20130912.080409 submit/tizen/20130912.090708 submit/tizen_3.0_common/20161104.104000 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000007 submit/tizen_ivi_genivi/20140131.032720 submit/tizen_ivi_panda/20140403.012112 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release
authorPatrick McCarty <patrick.mccarty@linux.intel.com>
Tue, 3 Sep 2013 20:29:38 +0000 (13:29 -0700)
committerPatrick McCarty <patrick.mccarty@linux.intel.com>
Tue, 3 Sep 2013 21:47:48 +0000 (14:47 -0700)
- Remove extra, unneeded documentation from /usr/share/doc/snapper
- Use %license macro to install the license file from the build
  directory, not the buildroot
- Fix RPM group tags

Change-Id: I0fca12268d89bd1ab3bf463d0443a2e2dcf388a7
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
packaging/snapper.changes
packaging/snapper.spec

index 4883af2..cc18328 100644 (file)
@@ -1,3 +1,9 @@
+* Tue Sep 03 2013 Patrick McCarty <patrick.mccarty@linux.intel.com> e784b51
+- Remove extra, unneeded documentation from /usr/share/doc/snapper
+- Use %license macro to install the license file from the build
+  directory, not the buildroot
+- Fix RPM group tags
+
 * Thu Aug 01 2013 William Douglas <william.douglas@intel.com> upstream/0.1.5@c470b69
 - update to v1.5.0
 
index db1bb97..38e0fd0 100644 (file)
@@ -33,7 +33,7 @@ Recommends:     snapper-zypp-plugin
 Supplements:    btrfs-progs
 Summary:        Tool for filesystem snapshot management
 License:        GPL-2.0
-Group:          System/Packages
+Group:          System/Utilities
 Url:            http://en.opensuse.org/Portal:Snapper
 
 %description
@@ -45,7 +45,7 @@ Requires:       snapper
 Requires:       zypp-plugin-python
 Requires:       libzypp(plugin:commit)
 Summary:        A zypp commit plugin for calling snapper
-Group:          System/Packages
+Group:          System/Utilities
 
 %description -n snapper-zypp-plugin
 This package contains a plugin for zypp that makes filesystem snapshots with
@@ -59,7 +59,7 @@ Requires:       libsnapper = %version
 Requires:       libstdc++-devel
 Requires:       libxml2-devel
 Summary:        Header files and documentation for libsnapper
-Group:          Development/Languages/C and C++
+Group:          System/Development
 
 %description -n libsnapper-devel
 This package contains header files and documentation for developing with
@@ -83,7 +83,7 @@ cp %{SOURCE1001} .
 export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
 export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
 
-%reconfigure  --docdir=%{_prefix}/share/doc/packages/snapper --disable-ext4 --disable-silent-rules --disable-pam
+%reconfigure --disable-ext4 --disable-silent-rules --disable-pam
 make %{?jobs:-j%jobs}
 
 %install
@@ -107,6 +107,8 @@ sed -i 's|SNAPPER_CONFIGS=""|SNAPPER_CONFIGS="root"|' $RPM_BUILD_ROOT/etc/syscon
 %install_service multi-user.target.wants snapper-hourly.timer
 %install_service multi-user.target.wants snapper-daily.timer
 
+rm -rf %{buildroot}%{_datadir}/doc/snapper
+
 %{find_lang} snapper
 
 %post -n libsnapper  -p /sbin/ldconfig
@@ -119,6 +121,7 @@ sed -i 's|SNAPPER_CONFIGS=""|SNAPPER_CONFIGS="root"|' $RPM_BUILD_ROOT/etc/syscon
 %files
 %manifest %{name}.manifest
 %defattr(-,root,root)
+%license COPYING
 %{_prefix}/bin/snapper
 %{_prefix}/sbin/snapperd
 %{_prefix}/sbin/snapper-hourly
@@ -135,6 +138,7 @@ sed -i 's|SNAPPER_CONFIGS=""|SNAPPER_CONFIGS="root"|' $RPM_BUILD_ROOT/etc/syscon
 %files -n libsnapper
 %manifest %{name}.manifest
 %defattr(-,root,root)
+%license COPYING
 %{_libdir}/libsnapper.so.*
 %dir %{_sysconfdir}/snapper
 %dir %{_sysconfdir}/snapper/configs
@@ -143,9 +147,6 @@ sed -i 's|SNAPPER_CONFIGS=""|SNAPPER_CONFIGS="root"|' $RPM_BUILD_ROOT/etc/syscon
 %config(noreplace) %{_sysconfdir}/snapper/config-templates/default
 %dir %{_sysconfdir}/snapper/filters
 %config(noreplace) %{_sysconfdir}/snapper/filters/*.txt
-%doc %dir %{_prefix}/share/doc/packages/snapper
-%doc %{_prefix}/share/doc/packages/snapper/AUTHORS
-%license %{_prefix}/share/doc/packages/snapper/COPYING
 %config(noreplace) %{_sysconfdir}/sysconfig/snapper
 
 %files -n libsnapper-devel