Name: linsmith Version: 0.99.11 Release: 1%{?dist} Summary: A Smith charting program Group: Applications/Engineering License: GPLv2 URL: http://jcoppens.com/soft/linsmith/index.en.php Source0: http://downloads.sourceforge.net/linsmith/linsmith-0.99.11.tar.gz Patch0: http://mgautier.fedoraproject/org/lismith/linsmith-0.99.11-fedoraDesktop.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: libgnomeprint22-devel >= 2.2 BuildRequires: libgnomeui-devel >= 2.0 BuildRequires: gettext BuildRequires: desktop-file-utils Requires: tcl %description linSmith is a Smith Charting program, mainly designed for educational use. %prep %setup -q %patch0 -p1 -b .fedoraDesktop #remove unwanted file. rm -f pixmaps/Makefile.am~ %build %configure make %{?_smp_mflags} # does we have to do it now/before ? Does I have to create a path ? # There is probably a macro to "/home/builder/rpmbuild/BUILD/" #rm -f %{_builddir}/%{name}-%{version}/pixmaps/Makefile.am~ %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} desktop-file-install --vendor="fedora" --dir=%{buildroot}/%{_datadir}/applications %{_builddir}/%{name}-%{version}/linsmith.desktop cp %{_builddir}/%{name}-%{version}/linsmith_icon.xpm %{buildroot}/%{_datadir}/pixmaps/%{name} mkdir -p %{buildroot}/%{_datadir}/man/en/man1 cp %{_builddir}/%{name}-%{version}/doc/linsmith.1 %{buildroot}/%{_datadir}/man/en/man1 %find_lang %{name} %clean rm -rf %{buildroot} %post touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor; fi update-mime-database %{_datadir}/mime &> /dev/null || : update-desktop-database &> /dev/null || : %postun touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor; fi update-mime-database %{_datadir}/mime &> /dev/null || : update-desktop-database &> /dev/null || : %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README doc/manual.pdf %{_bindir}/%{name} %{_datadir}/%{name} %attr(755, -, -) %{_datadir}/%{name}/conv0809 %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name} %{_datadir}/man/en/man1/%{name}.1.gz %changelog * Sun Nov 30 2008 Matthieu Gautier 0.99.11-1 - Initial RPM release