Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 65ac74bf9d8e47ebc68345ea50e9a27b > files > 5

frontline-0.5.4-4mdk.src.rpm

%define name frontline
%define version 0.5.4
%define release %mkrel 4

%define Summary A GUI frontend for autotrace
%define title Frontline
%define section Multimedia/Graphics

%define major 0
%define libname  %mklibname frontline %major

Summary: 	%Summary
Name: 		%name
Version: 	%version
Release: 	%release
Group: 		Graphics
License: 	GPL
Url: 		http://autotrace.sourceforge.net/frontline

Source: http://autotrace.sourceforge.net/%name/%name-%version.tar.bz2
Source1:	%name-16.png
Source2:	%name-32.png
Source3:	%name.png

BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

BuildRequires: gnome-libs-devel libexif-devel 
BuildRequires: libart_lgpl-devel  libautotrace-devel 
BuildRequires: libpstoedit-devel 
BuildRequires: ImageMagick-devel 

%description
Frontline provides a gtk+/gnome based GUI frontend for 
autotrace (http://autotrace.sourceforge.net) in 4 ways.

1. Stand alone program. A command `frontline' runs as a stand alone
   program. It will work well with Gnome desktop and nautilus.
   
2. Reusable library. A library `libfrontline.a' could be used as a
   building block of your application that needs the autotrace function.
   APIs are listed in frontline.h.  The stand alone program frontline
   itself uses libfrontline.a.

3. Sodipodi, a drawing editor add-on module. add-on module uses the 
   libfrontline.a. See below.
%package -n %libname
Summary: 	Frontline library file
Requires: 	%name = %version 
Group: 		Graphics
Provides:	libfrontline

%description -n %libname
Frontline devel file.
    
%description
Frontline devel file.

%package -n %libname-devel
Summary: 	Frontline devel file
Requires:	%libname = %version
Group: 		Development/C
Provides: 	libfrontline-devel

%description -n %libname-devel
Frontline devel file.

%package -n %name-devel
Summary: 	Frontline devel file
Requires:	%name = %version
Group: 		Development/C

%description -n %name-devel
Frontline devel file.

#%package gimp
#Summary: Frontline plugin for GIMP
#Group: Graphics
#
#%description gimp
#Gimp plug-in. You can launch frontline from the GIMP's menu.
#Select "<Image>/Filters/Trace/Trace..." .
#
%prep
%setup -q

%build
%configure2_5x

make

%install
%makeinstall_std

%find_lang %name

# menu
mkdir -p %buildroot/%_menudir
cat > %buildroot/%_menudir/%name << EOF
?package(%name): \
command="%_bindir/%name" \
needs="x11" \
icon="%name.png" \
section="%section" \
title="%title" \
longtitle="%Summary"
EOF

# icon
mkdir -p %buildroot/{%_liconsdir,%_iconsdir,%_miconsdir}
install -m 644 %SOURCE1 %buildroot/%_miconsdir/%name.png
install -m 644 %SOURCE2 %buildroot/%_liconsdir/%name.png
install -m 644 %SOURCE3 %buildroot/%_iconsdir/%name.png

rm -Rf $RPM_BUILD_ROOT/%{_libdir}/gimp/

%post
%update_menus

%postun
%clean_menus

%clean
rm -rf %buildroot

%files -f %name.lang
%defattr(-,root,root)
%doc README NEWS AUTHORS TODO ChangeLog
%_bindir/%name
%_bindir/%name-config
%_datadir/pixmaps/*
%_datadir/mime-info/*
%_datadir/gnome/*/*/*
%_datadir/aclocal/*
%_menudir/%name
%_liconsdir/%name.png
%_miconsdir/%name.png
%_iconsdir/%name.png

%files -n %name-devel
%defattr(-,root,root)
%_includedir/*

%files -n %libname
%defattr(-,root,root)
%_libdir/pkgconfig/*

%files -n %libname-devel
%defattr(-,root,root)
%_libdir/*.a

#%files gimp
#%defattr(-,root,root)
#%{_libdir}/gimp/*/plug-ins/*
#
%changelog
* Wed Sep 14 2005 Michael Scherer <misc@mandriva.org> 0.5.4-4mdk
- Rebuild for lost package

* Wed Sep 07 2005 Michael Scherer <misc@mandriva.org> 0.5.4-3mdk
- Rebuild for lack of libdpstk.so.1
- clean buildREquires
- mkrel
- drop gimp plugin, do not compile anymore

* Mon Sep 20 2004 Jerome Soyer <saispo@mandrake.org> 0.5.4-2mdk
- Remove Requires

* Sun Sep 19 2004 Jerome Soyer <saispo@mandrake.org> 0.5.4-1mdk
- First build for Mandrake
- Build Gimp Plugins
- No SMP Build