Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
conky.6098
conky.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File conky.spec of Package conky.6098
# # spec file for package conky # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %bcond_with audacious %bcond_with cmus %bcond_with libXNVCtrl %bcond_without xmms2 Name: conky Version: 1.10.6 Release: 0 Summary: Lightweight System Monitor License: GPL-3.0+ and LGPL-3.0+ and MIT Group: System/Monitoring Url: https://github.com/brndnmtthws/conky Source: https://github.com/brndnmtthws/conky/archive/v%{version}/conky-%{version}.tar.gz Patch: conky-1.10.0-libircclient.patch Patch1: conky-1.10.1-avoid-git.patch # our ncurses doesn't supply a .pc file Patch2: conky-1.10.4-ncurses.patch Patch3: conky.timestamp.patch Patch4: conky.luamm.patch BuildRequires: cmake BuildRequires: docbook-xsl-stylesheets BuildRequires: docbook2x BuildRequires: freetype2-devel BuildRequires: gcc-c++ BuildRequires: libical-devel BuildRequires: libiw-devel BuildRequires: libmicrohttpd-devel BuildRequires: libmysqld-devel BuildRequires: libtool BuildRequires: libxslt-tools BuildRequires: lua51-devel BuildRequires: ncurses-devel BuildRequires: pkg-config BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo-xlib) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(librsvg-2.0) BuildRequires: pkgconfig(libxml-2.0) %if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315 BuildRequires: libtolua++-5_1-devel %else BuildRequires: tolua++ %endif BuildRequires: update-desktop-files BuildRequires: xorg-x11-devel %if %{with audacious} BuildRequires: pkgconfig(audacious) BuildRequires: pkgconfig(audclient) BuildRequires: pkgconfig(dbus-glib-1) Provides: conky-feature-audacious = %{version} Obsoletes: conky-feature-audacious < %{version} %endif %if %{with libXNVCtrl} BuildRequires: libXNVCtrl Provides: conky-feature-nvidia = %{version} Obsoletes: conky-feature-nvidia < %{version} %endif %if %{with xmms2} BuildRequires: pkgconfig(xmms2-client) %endif Provides: conky-cairo = %{version} Obsoletes: conky-cairo < %{version} %if 0%{?suse_version} != 1315 || 0%{?is_opensuse} == 1 BuildRequires: libircclient-devel BuildRequires: pkgconfig(imlib2) # This is required for imlib2 function properly. Requires: imlib2-loaders Provides: conky-imlib2 = %{version} Obsoletes: conky-imlib2 < %{version} %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Conky is an advanced, highly configurable system monitor for X. This package is built with support for: %if %{with audacious} - audacious %endif %if %{with cmus} - cmus %endif %if %{with libXNVCtrl} - nVidia GPUs %endif %if %{with xmms2} - xmms2 %endif %package doc Summary: Documentation for conky Group: Documentation/HTML %description doc Conky is an advanced, highly configurable system monitor for X. This package provides additional documentation about conky. %package -n vim-plugin-conky Summary: Conky Configuration File Support for Vim Group: Productivity/Editors/Vi Requires: vim-base Provides: conky-vim = %{version} Obsoletes: conky-vim < %{version} %description -n vim-plugin-conky Conky is an advanced, highly configurable system monitor for X. This package provides syntax highlighting support for conky configuration files in vim. %package -n nano-plugin-conky Summary: Conky Configuration File Support for nano Group: Productivity/Editors/Other Requires: nano Provides: conky-nano = %{version} Obsoletes: conky-nano < %{version} %description -n nano-plugin-conky Conky is an advanced, highly configurable system monitor for X. This package provides syntax highlighting support for conky configuration files in nano. %prep %setup -q %patch -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DLIB_INSTALL_DIR=%{_libdir} \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DBUILD_APCUPSD=ON \ -DBUILD_ARGB=ON \ -DBUILD_BMPX=OFF \ -DBUILD_CURL=ON \ -DBUILD_EVE=ON \ -DBUILD_HDDTEMP=ON \ -DBUILD_HTTP=ON \ -DBUILD_I18N=ON \ -DBUILD_IBM=ON \ -DBUILD_ICAL=ON \ -DBUILD_ICONV=ON \ %if 0%{?suse_version} == 1315 && 0%{?is_opensuse} != 1 -DBUILD_IMLIB2=OFF \ -DBUILD_LUA_IMLIB2=OFF \ %else -DBUILD_IMLIB2=ON \ -DBUILD_LUA_IMLIB2=ON \ %endif -DBUILD_IOSTATS=ON \ -DBUILD_IPV6=ON \ %if 0%{?suse_version} > 1320 -DBUILD_IRC=ON \ %else -DBUILD_IRC=OFF \ %endif -DBUILD_MATH=ON \ -DBUILD_MOC=ON \ -DBUILD_MPD=ON \ -DBUILD_MYSQL=ON \ -DBUILD_NCURSES=ON \ -DBUILD_PORT_MONITORS=ON \ -DBUILD_PULSEAUDIO=ON \ -DBUILD_RSS=ON \ -DBUILD_OLD_CONFIG=ON \ -DBUILD_WEATHER_METAR=ON \ -DBUILD_WEATHER_XOAP=ON \ -DBUILD_WLAN=ON \ -DBUILD_X11=ON \ -DBUILD_XDAMAGE=ON \ -DBUILD_XDBE=ON \ -DBUILD_XFT=ON \ -DBUILD_XSHAPE=ON \ -DOWN_WINDOW=ON \ -DBUILD_LUA_CAIRO=ON \ -DBUILD_LUA_RSVG=ON \ -DBUILD_AUDACIOUS=OFF \ -DBUILD_CMUS=OFF \ -DBUILD_NVIDIA=OFF \ -DBUILD_XMMS2=OFF \ %if %{with audacious} -DBUILD_AUDACIOUS=ON \ %endif %if %{with cmus} -DBUILD_CMUS=ON \ %endif %if %{with libXNVCtrl} -DBUILD_NVIDIA=ON \ %endif %if %{with xmms2} -DBUILD_XMMS2=ON \ %endif .. make %{?_smp_mflags} # build doc cd ../doc # html for i in *.xsl ; do FIL=`echo $i | sed "s/\.xsl//"` xsltproc $i ${FIL}.xml > ${FIL}.html done xsltproc %{_datadir}/xml/docbook/stylesheet/nwalsh/current/html/docbook.xsl docs.xml > docs.html # manpage db2x_xsltproc -s man docs.xml -o docs.mxml db2x_manxml --encoding=UTF-8 docs.mxml { echo ".TH CONKY 1 \"August 2005\" \"conky compiled August 2005\" \"User Commands\""; sed 1d < conky.1; } > conky.2 mv conky.2 conky.1 gzip conky.1 %install cd build make DESTDIR=%{buildroot} install %{?_smp_mflags} cd .. # not doc rm -rf %{buildroot}%{_datadir}/doc/%{name}-%{version} # man mkdir -p %{buildroot}%{_mandir}/man1 install -m 0644 doc/conky.1.gz %{buildroot}%{_mandir}/man1 # config mkdir -p %{buildroot}%{_sysconfdir}/conky sed -i "1d" extras/convert.lua sed -i "1s/^/#!\/usr\/bin\/lua5.1\\n/" extras/convert.lua install -m 0755 extras/convert.lua %{buildroot}%{_sysconfdir}/conky/ install -m 0644 data/conky_no_x11.conf data/conky.conf %{buildroot}%{_sysconfdir}/conky/ # vim install -D -m0644 extras/vim/ftdetect/conkyrc.vim "%{buildroot}%{_datadir}/vim/site/ftdetect/conkyrc.vim" install -D -m0644 extras/vim/syntax/conkyrc.vim "%{buildroot}%{_datadir}/vim/site/syntax/conkyrc.vim" # nano install -D -m0644 extras/nano/conky.nanorc "%{buildroot}%{_datadir}/nano/conky.nanorc" # clean rm -rf %{buildroot}%{_libdir}/conky/*.{a,la} %files %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING NEWS README.md TODO %dir %{_sysconfdir}/conky %{_sysconfdir}/conky/convert.lua %config(noreplace) %{_sysconfdir}/conky/conky.conf %config(noreplace) %{_sysconfdir}/conky/conky_no_x11.conf %{_bindir}/conky %doc %{_mandir}/man1/conky.1%{ext_man} %dir %{_libdir}/conky %{_libdir}/conky/libcairo.so %{_libdir}/conky/librsvg.so %if 0%{?suse_version} != 1315 || 0%{?is_opensuse} == 1 %{_libdir}/conky/libcairo_imlib2_helper.so %{_libdir}/conky/libimlib2.so %endif %files doc %defattr(-,root,root) %doc doc/*.html %files -n vim-plugin-conky %defattr(-,root,root) %dir %{_datadir}/vim %dir %{_datadir}/vim/site %dir %{_datadir}/vim/site/syntax %dir %{_datadir}/vim/site/ftdetect %{_datadir}/vim/site/ftdetect/conkyrc.vim %{_datadir}/vim/site/syntax/conkyrc.vim %files -n nano-plugin-conky %defattr(-,root,root) %dir %{_datadir}/nano %{_datadir}/nano/conky.nanorc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor