summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-09-09 02:35:18 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-09-09 02:35:18 +0900
commitb3b733df6098d9cd83b8710cafc45f36c113ee3e (patch)
tree8a3eb8d81434cc8969be702889a07dcc105d8861
parentfb2639fef48a4fac742e61aaf76f2d1755b82fd9 (diff)
downloadsharutils-b3b733df6098d9cd83b8710cafc45f36c113ee3e.tar.gz
sharutils-b3b733df6098d9cd83b8710cafc45f36c113ee3e.tar.bz2
sharutils-b3b733df6098d9cd83b8710cafc45f36c113ee3e.zip
-rw-r--r--packaging/sharutils.manifest9
-rwxr-xr-x[-rw-r--r--]packaging/sharutils.spec60
2 files changed, 35 insertions, 34 deletions
diff --git a/packaging/sharutils.manifest b/packaging/sharutils.manifest
index 017d22d..9f7b847 100644
--- a/packaging/sharutils.manifest
+++ b/packaging/sharutils.manifest
@@ -1,5 +1,8 @@
<manifest>
- <request>
- <domain name="_"/>
- </request>
+ <request>
+ <domain name="_"/>
+ </request>
+ <assign>
+ <filesystem path="/usr/bin/*" exec_label="none" />
+ </assign>
</manifest>
diff --git a/packaging/sharutils.spec b/packaging/sharutils.spec
index 7c33657..28a23b0 100644..100755
--- a/packaging/sharutils.spec
+++ b/packaging/sharutils.spec
@@ -1,14 +1,14 @@
-#
+#
# Do not Edit! Generated by:
# spectacle version 0.13~pre
-#
+#
# >> macros
# << macros
Name: sharutils
Summary: The GNU shar utilities for packaging and unpackaging shell archives
Version: 4.7
-Release: 2
+Release: 4
Group: Applications/Archiving
License: GPL
URL: http://www.gnu.org/software/sharutils/
@@ -34,52 +34,50 @@ shar files.
Install sharutils if you send binary files through e-mail.
-
-
%prep
%setup -q -n %{name}-%{version}
-# >> setup
-# << setup
%build
cp %{SOURCE1001} .
-# >> build pre
-# << build pre
-%configure --disable-static
+%configure \
+ --disable-static \
+ --disable-nls \
+ --disable-man
# Call make instruction with smp support
make %{?jobs:-j%jobs}
-# >> build post
-# << build post
%install
rm -rf %{buildroot}
-# >> install pre
-# << install pre
%make_install
-# >> install post
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
chmod 644 AUTHORS ChangeLog COPYING NEWS README THANKS TODO
-# << install post
-%find_lang %{name}
-
-%clean
-rm -rf %{buildroot}
-
-
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/license
+for keyword in LICENSE COPYING COPYRIGHT;
+do
+ for file in `find %{_builddir} -name $keyword`;
+ do
+ cat $file >> $RPM_BUILD_ROOT%{_datadir}/license/%{name};
+ echo "";
+ done;
+done
+%remove_docs
+%clean
+rm -rf %{buildroot}
-%files -f %{name}.lang
+%files
%manifest sharutils.manifest
%defattr(-,root,root,-)
-# >> files
-%doc AUTHORS COPYING NEWS README THANKS TODO
-%{_bindir}/*
-%doc %{_infodir}/*info*
-%doc %{_mandir}/*/*
-# << files
-
-
+%{_datadir}/license/%{name}
+%exclude /usr/bin/compress-dummy
+%exclude /usr/bin/mail-files
+%exclude /usr/bin/mailshar
+%exclude /usr/bin/remsync
+%exclude /usr/bin/shar
+%exclude /usr/bin/unshar
+/usr/bin/uudecode
+/usr/bin/uuencode