[fonts-tweak-tool] clean up and improve the spec file.

Akira TAGOH tagoh at fedoraproject.org
Wed Nov 21 04:08:46 UTC 2012


commit 6f2473f00e13d9d204c62a06a005e640650a067e
Author: Akira TAGOH <tagoh at redhat.com>
Date:   Wed Nov 21 13:08:21 2012 +0900

    clean up and improve the spec file.

 fonts-tweak-tool.spec |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)
---
diff --git a/fonts-tweak-tool.spec b/fonts-tweak-tool.spec
index 11dc7fe..a29f49c 100644
--- a/fonts-tweak-tool.spec
+++ b/fonts-tweak-tool.spec
@@ -1,6 +1,6 @@
 Name: fonts-tweak-tool
 Version: 0.1.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: Tool for customizing fonts per language
 
 Group: User Interface/Desktops
@@ -12,6 +12,7 @@ BuildArch: noarch
 BuildRequires: python-setuptools
 BuildRequires: desktop-file-utils
 BuildRequires: intltool
+BuildRequires: python3-devel
 Requires: libeasyfc-gobject
 Requires: pygobject3
 Requires: gtk3
@@ -30,20 +31,23 @@ using fontconfig.
 make
 
 %install
-#rm -rf $RPM_BUILD_ROOT
-#%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
 desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications fonts-tweak-tool.desktop
-make install DESTDIR=${RPM_BUILD_ROOT}
+make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="/usr/bin/install -p"
 
-%files
+%find_lang %{name}
+
+%files -f %{name}.lang
 %doc README COPYING AUTHORS
-%{python_sitelib}/*
-%{_bindir}/*
-%{_datadir}/*
-#%{_datadir}/%{name}
-#%{_datadir}/applications
+%{_bindir}/%{name}
+%{python_sitelib}/*.egg-info
+%{python_sitelib}/fontstweak
+%{_datadir}/%{name}
+%{_datadir}/applications/%{name}.desktop
 
 %changelog
+* Wed Nov 21 2012 Akira TAGOH <tagoh at redhat.com> - 0.1.1-2
+- clean up and improve the spec file.
+
 * Mon Oct 22 2012 Akira TAGOH <tagoh at redhat.com> - 0.1.1-1
 - New upstream release.
   - Drop the unnecessary warnings (#859455)


More information about the scm-commits mailing list