# $Id$ # Authority: dag # Upstream: Summary: Name: _template Version: Release: 1 License: GPL Group: Applications/ URL: Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Buildarch: noarch BuildRequires: Requires: %description %package devel Summary: Header files, libraries and development documentation for %{name}. Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the header files, static libraries and development documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %prep %setup %{__cat} <%{name}.desktop [Desktop Entry] Name=Name Thingy Tool Comment=Do things with things Icon=name.png Exec=name Terminal=false Type=Application StartupNotify=true Categories=GNOME;Application;AudioVideo; EOF %build %{__libtoolize} --force --copy %{__aclocal} #--force %{__autoheader} %{__automake} --add-missing -a --foreign %{__autoconf} autoreconf --force --install --symlink %configure \ --disable-schemas-install %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" %{__make} install DESTDIR="%{buildroot}" %find_lang %{name} %{__install} -d -m0755 %{buildroot}%{_datadir}/applications/ desktop-file-install --vendor net \ --add-category X-Red-Hat-Base \ --dir %{buildroot}%{_datadir}/applications \ %{name}.desktop %post /sbin/ldconfig 2>/dev/null export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null %postun -p /sbin/ldconfig %clean %{__rm} -rf %{buildroot} %files -f %{name}.lang %defattr(-, root, root, 0755) %doc AUTHORS ChangeLog COPYING CREDITS FAQ INSTALL LICENSE NEWS README THANKS TODO %doc %{_mandir}/man?/* %{_bindir}/* %{_libdir}/*.so.* %{_datadir}/pixmaps/*.png %{_datadir}/applications/*.desktop %files devel %{_includedir}/*.h %{_libdir}/*.so %exclude %{_libdir}/*.a %exclude %{_libdir}/*.la %changelog * Son Jun 20 2006 Dag Wieers - - Initial package. (using DAR)