diff --git a/yersinia.spec b/yersinia.spec index 8e3f71a..fb9f960 100644 --- a/yersinia.spec +++ b/yersinia.spec @@ -33,7 +33,13 @@ implementing new ones): * VLAN Trunking Protocol (VTP) %prep -%setup -q +%setup -q -c %{name}-%{version} +# Convert to utf-8 +for file in THANKS; do + mv $file timestamp + iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp + touch -r timestamp $file +done %build %configure --with-pcap-includes=%{_includedir}/pcap @@ -42,12 +48,6 @@ make %{?_smp_mflags} CFLAGS="%{optflags}" %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} INSTALL="install -p" -# Convert to utf-8 -for file in THANKS; do - mv $file timestamp - iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp - touch -r timestamp $file -done %files %doc AUTHORS ChangeLog COPYING FAQ README THANKS TODO @@ -91,5 +91,5 @@ done * Fri Dec 26 2008 Fabian Affolter - 0.7.1-2 - Added CFLAGS -* Thu Dec 23 2008 Fabian Affolter - 0.7.1-1 +* Tue Dec 23 2008 Fabian Affolter - 0.7.1-1 - Initial spec for Fedora