Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > c91611872ebaf6f98ed6cc4d70ab9754 > files > 2

image-analyzer-1.0.0-1.svn635.1mdv2010.1.src.rpm


%define version 1.0.0
%define snapshot 635
%define rel	1

%if 0
# Update commands:
REV=$(svn info https://cdemu.svn.sourceforge.net/svnroot/cdemu/trunk/image-analyzer| sed -ne 's/^Last Changed Rev: //p')
svn export -r $REV https://cdemu.svn.sourceforge.net/svnroot/cdemu/trunk/image-analyzer image-analyzer-$REV
tar -cjf image-analyzer-$REV.tar.bz2 image-analyzer-$REV
%endif

Name:		image-analyzer
Version:	%version
Summary:	MIRAGE Image Analyzer
%if %snapshot
Release:	%mkrel 1.svn%snapshot.%rel
Source:		%name-%snapshot.tar.bz2
%else
Release:	%mkrel %rel
Source:		http://downloads.sourceforge.net/cdemu/%name-%version.tar.bz2
%endif
Group:		File tools
License:	GPLv2+
URL:		http://cdemu.sourceforge.net/
BuildRoot:	%{_tmppath}/%{name}-root
BuildRequires:	mirage-devel
BuildRequires:	glib2-devel
BuildRequires:	gtk+2-devel
BuildRequires:	gtk+extra-2-devel

%description
This is MIRAGE Image Analyzer, a simple Gtk+ application that
displays tree structure of disc image created by libMirage. It is
mostly intended as a demonstration of libMirage API use, although it
can be also used to verify that an image is correctly handled by
libMirage.

%prep
%if %snapshot
%setup -q -n %name-%snapshot
%else
%setup -q
%endif

%build
%if %snapshot
./autogen.sh
%endif
%configure2_5x
%make

%install
rm -rf %buildroot
%makeinstall_std

install -d -m755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=MIRAGE Image Analyzer
Comment=Analyze disc images
Exec=%{_bindir}/%{name}
Icon=data_visualization_section
Type=Application
Categories=GTK;DiscBurning;Utility;
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README AUTHORS
%{_bindir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop



%changelog
* Fri May 21 2010 Anssi Hannula <anssi@mandriva.org> 1.0.0-1.svn635.1mdv2010.1
+ Revision: 545659
- newer snapshot that works with current libmirage

* Thu Jul 09 2009 Anssi Hannula <anssi@mandriva.org> 1.0.0-1.svn303.3mdv2010.0
+ Revision: 394011
- rebuild

* Wed Apr 23 2008 Anssi Hannula <anssi@mandriva.org> 1.0.0-1.svn303.2mdv2009.0
+ Revision: 197033
- fix group

* Wed Apr 23 2008 Anssi Hannula <anssi@mandriva.org> 1.0.0-1.svn303.1mdv2009.0
+ Revision: 196933
- initial Mandriva release