[280] | 1 | # File: $RCSfile: synaptic.spec,v $ |
---|
| 2 | # Revision: $Revision: 1.10 $ |
---|
| 3 | # Last change: $Date: 2004/05/16 19:47:31 $ |
---|
| 4 | |
---|
| 5 | %define _datadir /opt/gnome/share |
---|
| 6 | |
---|
| 7 | Summary: Graphical package management program using apt |
---|
| 8 | Name: synaptic |
---|
| 9 | Version: 0.53 |
---|
| 10 | Release: 0.1.suse91 |
---|
| 11 | License: GPL |
---|
| 12 | Group: System/Packages |
---|
| 13 | Packager: Sebastian Heinlein <sebastian.heinlein@web.de> |
---|
| 14 | Source: synaptic-0.53.tar.gz |
---|
| 15 | #Source: http://savannah.nongnu.org/download/synaptic/synaptic.pkg/%{version}/%{name}-%{version}.tar.gz |
---|
| 16 | Source1: synaptic.desktop |
---|
| 17 | URL: http://www.nongnu.org/synaptic/ |
---|
| 18 | Requires: apt >= 0.1.15, gtk2, libglade2 |
---|
| 19 | Requires: libstdc++ libzvt2 libart_lgpl |
---|
| 20 | Requires: scrollkeeper |
---|
| 21 | BuildRequires: apt-devel >= 0.5.5 rpm-devel >= 4.1 gtk2-devel libglade2-devel |
---|
| 22 | BuildRequires: libstdc++-devel libxml2-devel libglade2-devel libart_lgpl-devel |
---|
| 23 | BuildRequires: atk-devel pango-devel glib2-devel pkgconfig libzvt-devel |
---|
| 24 | BuildRequires: XFree86-devel scrollkeeper |
---|
| 25 | BuildRoot: %{_tmppath}/making_of_%{name}-%{version} |
---|
| 26 | |
---|
| 27 | %description |
---|
| 28 | Synaptic is a graphical package management tool based on GTK+ and APT. |
---|
| 29 | Synaptic enables you to install, upgrade and remove software packages in |
---|
| 30 | a user friendly way. |
---|
| 31 | |
---|
| 32 | Besides these basic functions the following features are provided: |
---|
| 33 | * Search and filter the list of available packages |
---|
| 34 | * Perform smart system upgrades |
---|
| 35 | * Fix broken package dependencies |
---|
| 36 | * Edit the list of used repositories (sources.list) |
---|
| 37 | * Download the latest changelog of a package |
---|
| 38 | * Configure packages through the debconf system |
---|
| 39 | * Browse all available documentation related to a package (dwww is required) |
---|
| 40 | |
---|
| 41 | %prep |
---|
| 42 | %setup -n %{name}-0.53 |
---|
| 43 | |
---|
| 44 | %build |
---|
| 45 | install -m 644 %{SOURCE1} data/%{name}.desktop |
---|
| 46 | PKG_CONFIG_PATH="/opt/gnome/lib/pkgconfig" \ |
---|
| 47 | CPPFLAGS="-I/usr/include/g++/i586-suse-linux" CFLAGS=-O2 ./configure \ |
---|
| 48 | --with-zvt \ |
---|
| 49 | --prefix=%{_prefix} \ |
---|
| 50 | --mandir=%{_mandir} \ |
---|
| 51 | --datadir=%{_datadir} \ |
---|
| 52 | --libdir=%{_libdir} \ |
---|
| 53 | --includedir=%{_includedir} \ |
---|
| 54 | --sysconfdir=%{_sysconfdir} \ |
---|
| 55 | --enable-docdir=%{_defaultdocdir} |
---|
| 56 | make |
---|
| 57 | |
---|
| 58 | %install |
---|
| 59 | |
---|
| 60 | # Replace gksu by kdesu |
---|
| 61 | sed -ie "s/^Exec=gksu -u root \/usr\/sbin\/synaptic/Exec=kdesu -u root -c synaptic/" data/%{name}.desktop |
---|
| 62 | |
---|
| 63 | make DESTDIR=%{buildroot} install |
---|
| 64 | |
---|
| 65 | # locales must be located in /usr/share otherwise synaptic does not pick them up |
---|
| 66 | mv %{buildroot}%{_datadir}/locale %{buildroot}%{_prefix}/share/ |
---|
| 67 | |
---|
| 68 | %clean |
---|
| 69 | [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT |
---|
| 70 | |
---|
| 71 | %post |
---|
| 72 | scrollkeeper-update -q |
---|
| 73 | |
---|
| 74 | %postun |
---|
| 75 | scrollkeeper-update -q |
---|
| 76 | |
---|
| 77 | %files |
---|
| 78 | %defattr(-, root, root) |
---|
| 79 | %doc AUTHORS ChangeLog COPYING NEWS README TODO |
---|
| 80 | %{_sbindir}/%{name} |
---|
| 81 | %{_datadir}/%{name} |
---|
| 82 | %{_datadir}/omf/%{name} |
---|
| 83 | %{_datadir}/gnome/help/%{name} |
---|
| 84 | %{_mandir}/man8/%{name}.8* |
---|
| 85 | /usr/share/locale/*/LC_MESSAGES/%{name}.mo |
---|
| 86 | /etc/X11/sysconfig/synaptic.desktop |
---|
| 87 | /opt/gnome/share/applications/synaptic.desktop |
---|
| 88 | /opt/gnome/share/pixmaps/synaptic.png |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | %changelog |
---|
| 92 | * Thu Aug 26 2004 Sebastian Heinlein <sebastian.heinlein@web.de> |
---|
| 93 | - Use sed to replace gksu by kdesu |
---|
| 94 | - Do not install any kde menu items, since the SuSE menu already integrates |
---|
| 95 | the GNOME stuff |
---|
| 96 | * Tue Nov 18 2003 Richard Bos <rbos@users.sourceforge.net> |
---|
| 97 | - Use /opt/gnome as for datadir |
---|
| 98 | However move the locate directory to /usr/share/ |
---|
| 99 | * Sat Jun 21 2003 Richard Bos <rbos@users.sourceforge.net> |
---|
| 100 | - Updated to release 0.38 |
---|
| 101 | - Added CFLAGS=-O2 to prevent debug code to be added to the end product |
---|
| 102 | (per default -g is added to gcc) |
---|
| 103 | |
---|
| 104 | * Wed Jun 18 2003 Richard Bos <rbos@users.sourceforge.net> |
---|
| 105 | - Updated to release 0.37 |
---|
| 106 | |
---|
| 107 | * Tue Jun 15 2003 Richard Bos <rbos@users.sourceforge.net> |
---|
| 108 | - Initial release, version 0.36.1 |
---|
| 109 | |
---|