Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
network:utilities
mcm
mcm.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mcm.spec of Package mcm
# norootforbuild %define _libdir %{_prefix}/lib Name: mcm Version: 0.9.3 Release: 0 Summary: Monocaffe Connections Manager # http://launchpad.net/mcm/trunk/%{version}/+download/mcm-%{version}.tar.gz Source: mcm-%{version}.tar.bz2 Source99: mcm-rpmlintrc Patch1: mcm-fix_desktop_file.patch Patch2: mcm-placeholders.patch URL: https://launchpad.net/mcm Group: Productivity/Networking/SSH License: GNU General Public License version 3 (GPL v3) BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRequires: update-desktop-files BuildRequires: python BuildRequires: fdupes BuildArch: noarch Requires: python-gtk Requires: python-gtk-vnc Requires: python-xdg Requires: vte Requires: python-xml %description Monocaffe Connections Manager is a set of tools to ease the management of several servers. It's aimed at network or system administrators who need to connect every day to different servers by different means. It can be used via an ncurses interface without requiring an X server, and it can be used via a GNOME-based GUI. %prep %setup -q %patch1 %patch2 %__rm -rf ./dist %__rm -rf *.sh %__mkdir_p .rpmdocs %__mv doc/[A-Z]* .rpmdocs/ for f in .rpmdocs/*; do [ -e "$f" ] || continue test -s "$f" || %__rm "$f" done %__mkdir_p .man %__mv doc/*.[1-9] .man/ find . -name '.*.swo' -exec %__rm {} \; %__rm i18n/generate_pot.py %__rm i18n/generate_mo.sh %__rm i18n/messages.mo %build %__awk '/^\+\+\+ / {print $2}' <"%{PATCH2}" | while read f; do %__sed -i ' s|@@PYTHON@@|%__python|g ; s|@@LIBDIR@@|%{_libdir}/%{name}|g ' "$f" done %install %__install -d "%{buildroot}%{_libdir}/%{name}" %__cp -a * "%{buildroot}%{_libdir}/%{name}/" %__install -d "%{buildroot}%{_bindir}" relpath=$(%__python -c 'import os; print os.path.relpath("%{_libdir}/%{name}/bin", "%{_bindir}")') %__ln_s "$relpath/mcm" "%{buildroot}%{_bindir}/mcm" %__ln_s "$relpath/mcm" "%{buildroot}%{_bindir}/mcm-gtk" %__install -d "%{buildroot}%{_datadir}/applications" %__mv "%{buildroot}%{_libdir}/%{name}/gtk/mcm.desktop" "%{buildroot}%{_datadir}/applications/%{name}.desktop" %__install -d "%{buildroot}%{_datadir}/pixmaps" relpath=$(%__python -c 'import os; print os.path.relpath("%{_libdir}/%{name}/gtk", "%{_datadir}/pixmaps")') %__ln_s "$relpath/mcm_icon.png" "%{buildroot}%{_datadir}/pixmaps/mcm.png" for f in .man/*; do [ -e "$f" ] || continue m="${f##*.}" b="${f##*/}" %__install -D -m0644 "$f" "%{buildroot}%{_mandir}/man${m}/$b" done %suse_update_desktop_file -r "%{name}" Network RemoteAccess LIBFILES="$PWD/libfiles.lst" echo "%dir %{_libdir}/%{name}" >"$LIBFILES" pushd "%{buildroot}%{_libdir}/%{name}" find . | grep -v "^./i18n/locale/" | while read f; do f="${f#./}" { [ -d "$f" ] && echo -n "%dir "; echo "%{_libdir}/%{name}/$f"; } >>"$LIBFILES" done pushd ./i18n/locale /bin/ls -1 */LC_MESSAGES/*.mo | while read mo; do [ -e "$mo" ] || continue lang="${mo%%%%/*}" mof="${mo##*/}" echo "%dir %lang(${lang}) %{_libdir}/%{name}/i18n/locale/${lang}" >>"$LIBFILES" echo "%dir %lang(${lang}) %{_libdir}/%{name}/i18n/locale/${lang}/LC_MESSAGES" >>"$LIBFILES" echo "%lang(${lang}) %{_libdir}/%{name}/i18n/locale/${lang}/LC_MESSAGES/${mof}" >>"$LIBFILES" done popd #./i18n/locale popd #"%{buildroot}%{_libdir}/%{name}" %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files -f libfiles.lst %defattr(-,root,root) %doc .rpmdocs/* %{_bindir}/mcm %{_bindir}/mcm-gtk %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/mcm.png %doc %{_mandir}/man*/*.*%{ext_man} %changelog # vim: set sw=3 ts=3 noet: # Local Variables: # mode: rpm-spec # tab-width: 3 # End:
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