[wordnet] Modernize spec file

Petr Pisar ppisar at fedoraproject.org
Thu Sep 6 16:01:38 UTC 2012


commit b4bf3985c4faa109c439da4241606cb2ffb9dfa2
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Sep 6 17:54:25 2012 +0200

    Modernize spec file

 .rpmlint     |    2 ++
 wordnet.spec |   10 +---------
 2 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/.rpmlint b/.rpmlint
new file mode 100644
index 0000000..878a9a6
--- /dev/null
+++ b/.rpmlint
@@ -0,0 +1,2 @@
+from Config import *
+addFilter("spelling-error .* (Synsets|synsets|Tk)");
diff --git a/wordnet.spec b/wordnet.spec
index 0a9ce82..1b5dbbf 100644
--- a/wordnet.spec
+++ b/wordnet.spec
@@ -22,7 +22,6 @@ BuildRequires:  automake >= 1.8
 BuildRequires:  libtool
 BuildRequires:  tcl-devel
 BuildRequires:  tk-devel
-BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 %description
 WordNet is a large lexical database of English, developed under the direction
@@ -90,7 +89,6 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 # delete the libWN.la files (reasoning in the packaging guidelines)
 rm -f  $RPM_BUILD_ROOT%{_libdir}/libWN.la
@@ -100,15 +98,11 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/doc
 rm -rf doc/{html,ps,pdf}/Makefile*
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root,-)
 %doc AUTHORS COPYING ChangeLog README
 %{_bindir}/wn
 %{_mandir}/man1/grind.1.gz
@@ -121,7 +115,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libWN.so.*
 
 %files browser
-%defattr(-,root,root,-)
 %{_bindir}/wishwn
 %{_bindir}/wnb
 %{_mandir}/man1/wishwn.1.gz
@@ -129,13 +122,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/%{name}-%{version}/lib/wnres/
 
 %files devel
-%defattr(-,root,root,-)
 %{_mandir}/man3/*.3.gz
 %{_includedir}/wn.h
 %{_libdir}/libWN.so
 
 %files doc
-%defattr(-,root,root,-)
 %doc COPYING doc/{html,ps,pdf}
 
 
@@ -145,6 +136,7 @@ rm -rf $RPM_BUILD_ROOT
 - Move Tk browser to sub-package wordnet-browser
 - Move alternative manual pages to wordnet-doc package
 - Do not package INSTALL instructions and correct URL
+- Modernize spec file
 
 * Sun Jul 22 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.0-17
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild


More information about the scm-commits mailing list