1%define ver      	@VERSION@
2%define RELEASE 	1
3%define rel     	%{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
4%define prefix		/usr
5
6Summary: Library assetml to share and reuse content like image and audio file
7Name: 		libassetml
8Version: 	%ver
9Release: 	%rel
10Copyright: 	GPL
11Group: 		System/Libraries
12Source:		ftp://ofset.sourceforge.net/libassetml-%{PACKAGE_VERSION}.tar.gz
13BuildRoot: 	/var/tmp/libassetml-%{PACKAGE_VERSION}-root
14URL: 		http://ofset.sf.net/assetml
15Docdir: 	%{prefix}/share/doc/libassetml-%{PACKAGE_VERSION}
16Requires:	libxml2
17Packager:       Bruno Coudoin <bcoudoin.coudoin@free.fr>
18
19%description
20This is a library based on an XML file format that is used to share and reuse content
21like image and audio file.
22Application using this library can query files on their system that provides an
23assetml xml file description.
24
25%package  devel
26Summary:        Devel Library assetml to share image and audio file between project
27Group: 		System/Libraries
28Version: 	%ver
29Requires:       libassetml
30
31%description devel
32AssetML Devel Library
33
34%prep
35%setup -q
36
37%build
38%ifarch alpha
39  MYARCH_FLAGS="--host=alpha-redhat-linux"
40%endif
41%configure
42
43%make
44
45%install
46rm -rf $RPM_BUILD_ROOT
47%makeinstall_std
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%post
53
54%_install_info %{name}.info
55
56
57%postun
58
59%files
60%defattr(-, root, root)
61%doc AUTHORS COPYING ChangeLog NEWS README
62%{prefix}/share/gnome/help/*
63%{prefix}/share/locale/*/*/*
64%_infodir/*
65%{prefix}/lib/libassetml.so.*
66%{prefix}/bin/assetml-query
67
68%files devel
69%defattr(-, root, root)
70%{_libdir}/lib*.so
71%{_libdir}/*a
72%{_includedir}/libassetml*/*
73%{_libdir}/pkgconfig/libassetml.pc
74