Package mate-utils: 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 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 | Group: File tools # BEGIN SourceDeps(oneline): BuildRequires: /usr/bin/desktop-file-install /usr/bin/glib-genmarshal /usr/bin/glib-gettextize /usr/bin/glib-mkenums /usr/bin/gtkdocize gcc-c++ libICE-devel libSM-devel libgio-devel pkgconfig(gio-2.0) pkgconfig(gio-unix-2.0) pkgconfig(glib-2.0) pkgconfig(gthread-2.0) pkgconfig(gtk+-2.0) pkgconfig(gtk+-3.0) pkgconfig(libgtop-2.0) pkgconfig(libmatepanelapplet-4.0) pkgconfig(x11) pkgconfig(xext) zlib-devel pkgconfig(libcanberra-gtk) # END SourceDeps(oneline) %define _libexecdir %_prefix/libexec # %%name or %%version is ahead of its definition. Predefining for rpm 4.0 compatibility. %define name mate-utils %define version 1.12.0 # Conditional for release and snapshot builds. Uncomment for release-builds. %global rel_build 1 # This is needed, because src-url contains branched part of versioning-scheme. %global branch 1.12 # Settings used for build from snapshots. %{!?rel_build:%global commit d3538696e2b4e4372e9f526a0a4e2e4be08fc832} %{!?rel_build:%global commit_date 20150629} %{!?rel_build:%global shortcommit %(c=%{commit};echo ${c:0:7})} %{!?rel_build:%global git_ver git%{commit_date}-%{shortcommit}} %{!?rel_build:%global git_rel .git%{commit_date}.%{shortcommit}} %{!?rel_build:%global git_tar %{name}-%{version}-%{git_ver}.tar.xz} Name: mate-utils Version: %{branch}.0 %if 0%{?rel_build} Release: alt2.M80P.1 %else Release: alt2.M80P.1 %endif Summary: MATE utility programs License: GPLv2+ and LGPLv2+ URL: http://mate-desktop.org # for downloading the tarball use 'spectool -g -R mate-utils.spec' # Source for release-builds. %{?rel_build:Source0: http://pub.mate-desktop.org/releases/%{branch}/%{name}-%{version}.tar.xz} # Source for snapshot-builds. %{!?rel_build:Source0: http://git.mate-desktop.org/%{name}/snapshot/%{name}-%{commit}.tar.xz#/%{git_tar}} # https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1526562.html Patch0: https://github.com/mate-desktop/mate-utils/commit/550229e422cd88fe39473f41cebe6cef12f6c8fb.patch # https://bugs.altlinux.org/32339 Patch1: mate-screenshot-1.12.0-alt-filename.patch BuildRequires: desktop-file-utils BuildRequires: e2fsprogs-devel libe2fs-devel BuildRequires: hardlink BuildRequires: libcanberra-devel BuildRequires: libgtop2-devel BuildRequires: libX11-devel BuildRequires: libXmu-devel BuildRequires: mate-common BuildRequires: mate-desktop-devel BuildRequires: mate-panel-devel BuildRequires: libGL-devel BuildRequires: popt-devel BuildRequires: consolehelper BuildRequires: yelp-tools Requires: mate-dictionary = %{version}-%{release} Requires: mate-screenshot = %{version}-%{release} Requires: mate-search-tool = %{version}-%{release} Requires: mate-system-log = %{version}-%{release} Requires: mate-disk-usage-analyzer = %{version}-%{release} Source44: import.info Obsoletes: Obsoletes: mate-utils-libs < 1.5.0-alt2_1 Conflicts: mate-utils-libs < 1.5.0-alt2_1 %description The mate-utils package contains a set of small "desk accessory" utility applications for MATE, such as a dictionary, a disk usage analyzer, a screen-shot tool and others. %package common Group: File tools Summary: Common files for %{name} BuildArch: noarch %description common %{summary}. %package devel Group: Development/C Summary: Development files for mate-utils # short-lived mate-dictionary-devel subpkg Obsoletes: mate-dictionary-devel < 1.6.0-8 #Provides: mate-dictionary-devel = %{version}-%{release} Requires: mate-dictionary%{?_isa} = %{version}-%{release} %description devel The mate-utils-devel package contains header files and other resources needed to develop programs using the libraries contained in mate-utils. %package -n mate-system-log Group: File tools Summary: A log file viewer for the MATE desktop Requires: %{name}-common = %{version}-%{release} Requires: consolehelper # rhbz (#1016935) Requires: libmate-desktop %description -n mate-system-log An application that lets you view various system log files. %package -n mate-screenshot Group: File tools Summary: A utility to take a screen-shot of the desktop Requires: %{name}-common = %{version}-%{release} %description -n mate-screenshot An application that let you take a screen-shot of your desktop. %package -n mate-dictionary Group: File tools Summary: A dictionary for MATE Desktop Requires: %{name}-common = %{version}-%{release} %description -n mate-dictionary The mate-dictionary package contains a dictionary application for MATE Desktop. %package -n mate-search-tool Group: File tools Summary: A file searching tool for MATE Desktop Requires: %{name}-common = %{version}-%{release} Requires: libmate-desktop %description -n mate-search-tool An application to search for files on your computer. %package -n mate-disk-usage-analyzer Group: File tools Summary: A disk usage analyzing tool for MATE Desktop Requires: %{name}-common = %{version}-%{release} %description -n mate-disk-usage-analyzer An application to help analyze disk usage. %prep %setup -q%{!?rel_build:n %{name}-%{commit}} %patch0 -p1 %patch1 -p1 %if 0%{?rel_build} #NOCONFIGURE=1 ./autogen.sh %else # 0%{?rel_build} # for snapshots # needed for git snapshots NOCONFIGURE=1 ./autogen.sh %endif # 0%{?rel_build} %build %configure \ --disable-static \ --disable-schemas-compile \ --enable-gdict-applet \ --enable-gtk-doc-html \ --enable-ipv6=yes \ --enable-maintainer-flags=no \ --with-gtk=2.0 \ --with-x make %{?_smp_mflags} V=1 %install %{makeinstall_std} # make mate-system-log use consolehelper until it starts using polkit mkdir -p %{buildroot}%{_sysconfdir}/pam.d cat <<EOF >%{buildroot}%{_sysconfdir}/pam.d/mate-system-log #%%PAM-1.0 auth include config-util account include config-util session include config-util EOF mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps cat <<EOF >%{buildroot}%{_sysconfdir}/security/console.apps/mate-system-log USER=root PROGRAM=/usr/sbin/mate-system-log SESSION=true FALLBACK=true EOF mkdir -p %{buildroot}%{_sbindir} mv %{buildroot}%{_bindir}/mate-system-log %{buildroot}%{_sbindir} ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/mate-system-log rm -fv %{buildroot}%{_libdir}/*.la rm -fv %{buildroot}%{_datadir}/MateConf/gsettings/*.convert desktop-file-install \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/* %find_lang %{name} --with-gnome %find_lang mate-disk-usage-analyzer --with-gnome %find_lang mate-dictionary --with-gnome %find_lang mate-search-tool --with-gnome %find_lang mate-system-log --with-gnome # fixed grab an area on the hotkey mv %{buildroot}%{_bindir}/mate-screenshot %{buildroot}%{_bindir}/_mate-screenshot cat << EOF >> %{buildroot}%{_bindir}/mate-screenshot #!/bin/bash sleep 0.1 /usr/bin/_mate-screenshot \$@ EOF chmod +x %{buildroot}%{_bindir}/mate-screenshot %files # empty %files common -f %{name}.lang %doc COPYING COPYING.libs %doc NEWS README %files devel %{_libdir}/libmatedict.so %{_libdir}/pkgconfig/mate-dict.pc %{_includedir}/mate-dict/ %{_datadir}/gtk-doc/html/mate-dict/ %files -n mate-system-log -f mate-system-log.lang %{_bindir}/mate-system-log %{_sbindir}/mate-system-log %{_sysconfdir}/security/console.apps/mate-system-log %{_sysconfdir}/pam.d/mate-system-log %{_datadir}/mate-utils/ %{_datadir}/glib-2.0/schemas/org.mate.system-log.gschema.xml %{_datadir}/applications/mate-system-log.desktop %{_mandir}/man1/mate-system-log.1* %{_datadir}/icons/hicolor/*/apps/*.png %{_datadir}/icons/hicolor/scalable/apps/mate-system-log-symbolic.svg %files -n mate-screenshot %{_bindir}/*mate-screenshot %{_bindir}/mate-panel-screenshot %{_datadir}/appdata/mate-screenshot.appdata.xml %{_datadir}/applications/mate-screenshot.desktop %{_datadir}/mate-screenshot %{_mandir}/man1/mate-screenshot.1* %{_mandir}/man1/mate-panel-screenshot.1* %{_datadir}/glib-2.0/schemas/org.mate.screenshot.gschema.xml %files -n mate-dictionary -f mate-dictionary.lang %doc mate-dictionary/AUTHORS %doc mate-dictionary/README %{_bindir}/mate-dictionary %{_datadir}/appdata/mate-dictionary.appdata.xml %{_datadir}/applications/mate-dictionary.desktop %{_datadir}/mate-dict/ %{_datadir}/mate-dictionary/ %{_libexecdir}/mate-dictionary-applet %{_libdir}/libmatedict.so.* %{_mandir}/man1/mate-dictionary.1* %{_datadir}/glib-2.0/schemas/org.mate.dictionary.gschema.xml %{_datadir}/mate-panel/applets/org.mate.DictionaryApplet.mate-panel-applet %{_datadir}/dbus-1/services/org.mate.panel.applet.DictionaryAppletFactory.service %files -n mate-search-tool -f mate-search-tool.lang %{_bindir}/mate-search-tool %{_datadir}/appdata/mate-search-tool.appdata.xml %{_datadir}/applications/mate-search-tool.desktop %{_mandir}/man1/mate-search-tool.1* %{_datadir}/glib-2.0/schemas/org.mate.search-tool.gschema.xml %{_datadir}/pixmaps/mate-search-tool/ %files -n mate-disk-usage-analyzer -f mate-disk-usage-analyzer.lang %doc baobab/AUTHORS %doc baobab/README %{_bindir}/mate-disk-usage-analyzer %{_datadir}/appdata/mate-disk-usage-analyzer.appdata.xml %{_datadir}/applications/mate-disk-usage-analyzer.desktop %{_datadir}/mate-disk-usage-analyzer %{_mandir}/man1/mate-disk-usage-analyzer.1* %{_datadir}/glib-2.0/schemas/org.mate.disk-usage-analyzer.gschema.xml %{_datadir}/icons/hicolor/*/apps/mate-disk-usage-analyzer.* %changelog * Fri Oct 27 2017 Evgeniy Korneechev <ekorneechev@altlinux.org> 1.12.0-alt2.M80P.1 - mate-dictionary: include correct header to fix occasional FTBFS - mate-screenshot: ':' -> '-' in file's name (closes: #32339) - mate-screenshot: fixed grab an area on the hotkey (closes: #33234) * Wed Feb 17 2016 Igor Vlasenko <viy@altlinux.ru> 1.12.0-alt1_1 - new version * Mon Nov 02 2015 Igor Vlasenko <viy@altlinux.ru> 1.10.3-alt2_1 - fixed dependencies * Fri Oct 30 2015 Igor Vlasenko <viy@altlinux.ru> 1.10.3-alt1_1 - new version * Tue Jun 10 2014 Igor Vlasenko <viy@altlinux.ru> 1.8.0-alt2_1 - rebuild with libgtop * Thu Mar 20 2014 Igor Vlasenko <viy@altlinux.ru> 1.8.0-alt1_1 - new fc release * Mon Aug 19 2013 Igor Vlasenko <viy@altlinux.ru> 1.6.0-alt1_7 - new fc release * Wed Aug 07 2013 Igor Vlasenko <viy@altlinux.ru> 1.6.0-alt1_6 - new fc release * Mon Apr 15 2013 Igor Vlasenko <viy@altlinux.ru> 1.6.0-alt1_1 - new fc release * Thu Apr 11 2013 Anton V. Boyarshinov <boyarsh@altlinux.ru> 1.6.0-alt1 - 1.6.0 * Wed Feb 20 2013 Igor Vlasenko <viy@altlinux.ru> 1.5.0-alt2_1 - new fc release * Mon Feb 04 2013 Igor Vlasenko <viy@altlinux.ru> 1.5.0-alt2_0 - restored libs subpackage * Sat Feb 02 2013 Igor Vlasenko <viy@altlinux.ru> 1.5.0-alt1_0 - new version * Sat Feb 02 2013 Igor Vlasenko <viy@altlinux.ru> 1.4.0-alt1_6 - new fc release * Fri Nov 30 2012 Igor Vlasenko <viy@altlinux.ru> 1.4.0-alt1_4 - rebase to fc * Wed Oct 24 2012 Anton V. Boyarshinov <boyarsh@altlinux.ru> 1.4.0-alt1_1.1 - Build for Sisyphus * Sun Aug 05 2012 Igor Vlasenko <viy@altlinux.ru> 1.4.0-alt1_1 - 20120801 mate snapshot * Thu Jul 05 2012 Igor Vlasenko <viy@altlinux.ru> 1.2.0-alt1_2 - 20120622 mate snapshot |