Пакет gdesklets: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 | %define _name gDesklets %define menu_group Applications/Monitoring/%_name Name: gdesklets Version: 0.36.1 Release: alt1 Packager: Vladimir Scherbaev <vladimir at altlinux dot org> Summary: gDesklets - an advanced architecture for desktop applets License: GPL Group: Graphical desktop/GNOME Url: http://%name.gnomedesktop.org Source0: http://www.gdesklets.org/releases/gDesklets-%version.tar.bz2 Source1: %name-16.png Source2: %name-32.png Patch1: gdesklets-0.36-alt-desktopfile.patch Patch2: gdesklets-0.36-alt-desktopfilein.patch %define gdesklets_dir %_libdir/%name #%define gdesklets_displays_dir %gdesklets_dir/Displays #%define gdesklets_themes_dir %gdesklets_dir/Themes %add_python_lib_path gdesklets_dir # provided by libdesklets/system/_glibtopmodule.so %add_python_req_skip _glibtop # provided by utils/_systraymodule.so %add_python_req_skip _systray # temporarely Autoreq: yes, nopython Requires: python%__python_version(libglade) Requires: python%__python_version(bonobo) Requires: python%__python_version(gnomecanvas) Requires: python%__python_version(gconf) Requires: python%__python_version(ORBit) # Typical environment for GNOME program #Requires(post): GConf2 Requires(post,postun): scrollkeeper Requires(post,postun): desktop-file-utils BuildPreReq: GConf2 BuildPreReq: desktop-file-utils BuildPreReq: menu-devel # to avoid rpm-build-python/hasher/apt bug (#4795) BuildPreReq: python-module-pygnome # manually removed: eric gcc-g77 gdesklets # Automatically added by buildreq on Mon Sep 19 2005 (-bi) BuildRequires: GConf2 ORBit2-devel fontconfig-devel freetype2-devel gcc-c++ glib2-devel gnome-vfs2-devel libGConf2-devel BuildRequires: libart_lgpl-devel libatk-devel libbonobo2-devel libbonoboui-devel libcairo-devel libg2c-devel libglitz-devel libgnome-devel BuildRequires: libgnome-keyring-devel libgnomecanvas-devel libgnomeui-devel libgtk+2-devel libgtop2-devel libpango-devel libpng-devel libpopt-devel BuildRequires: librsvg2-devel libxml2-devel menu-devel perl-XML-Parser pkg-config python-base python-dev python-module-pygnome-devel BuildRequires: python-module-pygtk-devel python-module-pyorbit-devel python-modules-compiler python-modules-encodings xorg-x11-devel BuildRequires: zlib-devel %description gDesklets provides an advanced architecture for desktop applets -- tiny displays sitting on your desktop in a symbiotic relationship of eye candy and usefulness. #%package devel #Summary: Development files for %_name #Group: Development/C #Requires: %name = %version-%release #%description devel #This package contains files needed to develop desklets and sensors for %_name. %prep %setup -q -n gDesklets-%version %patch1 %patch2 # fix schemas install %__subst "s|.*DATABASE.*||g" configure.in # install *.mo files in proper location #%__subst 's,\(installdir = \)${coredir},\1$(datadir),' locale/Makefile* # fix path to locale directory #%__subst 's@\(Translator(NAME.lower(), \).*$@\1"/usr/share/locale")@' main/__init__.py %build #autoreconf -fisv %configure ##--disable-schemas-install %make_build %install #export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 #%__mkdir -p %buildroot{%gdesklets_displays_dir,%gdesklets_themes_dir/{Displays,Themes}} %make_install DESTDIR=%buildroot install #unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL %__mkdir_p %buildroot%_liconsdir/ %buildroot%_niconsdir/ %buildroot%_miconsdir/ %__cp %buildroot%_datadir/pixmaps/%name.png %buildroot%_liconsdir/ %__install -m 0644 %SOURCE1 %buildroot%_miconsdir/%name.png %__install -m 0644 %SOURCE2 %buildroot%_niconsdir/%name.png # menu %__mkdir_p %buildroot%_menudir %__cat <<__MENU__ > %buildroot%_menudir/%_name ?package(%name): needs="x11" title="%_name" \ longtitle="A desktop applet system for GNOME" \ section="Applications/Monitoring" icon="%name.png" __MENU__ freedesktop2menu.pl %name "%menu_group" \ %buildroot%_datadir/applications/%name.desktop \ %buildroot%_menudir/%name "gnome" %find_lang --with-gnome %name %define schemas gdesklets-display-thumbnail %preun if [$1 = 0]; then %gconf2_uninstall %name fi %files -f %name.lang %_bindir/* %_datadir/applications/* #%_datadir/application-registry/* %gdesklets_dir %_datadir/mime/packages/* #%_libdir/%name/* %_iconsdir/gnome/48x48/mimetypes/* %_liconsdir/* %_niconsdir/* %_miconsdir/* %_datadir/pixmaps/* %_man1dir/* %_menudir/* ##%config %_sysconfdir/gconf/schemas/* %doc README AUTHORS NEWS ChangeLog #%files devel #%_pkgconfigdir/* %changelog * Thu Nov 20 2008 Vladimir Scherbaev <vladimir@altlinux.org> 0.36.1-alt1 - New version 0.36.1 - Apply repocop patch * Fri Oct 17 2008 Vladimir Scherbaev <vladimir@altlinux.org> 0.36-alt4 - Some changes in desktop-file * Fri Oct 03 2008 Vladimir Scherbaev <vladimir@altlinux.org> 0.36-alt3 - Added icons - Update buildreq - Added menu-related additional categories * Thu Sep 11 2008 Vladimir Scherbaev <vladimir@altlinux.org> 0.36-alt2 - Apply repocop patch - Some changes in spec file * Sun Aug 31 2008 Vladimir Scherbaev <vladimir@altlinux.org> 0.36-alt1 - New version * Sun Sep 18 2005 Vitaly Lipatov <lav@altlinux.ru> 0.35.2-alt0.1 - new version * Fri Jul 16 2004 Yuri N. Sedunov <aris@altlinux.ru> 0.26.2-alt0.2 - move all desklets to Applications/Monitoring in menu hierarhy. - use freedesktop2menu.pl to build menu file. - update buildreqs to fix python dependencies. * Fri May 21 2004 Yuri N. Sedunov <aris@altlinux.ru> 0.26.2-alt0.1 - 0.26.2 * Fri Feb 27 2004 Yuri N. Sedunov <aris@altlinux.ru> 0.26-alt0.1 - 0.26 * Fri Feb 13 2004 Yuri N. Sedunov <aris@altlinux.ru> 0.25.1-alt0.1 - 0.25.1 * Mon Nov 10 2003 Yuri N. Sedunov <aris@altlinux.ru> 0.24-alt0.1 - First build for Sisyphus. |