File fped-svn.spec of Package fped
Summary: Footprint editor fped
Name: fped-svn
Version: r5974
Release: 0
Group: Productivity/Scientific/Electronics
License: GPL
Url: http://people.openmoko.org/werner/fped/
Source: %{name}.tar.bz2
Source1: fped.xml
Source2: fped.desktop
Source3: fped.png
Patch0: buildconf.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: gtk2
BuildRequires: gcc-c++ gtk2-devel bison flex transfig ghostscript-library ImageMagick xorg-x11 subversion
%if 0%{?sles} || 0%{?sles_version} || 0%{?suse} || 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%description
fped is an editor that allows the interactive creation of footprints of
electronic components. Footprint definitions are stored in a text format
that resembles a programming language.
%prep
%setup -q -n fped
%patch0 -p1
sh ./autogen.sh
./configure --prefix=%{buildroot}%{_prefix}
%build
make
%install
make install
#mkdir -p %{buildroot}%{_datadir}/mime/packages/
#mkdir -p %{buildroot}%{_datadir}/applications/
#mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
%{__install} -Dp -m0644 %{SOURCE1} %{buildroot}%{_datadir}/mime/packages/fped.xml
%{__install} -Dp -m0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/fped.desktop
%{__install} -Dp -m0644 %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/fped.png
%{__install} -Dp -m0644 %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/128x128/mimetypes/application-x-fped-footprint.png
%if 0%{?sles} || 0%{?sles_version} || 0%{?suse} || 0%{?suse_version}
%suse_update_desktop_file fped
%endif
%post
if [ -x /usr/bin/update-mime-database ]; then
update-mime-database %{_datadir}/mime &> /dev/null || :
fi
%postun
if [ -x /usr/bin/update-mime-database ]; then
update-mime-database %{_datadir}/mime &> /dev/null || :
fi
%files
%defattr(-,root,root,-)
%doc README TODO gui.html
%{_bindir}/*
%dir %{_datadir}/fped
%{_datadir}/fped/*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*/*.png
#%{_datadir}/icons/hicolor/scalable/*/*.svg
%{_datadir}/mime/packages/*.xml
%changelog
* Sat Aug 14 2010 Rene Harder <rehar@saweb.de> r5974
- initial build of fped