Package libgweather: 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 | %define ver_major 2.26 %def_disable static Name: libgweather Version: %ver_major.2.1 Release: alt1 Summary: A library for weather information Group: System/Libraries License: GPLv3 Url: http://www.gnome.org Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2 # From configure.in %define gtk_ver 2.11.0 %define glib_ver 2.13.0 %define gconf_ver 2.8.0 %define intltool_ver 0.40.0 %define soup_ver 2.25.1 Requires: %name-data = %version-%release BuildPreReq: libGConf-devel >= %gconf_ver BuildPreReq: libgtk+2-devel >= %gtk_ver BuildPreReq: libsoup-gnome-devel >= %soup_ver BuildPreReq: intltool >= %intltool_ver BuildPreReq: xsltproc BuildPreReq: rpm-build-gnome BuildRequires: gcc-c++ libxml2-devel perl-XML-Parser xml-utils gzip %description libgweather is a library to access weather information from online services for numerous locations. %package data Summary: Locations data for %name Group: System/Libraries BuildArch: noarch %description data libgweather is a library to access weather information from online services for numerous locations. This package contains locations data for %name %package devel Summary: Development files for %name Group: Development/GNOME and GTK+ # libgweather used to be part of gnome-applets, and # gnome-applets-devel only had the libgweather-devel parts in it Obsoletes: gnome-applets-gweather-devel < %version Provides: gnome-applets-gweather-devel = %version Requires: %name = %version-%release %description devel The %name-devel package contains libraries and header files for developing applications that use %name. %package devel-doc Summary: Development documentation for %name Group: Development/C BuildArch: noarch Conflicts: %name-devel < %version-%release %description devel-doc The %name-devel-doc package contains documentation for developing applications that use %name. %prep %setup -q %build %configure \ %{subst_enable static} \ --enable-locations-compression %make_build cd po make %name.pot for p in *.po; do msgmerge -U $p %name.pot done make cd .. %install %make_install DESTDIR=%buildroot install %find_lang %name # do the %%lang tag for the localized xml files find %buildroot -name Locations.*.xml.gz | sed 's:'"%buildroot"':: s:\(.*\)/Locations\.\([^.]*\)\.xml.gz:%lang(\2) \1/Locations.\2.xml.gz:' > %name-data.lang %post %gconf2_install gweather %preun if [ $1 = 0 ]; then %gconf2_uninstall gweather fi %files -f %name.lang %_libdir/*.so.* %gconf_schemasdir/*.schemas %doc AUTHORS ChangeLog NEWS README %files data -f %name-data.lang %dir %_datadir/libgweather %_datadir/libgweather/Locations.xml.gz %_datadir/libgweather/locations.dtd %files devel %_includedir/%name %_libdir/*.so %_pkgconfigdir/* %files devel-doc %_datadir/gtk-doc/html/* %changelog * Tue Jun 30 2009 Yuri N. Sedunov <aris@altlinux.org> 2.26.2.1-alt1 - 2.26.2.1 * Tue Apr 14 2009 Yuri N. Sedunov <aris@altlinux.org> 2.26.1-alt1 - 2.26.1 * Tue Mar 17 2009 Yuri N. Sedunov <aris@altlinux.org> 2.26.0-alt1 - 2.26.0 * Wed Mar 04 2009 Yuri N. Sedunov <aris@altlinux.org> 2.25.92-alt1 - 2.25.92 * Wed Jan 21 2009 Yuri N. Sedunov <aris@altlinux.org> 2.25.5-alt1 - 2.25.5 - new devel-doc noarch package * Tue Jan 13 2009 Yuri N. Sedunov <aris@altlinux.org> 2.24.3-alt1 - 2.24.3 * Tue Nov 25 2008 Yuri N. Sedunov <aris@altlinux.org> 2.24.2-alt1 - 2.24.2 - removed obsolete %%post* scripts - move gziped .xml files (altbug # 17180) to separate noarch subpackage * Wed Oct 22 2008 Yuri N. Sedunov <aris@altlinux.org> 2.24.1-alt1 - 2.24.1 - apply %%lang tags to localized xml files (Fedora) * Sun Sep 28 2008 Yuri N. Sedunov <aris@altlinux.org> 2.24.0-alt1 - 2.24.0 * Mon Jun 30 2008 Alexey Shabalin <shaba@altlinux.ru> 2.22.3-alt1 - new version 2.22.3 * Tue Apr 08 2008 Alexey Shabalin <shaba@altlinux.ru> 2.22.1.1-alt1 - new version 2.22.1.1 * Tue Mar 18 2008 Alexey Shabalin <shaba@altlinux.ru> 2.22.0-alt1.1 - build for Sisyphus * Fri Mar 14 2008 Alexey Shabalin <shaba@altlinux.ru> 2.22.0-alt1 - 2.22.0 * Mon Mar 10 2008 Alexey Shabalin <shaba@altlinux.ru> 2.21.92-alt1 - initial build for ALTLinux |