raphgro pushed to kdocker (epel7). "- remove dup'd docs (..more)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Mar 30 20:43:22 UTC 2015
>From 778a3c806cf80ac30d39879bd84ee6e2c439b486 Mon Sep 17 00:00:00 2001
From: Rex Dieter <rdieter at fedoraproject.org>
Date: Tue, 1 Nov 2005 14:51:41 +0000
Subject: - remove dup'd docs - %lang'ify i18n bits
diff --git a/kdocker.spec b/kdocker.spec
index 9e13bbc..1acf46a 100644
--- a/kdocker.spec
+++ b/kdocker.spec
@@ -2,7 +2,7 @@
Name: kdocker
Summary: Dock any application in the system tray
Version: 1.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Group: User Interface/Desktops
License: GPL
@@ -67,20 +67,40 @@ desktop-file-install --vendor fedora \
--delete-original \
$RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
+# remove dup'd docs
+rm -rf $RPM_BUILD_ROOT%{_datadir}/kdocker/docs
+ln -s %{_docdir}/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/kdocker/docs
+
+# %lang'ify i18n bits
+echo "%dir %{_datadir}/kdocker/i18n/" >> %{name}.lang
+for lang_bit in $RPM_BUILD_ROOT%{_datadir}/kdocker/i18n/*.qm ; do
+ if [ -f $lang_bit ]; then
+ lang_file=$(basename $lang_bit)
+ lang=$(echo $lang_file .qm | cut -d_ -f2)
+ echo "%lang($lang) %{_datadir}/kdocker/i18n/$lang_file" >> %{name}.lang
+ fi
+done
+
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS BUGS COPYING CREDITS ChangeLog HACKING README TODO VERSION
%{_bindir}/*
-%{_datadir}/kdocker
+%dir %{_datadir}/kdocker/
+%{_datadir}/kdocker/docs
+%{_datadir}/kdocker/icons/
%{_datadir}/applications/*.desktop
%changelog
+* Tue Nov 01 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.3-3
+- remove dup'd docs
+- %%lang'ify i18n bits
+
* Mon Oct 31 2005 Rex Dieter 1.3-2
- use desktop-file-install
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/kdocker.git/commit/?h=epel7&id=778a3c806cf80ac30d39879bd84ee6e2c439b486
More information about the scm-commits
mailing list