%config in a spec file
Paul
paul at all-the-johnsons.co.uk
Sat Jul 8 21:02:59 UTC 2006
Hi,
> When you list the contents of your %{buildroot}, i.e.
> /var/tmp/anjuta-2.0.2-3-root-build, what do you see?
/etc/gconf/schemas/anjuta-valgrind.schemas
> If the file is really available, I'd like to see the unmodified .spec file. ;)
Here it is....
Summary: Integrated Development Environment
Name: anjuta
Version: 2.0.2
Release: 3%{?dist}
License: GPL
Group: Development/Tools
URL:
http://kent.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u}
-n)
Requires: glib, gtk2, ORBit2, gnome-vfs2, vte, pango, pcre, devhelp,
anjuta-gdl, gnome-build, graphviz, neon, subversion
BuildRequires: glib2-devel, gtk2-devel, ORBit2-devel, libglade2-devel,
libgnome-devel, libgnomeui-devel, libgnomeprint22-devel,
libgnomeprintui22-devel, gnome-vfs2-devel, libbonobo-devel,
libbonoboui-devel, vte-devel, libxml2-devel, pango-devel, pcre-devel,
devhelp-devel, anjuta-gdl-devel, gnome-build-devel, graphviz-devel,
neon-devel, subversion-devel, autogen
Requires(pre): GConf2
Requires(post): GConf2
Requires(preun): GConf2
%description
Anjuta DevStudio is a versatile Integrated Development Environment (IDE)
on GNOME Desktop Environment and features a number of advanced
programming facilities. These include project management, application
and
class wizards, an on-board interactive debugger, powerful source editor,
syntax highlighting, intellisense autocompletions, symbol navigation,
version controls, integrated GUI designing and other tools.
%package devel
Summary: Libraries and include files for Anjuta plugins development.
Group: Development/Libraries
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
%description devel
Libraries, header files and API docs for developing Anjuta plugins.
%prep
%setup -q
sed -i 's/\r//' doc/ScintillaDoc.html
%build
%configure --disable-static --disable-plugin-subversion
#subversion disabled for now!
%define libnoprefix %(echo %_libdir | sed 's,%_prefix/,,')
sed -i -e 's!\(.*PACKAGE_PLUGIN_DIR@,.*\)lib\(/anjuta.*\)!
\1%{libnoprefix}\2!g' config.status ; ./config.status
make
%install
rm -rf %{buildroot}
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make DESTDIR=%{buildroot} install
%find_lang %{name}
desktop-file-install --vendor fedora --delete-original \
--dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
--add-category X-Fedora \
%{buildroot}%{_datadir}/applications/%{name}.desktop
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
%clean
rm -rf %{buildroot}
%pre
if [ "$1" -gt 1 ]; then
export GCONF_CONFIG_SOURCE='gconftool-2 --get-default-source'
gconftool-2 --makefile-uninstall-rule \
%{_sysconfdir}/gconf/schemas/%{name}-valgrind.schemas > /dev/null
|| :
killall -HUP gconfd-2 || :
fi
%post
export GCONF_CONFIG_SOURCE='gconftool-2 --get-default-source'
gconftool-2 --makefile-install-rule \
%{_sysconfdir}/gconf/schemas/%{name}-valgrind.schemas > /dev/null || :
killall -HUP gconfd-2 || :
if which update-mime-database>/dev/null 2>&1; then \
update-mime-database %{_datadir}/mime; \
fi
/sbin/ldconfig
%preun
if [ "$1" -eq 0 ]; then
export GCONF_CONFIG_SOURCE='gconftool-2 --get-default-source'
gconftool-2 --makefile-uninstall-rule \
%{_sysconfdir}/gconf/schemas/%{name}-valgrind.schemas > /dev/null
|| :
killall -HUP gconfd-2 || :
fi
%postun
if which update-mime-database>/dev/null 2>&1; then \
update-mime-database %{_datadir}/mime; \
fi
/sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
%doc doc/ScintillaDoc.html
%{_bindir}/%{name}*
%config %{_sysconfdir}/gconf/schemas/%{name}-valgrind.schemas
%{_bindir}/create_global_tags.sh
%{_bindir}/test_tm_buffer
%{_libdir}/lib%{name}*.so.*
%{_libdir}/%{name}
%{_datadir}/applications/*%{name}.desktop
%{_datadir}/pixmaps/%{name}
%{_datadir}/doc/%{name}
%{_datadir}/application-registry/%{name}.applications
%{_datadir}/mime-info/%{name}.mime
%{_datadir}/mime-info/%{name}.keys
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/icons/gnome/48x48/mimetypes/*%{name}.png
%{_datadir}/icons/hicolor/48x48/apps/anjuta_icon.png
%{_datadir}/icons/hicolor/scalable/apps/anjuta_icon.svg
%{_datadir}/gnome/help/anjuta/*
%{_datadir}/man/man1/anjuta*
%{_datadir}/omf/anjuta/*
%files devel
%defattr (-, root, root)
%{_includedir}/*%{name}*
%{_libdir}/pkgconfig/*%{name}*
%{_libdir}/lib%{name}*.so
%{_datadir}/gtk-doc/html/*%{name}*
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/project/cpp/AUTHORS
%exclude %{_datadir}/%{name}/project/cpp/po/ChangeLog
%exclude %{_datadir}/%{name}/project/cpp/NEWS
%exclude %{_datadir}/%{name}/project/terminal/NEWS
%exclude %{_datadir}/%{name}/project/mkfile/po/ChangeLog
%exclude %{_datadir}/%{name}/project/cpp/ChangeLog
%exclude %{_datadir}/%{name}/project/terminal/ChangeLog
%exclude %{_datadir}/%{name}/project/terminal/AUTHORS
%changelog
* Fri Jul 07 2006 Paul F. Johnson <paul at all-the-johnsons.co.uk> 2.0.2-3
- renamed spec file
- removed R autogen and added it as BR
- lots of fixes thanks to rpmlint
- Added gconf fixes
--
"99 Jahre Krieg ließen Keinen Platz für Sieger - Kriegesminister gibt's
nicht mehr - und auch keine Düsenflieger - heute ziehe ich meine Runden
- sehe die Welt in Trümmern liegen - hab' nen Luftballon gefunden - denk
an dich und laß ihn fliegen" - Nena, 99 luft balons
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20060708/5d049a6b/attachment.sig>
More information about the fedora-extras-list
mailing list